generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from Arquisoft/develpo-webapp-refactor
Web app refactored and improved
- Loading branch information
Showing
23 changed files
with
1,237 additions
and
741 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
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"short_name": "CyT", | ||
"name": "Conocer y Triunfar", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"src": "logo192.png", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
"theme_color": "#2e3487", | ||
"background_color": "#f2f2f2" | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -2,54 +2,69 @@ import React from 'react'; | |
import { Container, Typography, Paper, Link } from '@mui/material'; | ||
import {ReactComponent as Logo} from "../media/logoL.svg"; | ||
|
||
export default function About() { | ||
const FirstCard = () => { | ||
return ( | ||
<Container maxWidth="md" style={{paddingTop: '2rem'}}> | ||
<Paper elevation={3} sx={{padding: '2rem'}}> | ||
<Typography variant="h4" gutterBottom> | ||
About Us | ||
</Typography> | ||
|
||
<Paper elevation={3} style={{ padding: '2rem' }}> | ||
<Typography variant="h4" gutterBottom> | ||
About Us | ||
</Typography> | ||
|
||
<Container className="svg-container" style={{textAlign: "center", margin: "1rem"}}> | ||
<Logo style={{ width: '75%', height: '75%' }} /> | ||
</Container> | ||
<Container className="svg-container" sx={{textAlign: "center", margin: "1rem"}}> | ||
<Logo style={{ width: '75%', height: '75%' }} /> | ||
</Container> | ||
|
||
<Typography variant="body1" paragraph> | ||
Welcome to our project! We are dedicated to providing quality content and services to our users. | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
Our mission is to provide a fun way of learning and practicing general knowledge through a Q&A game. | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
Feel free to explore our site and discover more about what we have to offer. | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
If you have any questions or feedback, please don't hesitate to contact us. | ||
</Typography> | ||
<Typography variant="subtitle1" color="textSecondary"> | ||
Thank you for visiting! | ||
</Typography> | ||
</Paper> | ||
<Typography variant="body1" paragraph> | ||
Welcome to our project! We are dedicated to providing quality content and services to our users. | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
Our mission is to provide a fun way of learning and practicing general knowledge through a Q&A game. | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
Feel free to explore our site and discover more about what we have to offer. | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
If you have any questions or feedback, please don't hesitate to contact us. | ||
</Typography> | ||
<Typography variant="subtitle1" color="textSecondary"> | ||
Thank you for visiting! | ||
</Typography> | ||
</Paper> | ||
) | ||
} | ||
|
||
<Paper elevation={3} style={{ padding: '2rem', marginTop: '2rem'}}> | ||
<Typography variant="h4" gutterBottom> | ||
Contact Us | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
You can reach us via the following channels: | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
Mailing Info: <Link href="mailto:[email protected]">[email protected]</Link> | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
Mailing Info: <Link href="mailto:[email protected]">[email protected]</Link> | ||
</Typography> | ||
<Typography variant="subtitle1"> | ||
<Link href="https://github.com/Arquisoft/wiq_es05b" target="_blank" rel="noopener noreferrer">Checkout our github page!</Link> | ||
</Typography> | ||
</Paper> | ||
const ContactCard = ({mails}) => { | ||
return ( | ||
<Paper elevation={3} sx={{ padding: '2rem'}}> | ||
<Typography variant="h4" gutterBottom> | ||
Contact Us | ||
</Typography> | ||
<Typography variant="body1" paragraph> | ||
You can reach us via the following channels: | ||
</Typography> | ||
{mails.map(mail => { | ||
return ( | ||
<Typography variant="body1" paragraph> | ||
Mailing Info: <Link href={`mailto:${mail}`}>{mail}</Link> | ||
</Typography> | ||
) | ||
})} | ||
<Typography variant="subtitle1"> | ||
<Link href="https://github.com/Arquisoft/wiq_es05b" target="_blank" rel="noopener noreferrer">Checkout our github page!</Link> | ||
</Typography> | ||
</Paper> | ||
) | ||
} | ||
|
||
export default function About() { | ||
const mails = [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
|
||
return ( | ||
<Container maxWidth="md" sx={{marginTop: '2rem', display: "flex", gap:"2rem", flexFlow: "column"}}> | ||
<FirstCard /> | ||
<ContactCard mails={mails} /> | ||
</Container> | ||
|
||
); | ||
|
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import {Fragment} from "react"; | ||
import ProtectedComponent from "./components/ProtectedComponent"; | ||
|
||
// TODO | ||
export default function Account() { | ||
return ( | ||
<Fragment> | ||
<> | ||
<ProtectedComponent /> | ||
</Fragment> | ||
</> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,16 +1,31 @@ | ||
import {Button, Container, Paper, Typography} from "@mui/material"; | ||
import {Link} from "react-router-dom"; | ||
import { Button, Container, Paper, Typography } from "@mui/material"; | ||
import { Link } from "react-router-dom"; | ||
|
||
export default function Error() { | ||
return ( | ||
<Container maxWidth="md" sx={{paddingTop: '2rem'}}> | ||
<Paper elevation={3} sx={{ padding: '2rem', textAlign: "center", display: "flex", flexFlow: "column", gap: "1rem" }}> | ||
<img src="/jordi-error.jpg" alt="Oh no"/> | ||
<Typography variant="h4" component="p">Oh no, an error occurred.</Typography> | ||
<Typography variant="h5" component="p">It seems the requested URL does no exist or you don't have enough privileges to see it.</Typography> | ||
<Typography variant="h5" component="p">Go back sinner.</Typography> | ||
<Button component={Link} to="/home" variant="contained">Go Home</Button> | ||
</Paper> | ||
</Container> | ||
) | ||
} | ||
return ( | ||
<Container maxWidth="md" sx={{ paddingTop: "2rem" }}> | ||
<Paper elevation={3} sx={{ | ||
padding: "2rem", | ||
textAlign: "center", | ||
display: "flex", | ||
flexFlow: "column", | ||
gap: "1rem", | ||
}}> | ||
<img src="/jordi-error.jpg" alt="Oh no" /> | ||
<Typography variant="h4" component="p"> | ||
Oh no, an error occurred. | ||
</Typography> | ||
<Typography variant="h5" component="p"> | ||
It seems the requested URL does no exist or you don't have enough | ||
privileges to see it. | ||
</Typography> | ||
<Typography variant="h5" component="p"> | ||
Go back sinner. | ||
</Typography> | ||
<Button component={Link} to="/home" variant="contained"> | ||
Go Home | ||
</Button> | ||
</Paper> | ||
</Container> | ||
); | ||
} |
Oops, something went wrong.