-
Notifications
You must be signed in to change notification settings - Fork 2
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 #9 from pes-alcoding-club/server
Server
- Loading branch information
Showing
38 changed files
with
22,918 additions
and
18,928 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,140 @@ | ||
import { Divider, Heading, Link as L, Text } from '@chakra-ui/react'; | ||
import Link from 'next/link'; | ||
import React from 'react'; | ||
import MediaQuery from 'react-responsive'; | ||
|
||
const AboutUs = () => { | ||
return ( | ||
<> | ||
<MediaQuery minDeviceWidth={1224}> | ||
<div> | ||
<Heading | ||
style={{ | ||
textAlign: 'center', | ||
margin: '70px auto 50px', | ||
}} | ||
> | ||
About Us | ||
</Heading> | ||
<Text | ||
align="center" | ||
style={{ | ||
padding: '0 110px 0 110px', | ||
margin: '0 0 60px 0', | ||
}} | ||
fontSize="lg" | ||
> | ||
The Alcoding Club is the official Competitive | ||
Programming Club under the CSE Department of PES | ||
University. The club aims to cultivate and promote the | ||
skills of competitive programming and problem solving in | ||
the campus through our workshops and discussions | ||
sessions, where we discuss previous online competition | ||
problems and try to come up with solutions to those | ||
problems. The competitions we participate in can be | ||
found here on our{' '} | ||
<span style={{ color: '#fd6378' }}> | ||
<Link href="calendar">calendar</Link> | ||
</span> | ||
. | ||
</Text> | ||
<Text | ||
align="center" | ||
style={{ | ||
padding: '0 110px 0 110px', | ||
margin: '0 0 70px 0', | ||
}} | ||
fontSize="lg" | ||
> | ||
The Alcoding Club is also responsible for representing | ||
the university in various regional and international | ||
coding competitions, from college fests, to major events | ||
like the ACM ICPC, Google Kickstart and more. The Club | ||
also hosts various competitions throughout the year. | ||
While most of the competitions we host are online, we | ||
also host an annual flagship coding competition where | ||
students from colleges all over the country compete. | ||
Finally, the Alcoding Club undertakes various | ||
development projects every year, and offers summer | ||
internships to work on the same. You can check out our | ||
previous and ongoing projects{' '} | ||
<L | ||
color="#fd6378" | ||
href="https://github.com/pes-alcoding-club" | ||
userSelect="none" | ||
> | ||
here | ||
</L> | ||
. | ||
</Text> | ||
<Divider /> | ||
</div> | ||
</MediaQuery> | ||
<MediaQuery maxDeviceWidth={1224}> | ||
<div style={{ width: '140%' }}> | ||
<Heading | ||
style={{ | ||
textAlign: 'center', | ||
margin: '70px auto 50px', | ||
}} | ||
> | ||
About Us | ||
</Heading> | ||
<Text | ||
align="center" | ||
style={{ | ||
padding: '0 70px 0 70px', | ||
margin: '0 0 60px 0', | ||
}} | ||
fontSize="xl" | ||
> | ||
The Alcoding Club is the official Competitive | ||
Programming Club under the CSE Department of PES | ||
University. The club aims to cultivate and promote the | ||
skills of competitive programming and problem solving in | ||
the campus through our workshops and discussions | ||
sessions, where we discuss previous online competition | ||
problems and try to come up with solutions to those | ||
problems. The competitions we participate in can be | ||
found here on our{' '} | ||
<span style={{ color: '#fd6378' }}> | ||
<Link href="calendar">calendar</Link> | ||
</span> | ||
. | ||
</Text> | ||
<Text | ||
align="center" | ||
style={{ | ||
padding: '0 70px 0 70px', | ||
margin: '0 0 70px 0', | ||
}} | ||
fontSize="xl" | ||
> | ||
The Alcoding Club is also responsible for representing | ||
the university in various regional and international | ||
coding competitions, from college fests, to major events | ||
like the ACM ICPC, Google Kickstart and more. The Club | ||
also hosts various competitions throughout the year. | ||
While most of the competitions we host are online, we | ||
also host an annual flagship coding competition where | ||
students from colleges all over the country compete. | ||
Finally, the Alcoding Club undertakes various | ||
development projects every year, and offers summer | ||
internships to work on the same. You can check out our | ||
previous and ongoing projects{' '} | ||
<L | ||
color="#fd6378" | ||
href="https://github.com/pes-alcoding-club/website" | ||
userSelect="none" | ||
> | ||
here | ||
</L> | ||
. | ||
</Text> | ||
<Divider /> | ||
</div> | ||
</MediaQuery> | ||
</> | ||
); | ||
}; | ||
export default AboutUs; |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ import MediaQuery from 'react-responsive'; | |
|
||
const Footer = () => { | ||
return ( | ||
<div style={{bottom:0}}> | ||
<div style={{ bottom: 0 }}> | ||
<MediaQuery minDeviceWidth={1224}> | ||
<footer | ||
style={{ | ||
|
@@ -61,6 +61,7 @@ const Footer = () => { | |
</Button> | ||
</a> | ||
<a href="mailto:[email protected]"> | ||
<Button | ||
_hover={{ | ||
bg: '#DB4437', | ||
|
@@ -79,6 +80,7 @@ const Footer = () => { | |
> | ||
</Button> | ||
</a> | ||
</div> | ||
</div> | ||
</footer> | ||
|
@@ -153,7 +155,9 @@ const Footer = () => { | |
padding: '0 27px', | ||
}} | ||
> | ||
<a href="mailto:[email protected]"> | ||
</a> | ||
</Button> | ||
</div> | ||
</div> | ||
|
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,97 @@ | ||
import { | ||
Box, | ||
Button, | ||
Container, | ||
Heading, | ||
Input, | ||
InputGroup, | ||
InputLeftAddon, | ||
Text, | ||
} from '@chakra-ui/react'; | ||
import axios from 'axios'; | ||
import React, { useState } from 'react'; | ||
|
||
const Form = () => { | ||
const [name, setName] = useState<string>(''); | ||
const [email, setEmail] = useState<string>(''); | ||
|
||
const onSubmit = async (e) => { | ||
e.preventDefault(); | ||
await axios.post('http://localhost:5000/user/', { name, email }); | ||
}; | ||
|
||
return ( | ||
<> | ||
<Container> | ||
<Heading textAlign="center" my="10"> | ||
About the contest | ||
</Heading> | ||
<Text textAlign="center" fontSize="lg" my="5"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Duis blandit posuere est, eget lacinia est fermentum at. | ||
Mauris et ultrices arcu. Aliquam vitae pulvinar ex. Maecenas | ||
vitae luctus sapien, nec laoreet metus. Nam ultricies | ||
euismod dolor id vulputate. Cras sit amet faucibus enim, in | ||
pulvinar metus. Pellentesque nec facilisis sem. Integer | ||
vitae dolor sit amet quam tempor commodo. Vestibulum ante | ||
ipsum primis in faucibus orci luctus et ultrices posuere | ||
cubilia curae; Phasellus vel massa et dolor tristique | ||
sollicitudin non sed velit. Vestibulum ante ipsum primis in | ||
faucibus orci luctus et ultrices posuere cubilia curae; | ||
Fusce in augue nulla. Nulla non lobortis purus. Proin | ||
vestibulum mollis ipsum in condimentum. Ut eu sollicitudin | ||
quam. Donec vehicula arcu a sapien molestie tempus. Nullam | ||
et placerat nibh. Quisque blandit sed dui eget vehicula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec sit amet enim pharetra, posuere odio nec, mollis mi. | ||
Phasellus eu volutpat sapien, sit amet viverra nunc. Mauris | ||
augue elit, ullamcorper sed lorem eu, venenatis euismod | ||
arcu. Etiam vehicula ultricies diam, nec porttitor lacus | ||
feugiat non. In vel placerat dui. Pellentesque velit purus, | ||
tristique et blandit at, interdum at erat. Cras iaculis orci | ||
leo, sollicitudin tincidunt tellus ultrices non. Suspendisse | ||
dignissim congue enim, ut porttitor lectus lacinia nec. Nam | ||
quis enim sit amet metus aliquam hendrerit vitae sit amet | ||
velit. Vivamus odio nisl, dictum et sapien id, molestie | ||
elementum quam. Lorem ipsum dolor sit amet, consectetur | ||
adipiscing elit. Suspendisse tincidunt sem ut libero dictum, | ||
et posuere urna placerat. Mauris fermentum nulla et sem | ||
blandit, a fermentum neque lacinia. | ||
</Text> | ||
</Container> | ||
<Container> | ||
<Heading textAlign="center" my="10"> | ||
Apply | ||
</Heading> | ||
<InputGroup size="lg" my="5" mx="auto"> | ||
<InputLeftAddon children="Name" /> | ||
<Input | ||
borderColor="#CBD5E0" | ||
value={name} | ||
onChange={(e) => setName(e.target.value)} | ||
/> | ||
</InputGroup> | ||
<InputGroup size="lg" my="5"> | ||
<InputLeftAddon children="Email" /> | ||
<Input | ||
borderColor="#CBD5E0" | ||
value={email} | ||
onChange={(e) => setEmail(e.target.value)} | ||
/> | ||
</InputGroup> | ||
<Box display="flex" justifyContent="center" my="10"> | ||
<Button | ||
size="lg" | ||
_hover={{ bg: '#0f3460', textColor: 'whitesmoke' }} | ||
bgColor="#e94560" | ||
onClick={onSubmit} | ||
> | ||
Submit | ||
</Button> | ||
</Box> | ||
</Container> | ||
</> | ||
); | ||
}; | ||
|
||
export default Form; |
Oops, something went wrong.
17e70fd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: