-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created landing page and guest features
- Loading branch information
1 parent
0d322f7
commit 032b2d1
Showing
6 changed files
with
270 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
|
||
import Modal from "@mui/material/Modal"; | ||
import Card from "@mui/material/Card"; | ||
import CardContent from "@mui/material/CardContent"; | ||
import Grid from "@mui/material/Grid"; | ||
import MDTypography from "components/MDTypography"; | ||
|
||
function TermModal({ open, onClose }) { | ||
const cardContentStyle = { | ||
// Add your desired width and height for the modal | ||
width: "80%", // Adjust as needed | ||
height: "80vh", // Adjust as needed | ||
overflowY: "scroll", // Add a vertical scroll when the content exceeds the height | ||
}; | ||
return ( | ||
<Modal | ||
open={open} | ||
onClose={onClose} | ||
style={{ display: "flex", alignItems: "center", justifyContent: "center" }} | ||
> | ||
<Card style={cardContentStyle}> | ||
<CardContent> | ||
<Grid container spacing={2}> | ||
<Grid item xs={12} mt={5}> | ||
<MDTypography variant="h5" fontWeight="medium" textAlign="center"> | ||
Welcome to the Digital Newspaper Advertisement Analyzer. | ||
</MDTypography> | ||
<MDTypography mt={2} variant="h6" fontWeight="medium"> | ||
Please read these Terms and Conditions ("Terms") carefully before using | ||
this service. | ||
</MDTypography> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
Acceptance of Terms | ||
</MDTypography> | ||
<MDTypography variant="h6" fontWeight="medium"> | ||
By using the Digital Newspaper Advertisement Analyzer (hereafter referred to as | ||
"the Service"), you agree to comply with and be bound by these Terms. If | ||
you do not agree with any part of these Terms, you should not use the Service. | ||
<br></br> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
Use of the Service | ||
</MDTypography> | ||
You must be at least 18 years old to use this Service. You are responsible for | ||
maintaining the security of your account and password. The Service cannot and will | ||
not be liable for any loss or damage from your failure to comply with this security | ||
obligation. <br></br> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
Privacy | ||
</MDTypography> | ||
Your use of the Service is also governed by our Privacy Policy. Please review our | ||
Privacy Policy to understand our data practices. <br></br> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
User Content | ||
</MDTypography> | ||
You retain the rights to your content, but you grant the Service a worldwide, | ||
royalty-free, non-exclusive license to use, distribute, reproduce, modify, adapt, | ||
and publish your content solely for the purpose of displaying, distributing, and | ||
promoting the Service. You agree not to use the Service to submit or link to any | ||
content which is defamatory, abusive, hateful, threatening, spam, or spam-like.{" "} | ||
<br></br> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
Intellectual Property | ||
</MDTypography> | ||
The Service and its original content (excluding user-provided content) are protected | ||
by copyright, trademark, patent, trade secret, and other laws. You may not modify, | ||
reproduce, distribute, create derivative works or adaptations of, publicly display | ||
or in any way exploit any of the content in whole or in part except as expressly | ||
authorized by the Service. Trademarks, service marks, graphics, and logos used in | ||
connection with the Service are trademarks or registered trademarks of the | ||
Service's licensors. You are granted no right or license with respect to any of | ||
the aforesaid trademarks. <br></br> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
Termination | ||
</MDTypography> | ||
We may terminate or suspend access to our Service immediately, without prior notice | ||
or liability, for any reason whatsoever, including without limitation if you breach | ||
the Terms. <br></br> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
Changes to the Terms | ||
</MDTypography> | ||
We reserve the right, at our sole discretion, to modify or replace these Terms at | ||
any time. If a revision is material, we will try to provide at least 30 days' | ||
notice prior to any new terms taking effect. What constitutes a material change will | ||
be determined at our sole discretion. <br></br> | ||
<MDTypography mt={2} fontWeight="bold"> | ||
Contact Us{" "} | ||
</MDTypography> | ||
If you have any questions about these Terms, please contact us. <br></br>By using | ||
the Digital Newspaper Advertisement Analyzer, you agree to these Terms and | ||
Conditions. Thank you for using our service! | ||
</MDTypography> | ||
</Grid> | ||
</Grid> | ||
</CardContent> | ||
</Card> | ||
</Modal> | ||
); | ||
} | ||
|
||
TermModal.propTypes = { | ||
open: PropTypes.bool.isRequired, | ||
onClose: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default TermModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
|
||
import Modal from "@mui/material/Modal"; | ||
import Card from "@mui/material/Card"; | ||
import CardContent from "@mui/material/CardContent"; | ||
import Grid from "@mui/material/Grid"; | ||
import MDTypography from "components/MDTypography"; | ||
import MDButton from "components/MDButton"; | ||
import signinimage from "./signin.gif"; | ||
import MDBox from "components/MDBox"; | ||
import { Link } from "react-router-dom"; | ||
|
||
function SignInModal({ open, onClose }) { | ||
return ( | ||
<Modal | ||
open={open} | ||
onClose={onClose} | ||
style={{ display: "flex", alignItems: "center", justifyContent: "center" }} | ||
> | ||
<Card> | ||
<CardContent> | ||
<Grid container spacing={2}> | ||
<Grid item xs={12} mt={5}> | ||
<MDTypography variant="h3" fontWeight="medium" textAlign="center"> | ||
Explore Extended Features Personalized For You. | ||
</MDTypography> | ||
<MDTypography variant="h3" fontWeight="medium" textAlign="center"> | ||
Join With Us | ||
</MDTypography> | ||
<MDBox display="flex" justifyContent="center" alignItems="center"> | ||
<img src={signinimage} alt="undraw-Add-user-re-5oib" border="0" /> | ||
</MDBox> | ||
</Grid> | ||
<Grid item xs={12}></Grid> | ||
<Grid item xs={12} style={{ display: "flex", justifyContent: "center" }}> | ||
<MDButton | ||
variant="gradient" | ||
color="info" | ||
component={Link} | ||
to={"/authentication/sign-up"} | ||
size="large" | ||
> | ||
Sign Up | ||
</MDButton> | ||
</Grid> | ||
</Grid> | ||
</CardContent> | ||
</Card> | ||
</Modal> | ||
); | ||
} | ||
|
||
SignInModal.propTypes = { | ||
open: PropTypes.bool.isRequired, | ||
onClose: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default SignInModal; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.