Skip to content

Commit

Permalink
Merge pull request #14 from smswithoutborders/dev
Browse files Browse the repository at this point in the history
update to the website
  • Loading branch information
mildrette authored Jun 25, 2024
2 parents a7fe3d6 + 2a471c0 commit 654b5ab
Show file tree
Hide file tree
Showing 10 changed files with 660 additions and 529 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"react-material-ui-carousel": "^3.4.2",
"react-router-dom": "^6.22.3",
"react-scripts": "5.0.1",
"react-scroll": "^1.9.0",
"web-vitals": "^2.1.0"
},
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"Landing": {
"landingh1": "Keep talking with RelaySMS",
"landingh1a": "Keep",
"landingh1": " Talking with RelaySMS",
"landingh2": "Send Emails, Posts, and Messages securely via SMS.",
"Android": "Android App",
"Desktop": "Desktop App"
Expand Down
3 changes: 2 additions & 1 deletion public/locales/fa/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"Landing": {
"landingh1": "به ارتباط با RelaySMS ادامه دهید",
"landingh1a": "ادامه دهید ",
"landingh1": "به ارتباط با RelaySMS",
"landingh2": "ارسال ایمیل‌ها، پست‌ها و پیام‌ها به صورت امن از طریق پیامک.",
"Android": "اپلیکیشن اندروید",
"Desktop": "اپلیکیشن دسکتاپ"
Expand Down
3 changes: 2 additions & 1 deletion public/locales/fr/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"Landing": {
"landingh1": "Continuez à parler avec RelaySMS",
"landingh1a": "Continuez",
"landingh1": " à parler avec RelaySMS",
"landingh2": "Envoyez des e-mails, des publications et des messages en toute sécurité via SMS.",
"Android": "Application Android",
"Desktop": "Application de bureau"
Expand Down
240 changes: 240 additions & 0 deletions src/Components/Hero.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
import React from "react";
import Image from "next/image";
import Box from "@mui/material/Box";
import Grid from "@mui/material/Grid";
import Container from "@mui/material/Container";
import Typography from "@mui/material/Typography";
import { Link as ScrollLink } from "react-scroll";
import { StyledButton } from "@/components/styled-button";
import PlayArrowIcon from "@mui/icons-material/PlayArrow";

const exps = [
{
label: "Students",
value: "10K+"
},
{
label: "Quality Course",
value: "20+"
},
{
label: "Experience Mentors",
value: "10+"
}
];

const ExpItem = ({ item }) => {
const { value, label } = item;
return (
<Box sx={{ textAlign: "center", mb: { xs: 1, md: 0 } }}>
<Typography
sx={{
color: "secondary.main",
mb: { xs: 1, md: 2 },
fontSize: { xs: 34, md: 44 },
fontWeight: "bold"
}}
>
{value}
</Typography>
<Typography color="text.secondary" variant="h5">
{label}
</Typography>
</Box>
);
};

const Landing = () => {
return (
<Box
id="hero"
sx={{
backgroundColor: "background.paper",
position: "relative",
pt: 4,
pb: { xs: 8, md: 10 }
}}
>
<Container maxWidth="lg">
<Grid container spacing={0} sx={{ flexDirection: { xs: "column", md: "unset" } }}>
<Grid item xs={12} md={7}>
<Box
sx={{
textAlign: { xs: "center", md: "left" },
height: "100%",
display: "flex",
flexDirection: "column",
justifyContent: "center"
}}
>
<Box sx={{ mb: 3 }}>
<Typography
component="h2"
sx={{
position: "relative",
fontSize: { xs: 40, md: 72 },
letterSpacing: 1.5,
fontWeight: "bold",
lineHeight: 1.3
}}
>
<Typography
component="mark"
sx={{
position: "relative",
color: "primary.main",
fontSize: "inherit",
fontWeight: "inherit",
backgroundColor: "unset"
}}
>
Improve{" "}
<Box
sx={{
position: "absolute",
top: { xs: 24, md: 34 },
left: 2,
transform: "rotate(3deg)",
"& img": { width: { xs: 146, md: 210 }, height: "auto" }
}}
>
<img src="/images/headline-curve.svg" alt="Headline curve" />
</Box>
</Typography>
your{" "}
<Typography
component="span"
sx={{
fontSize: "inherit",
fontWeight: "inherit",
position: "relative",
"& svg": {
position: "absolute",
top: -16,
right: -21,
width: { xs: 22, md: 30 },
height: "auto"
}
}}
>
Skill
<svg version="1.1" viewBox="0 0 3183 3072">
<g id="Layer_x0020_1">
<path
fill="#127C71"
d="M2600 224c0,0 0,0 0,0 236,198 259,562 52,809 -254,303 -1849,2089 -2221,1776 -301,-190 917,-1964 1363,-2496 207,-247 570,-287 806,-89z"
/>
<path
fill="#127C71"
d="M3166 2190c0,0 0,0 0,0 64,210 -58,443 -270,516 -260,90 -1848,585 -1948,252 -104,-230 1262,-860 1718,-1018 212,-73 437,39 500,250z"
/>
<path
fill="#127C71"
d="M566 3c0,0 0,0 0,0 -219,-26 -427,134 -462,356 -44,271 -255,1921 90,1962 245,62 628,-1392 704,-1869 36,-221 -114,-424 -332,-449z"
/>
</g>
</svg>
</Typography>{" "}
<br />
with Different Way
</Typography>
</Box>
<Box sx={{ mb: 4, width: { xs: "100%", md: "70%" } }}>
<Typography sx={{ color: "text.secondary", lineHeight: 1.6 }}>
{
"Let's take an online course to improve your skills in a different way, you can set your own study time according to your learning speed. So you san study comfortable and absorb tge material easily."
}
</Typography>
</Box>
<Box sx={{ "& button": { mr: 2 } }}>
<ScrollLink to="popular-course" spy={true} smooth={true} offset={0} duration={350}>
<StyledButton color="primary" size="large" variant="contained">
Get Started
</StyledButton>
</ScrollLink>
<ScrollLink to="video-section" spy={true} smooth={true} offset={0} duration={350}>
<StyledButton
color="primary"
size="large"
variant="outlined"
startIcon={<PlayArrowIcon />}
>
Watch Video
</StyledButton>
</ScrollLink>
</Box>
</Box>
</Grid>
<Grid item xs={12} md={5} sx={{ position: "relative" }}>
{/* Sertificate badge */}
<Box
sx={{
position: "absolute",
bottom: 30,
left: { xs: 0, md: -150 },
boxShadow: 1,
borderRadius: 3,
px: 2,
py: 1.4,
zIndex: 1,
backgroundColor: "background.paper",
display: "flex",
alignItems: "flex-start",
width: 280
}}
>
<Box
sx={{
boxShadow: 1,
borderRadius: "50%",
width: 44,
height: 44,
display: "flex",
alignItems: "center",
justifyContent: "center",
mr: 2,
"& img": { width: "32px !important", height: "auto" }
}}
>
<Image
src="/images/certificate.png"
alt="Certificate icon"
width={50}
height={50}
quality={97}
/>
</Box>
<Box>
<Typography
component="h6"
sx={{ color: "secondary.main", fontSize: "1.1rem", fontWeight: 700, mb: 0.5 }}
>
Certificate
</Typography>
<Typography variant="subtitle1" sx={{ color: "text.secondary", lineHeight: 1.3 }}>
There are certificates for all courses.
</Typography>
</Box>
</Box>
<Box sx={{ lineHeight: 0 }}>
<Image src="/images/home-hero.jpg" width={775} height={787} alt="Hero img" />
</Box>
</Grid>
</Grid>

{/* Experience */}
<Box sx={{ boxShadow: 2, py: 4, px: 7, borderRadius: 4 }}>
<Grid container spacing={2}>
{exps.map((item) => (
<Grid key={item.value} item xs={12} md={4}>
<ExpItem item={item} />
</Grid>
))}
</Grid>
</Box>
</Container>
</Box>
);
};

export default Landing;
Loading

0 comments on commit 654b5ab

Please sign in to comment.