Skip to content

Commit

Permalink
login and signup
Browse files Browse the repository at this point in the history
  • Loading branch information
roshan770 committed Feb 16, 2024
2 parents e0a2c64 + 97205e8 commit 9259344
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 29 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/thaili-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import HomePage from "./page/HomePage";
import ErrorPage from "./page/ErrorPage";
import TermsPage from "./page/TermsPage";
import PrivacyPage from "./page/PrivacyPage";
import Login from "./component/login";
import SignUp from "./component/Sign_Up";
import ContactPage from "./page/ContactPage";

function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/contact" element={<ContactPage />} />
<Route path="/privacy" element={<PrivacyPage />} />
<Route path="/terms" element={<TermsPage />} />
<Route path="/*" element={<ErrorPage />} />
Expand Down
87 changes: 87 additions & 0 deletions src/component/ContactUs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import * as React from "react";
import Container from "@mui/material/Container";
import Grid from "@mui/material/Grid";
import Typography from "@mui/material/Typography";
import { styled } from "@mui/system";
import ourTeam from "../image/OurTeam.png";

const StyledContainer = styled(Container)({
minHeight: "100vh",
width: "100vw",
background: "#1A3306",
display: "flex",
justifyContent: "center",
alignItems: "center",
'@media (min-width:600px)': {
padding: "0",
// height: "auto",
width:"100%",
textAlign: "center"
},
});

const Title = styled(Typography)({
color: "#FFFFFF",
textAlign: "center",
fontWeight: 700,
fontSize: "clamp(2rem, 4vw, 4rem)",
margin: "1rem 0",
'@media (min-width:600px)': {
margin: "3rem 0",
},
});

const SubTitle = styled(Typography)({
color: "#FFFFFF",
textAlign: "center",
fontWeight: 500,
fontSize: "clamp(1rem, 3vw, 3rem)",
margin: "rem 0",
'@media (min-width:600px)': {
margin: "3rem 0",
},
});

const Body = styled(Typography)({
// Use this when text is added
color: "#2B2B60",
// textAlign: "justify",
fontSize: "clamp(1rem, 2vw, 1.5rem)",
lineHeight: "1.5",
'@media (min-width:600px)': {
// textAlign: "center"
}
});

const HasTags = styled(Typography)({
color:"#fff",
opacity:".8",
fontSize:"clamp(.7rem, 2vw, 1.5rem)",
textAlign:"center",
lineHeight:"1.8"
})

const StyledImage = styled('img')({
width: '100%',
height: 'auto',
marginBottom:'-.4rem' // To hide the small space below the image
});

export default function ContactUs() {
return (
<StyledContainer id="a" maxWidth={false}>
<Grid container spacing={6} padding={0}>
<Grid item xs={12} md={12} paddingLeft={0} paddingTop={0}>
<Title component="h2" variant="h4">
Contact Us
</Title>
<Body variant="body1">
<HasTags>🌱 #EcoThaili #BeatPlasticWithUs #SustainabilityJourney</HasTags>
<SubTitle>We'd love to hear from you</SubTitle>
<HasTags>Reach out to us</HasTags>
</Body>
</Grid>
</Grid>
</StyledContainer>
);
}
54 changes: 28 additions & 26 deletions src/component/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const FooterLink = styled(Link)({
fontWeight: "400",
marginBottom: ".5rem",
color: "#2B2B60",
opacity: ".7",
opacity: ".8",
cursor: "pointer",
textDecoration: "none",
"&:hover": {
Expand All @@ -96,9 +96,10 @@ function Copyright() {
return (
<Typography variant="body2" color="text.secondary" mt={1}>
<FooterBody>
{"Copyright © "}
<FooterLink href="/">EcoThaili&nbsp;</FooterLink>
{new Date().getFullYear()}
{"© " +
new Date().getFullYear() +
" EcoThaili. All Rights Reserved. Website by "}
<FooterLink> Team Inventrix </FooterLink>
</FooterBody>
</Typography>
);
Expand Down Expand Up @@ -203,6 +204,9 @@ export default function Footer() {
About us
</FooterLink>
<FooterLink color="text.secondary">Careers (no page yet)</FooterLink>
<FooterLink color="text.secondary" href="/contact">
Contact
</FooterLink>
</Box>
<Box
sx={{
Expand All @@ -218,31 +222,9 @@ export default function Footer() {
<FooterLink color="text.secondary" href="/privacy">
Privacy
</FooterLink>
<FooterLink color="text.secondary" href="#">
Contact
</FooterLink>
</Box>
</UpperFooter>
<LowerFooter>
<div>
<FooterLink color="text.secondary" href="/privacy">
Privacy Policy
</FooterLink>
<Typography display="inline" sx={{ mx: 0.5, opacity: 0.5 }}>
&nbsp;•&nbsp;
</Typography>
<FooterLink color="text.secondary" href="/terms">
Terms of Service
</FooterLink>
</div>

<Copyright />
{/* <ScrollLink to="os" smooth={true} duration={2000}>
<Typography variant="body2" sx={footerLinkStyle}>
Back to Top
</Typography>
</ScrollLink> */}

<Stack
direction="row"
justifyContent="left"
Expand Down Expand Up @@ -292,6 +274,26 @@ export default function Footer() {
<FacebookIcon />
</IconButton>
</Stack>

<Copyright />

<div>
<FooterLink color="text.secondary" href="/privacy">
Privacy Policy
</FooterLink>
<Typography display="inline" sx={{ mx: 0.5, opacity: 0.5 }}>
&nbsp;•&nbsp;
</Typography>
<FooterLink color="text.secondary" href="/terms">
Terms of Service
</FooterLink>
</div>

{/* <ScrollLink to="os" smooth={true} duration={2000}>
<Typography variant="body2" sx={footerLinkStyle}>
Back to Top
</Typography>
</ScrollLink> */}
</LowerFooter>
</StyledContainer>
);
Expand Down
6 changes: 5 additions & 1 deletion src/component/MaterialComposition.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import MaterialCompositionChart from "../image/designedImages/composition.png";

const StyledContainer = styled(Container)({
// padding: "5rem 1.5rem",
minHeight: "100vh",
// minHeight: "100vh",
width: "100%",
background: "#EFEEEF",
display: "flex",
Expand Down Expand Up @@ -38,6 +38,8 @@ const Body = styled(Typography)({
});

const ImageContainer = styled("figure")({
minHeight: "100%",
maxWidth: "100vw",
display: "flex",
flexDirection: "column",
justifyContent: "center",
Expand All @@ -46,6 +48,8 @@ const ImageContainer = styled("figure")({
margin: "5rem auto",
"@media (min-width:600px)": {
maxWidth: "1050px",
minHeight: "100vh",
maxWidth: "90vw",
},
});

Expand Down
14 changes: 14 additions & 0 deletions src/page/ContactPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import Header from "../component/Header";
import Footer from "../component/Footer";
import ContactUs from "../component/ContactUs";

export default function ContactPage() {
return (
<>
<Header />
<ContactUs />
<Footer />
</>
);
}

0 comments on commit 9259344

Please sign in to comment.