diff --git a/src/index.css b/src/index.css index 05c9e6c..a73afb5 100644 --- a/src/index.css +++ b/src/index.css @@ -81,7 +81,6 @@ li { background-image: url('./images/poster_blank.png'); background-size: cover; position: relative; - padding: 1rem; z-index: 1; } @@ -90,7 +89,7 @@ li { } .homeChallenge { - background-color: rgba(0, 0, 0, 0.75); + background-color: #000000bf; padding: 3rem 2rem; width: 400px; color: white; @@ -107,7 +106,6 @@ li { } .timeline { - padding: 2rem; position: relative; } @@ -118,7 +116,7 @@ li { height: 200px; position: absolute; left: 0; - bottom: -20px; + bottom: 0; } .prizes { @@ -134,24 +132,33 @@ li { align-items: center; } -@media screen and (min-width: 1650px) { - .homeBody { - background-repeat: no-repeat; - width: 100%; +/* Mobile display */ +@media screen and (max-width: 600px) { + .coverPage { + height: 82vh; + background-position: center; + display: flex; + justify-content: center; + align-items: center; + } + + .coverPage::after { height: 100%; - max-width: 100%; } -} -@media screen and (max-width: 1650px) { - .homeBody { + .creationLogo { + width: 130vw; + } + + .homeContent { + background-size: cover; + background-position: center; + background-attachment: fixed; background-repeat: no-repeat; - width: 100vw; + position: relative; + padding: 0; } -} -/* Mobile display */ -@media screen and (max-width: 600px) { .challenge { padding: 2rem; } @@ -189,10 +196,29 @@ li { .mainBody { padding: 30px; - background-color: #323232; - background-image: url(./images/background_pattern.png); + background-image: url(./images/wallpaper.png); + background-attachment: fixed; + background-repeat: no-repeat; + width: 100%; min-height: 100vh; - background-size: contain; + background-size: cover; +} + +.mainBody::before { + content: ''; + width: 100%; + height: 100%; + background-color: black; + background-attachment: fixed; + position: fixed; + opacity: 0.7; + top: 0; + left: 0; +} + +.mainContent { + position: relative; + z-index: 1; } .mainTitle { @@ -203,6 +229,8 @@ li { font-family: 'Raider Crusader'; font-size: 56px; text-align: center; + position: relative; + z-index: 2; } .secondaryTitle { @@ -336,6 +364,27 @@ li { float: right; margin: 2vw; font-family: Nova Flat; + text-decoration: none; + position: relative; + z-index: 2; + text-shadow: 0 0 15px black, 0 0 15px black, 0 0 15px black, 0 0 15px black; +} + +.challengeFindMore::before { + content: url(./images/magic-circle.png); + position: absolute; + top: -100px; + left: 0; + transform: scale(0.3); + width: 0; + height: 0; + mix-blend-mode: saturation; + opacity: 0; + transition: opacity 750ms ease-in-out; +} + +.challengeFindMore:hover::before { + opacity: 0.75; } .notFoundContent { diff --git a/src/pages/Challenges.jsx b/src/pages/Challenges.jsx index ca6c9ad..4113054 100644 --- a/src/pages/Challenges.jsx +++ b/src/pages/Challenges.jsx @@ -1,69 +1,109 @@ -import React from 'react' -import { Link } from 'react-router-dom' -import challenge from '../data/challenge.json' -import line1 from '../images/Challenge Statement Groups of line 1.png' -import line2 from '../images/Challenge Statement Groups of line 2.png' -import line3 from '../images/Challenge Statement Groups of line 3.png' -import line4 from '../images/Challenge Statement Groups of line 4.png' -import num1 from '../images/Challenge Statement Number 1.png' -import num2 from '../images/Challenge Statement Number 2.png' -import num3 from '../images/Challenge Statement Number 3.png' -import num4 from '../images/Challenge Statement Number 4.png' +import React from 'react'; +import { Link } from 'react-router-dom'; +import challenge from '../data/challenge.json'; +import line1 from '../images/Challenge Statement Groups of line 1.png'; +import line2 from '../images/Challenge Statement Groups of line 2.png'; +import line3 from '../images/Challenge Statement Groups of line 3.png'; +import line4 from '../images/Challenge Statement Groups of line 4.png'; +import num1 from '../images/Challenge Statement Number 1.png'; +import num2 from '../images/Challenge Statement Number 2.png'; +import num3 from '../images/Challenge Statement Number 3.png'; +import num4 from '../images/Challenge Statement Number 4.png'; export default class Challenge extends React.Component { - state = { - lines:[line1,line2,line3,line4], - nums:[num1,num2,num3,num4], - color:['#3ED6CD','#FB8500','#E270FF','#4DAAFF'], - path:['/challengesdetail','/challengesdetail2','/challengesdetail3','/challengesdetail4'] - } + state = { + lines: [line1, line2, line3, line4], + nums: [num1, num2, num3, num4], + color: ['#3ED6CD', '#FB8500', '#E270FF', '#4DAAFF'], + path: [ + '/challengesdetail', + '/challengesdetail2', + '/challengesdetail3', + '/challengesdetail4', + ], + }; - scrollToTop() { - window.scrollTo(0,0); - } + scrollToTop() { + window.scrollTo(0, 0); + } - render() { - return ( -
-

Challenge Statements

+ render() { + return ( +
+

+ Challenge Statements +

+
+ {challenge.map((section, index) => ( +
+
+ line +
+
- { - challenge.map((section,index) => ( -
-
line
-
-
number
-
-

{section.title}

- { - section.content.map((description) => -
- {description} -
-
-
- ) - } -

{section.company}

- { - section.background.map((description) => -
- {description} -
-
-
- ) - } -
-

- Find Out More {'>>'} -

-
-
- ) - ) + number
+
+

+ {section.title} +

+ {section.content.map((description) => ( +

{description}

+ ))} +

+ {section.company} +

+ {section.background.map((description) => ( +

{description}

+ ))} +
+

+ + Find Out More {'>>'} + +

+
- ) - } -} \ No newline at end of file + ))} +
+
+ ); + } +} diff --git a/src/pages/Contact.jsx b/src/pages/Contact.jsx index 25efe2a..43054fa 100644 --- a/src/pages/Contact.jsx +++ b/src/pages/Contact.jsx @@ -56,6 +56,7 @@ function Contact() {
-

+
+

Frequently Asked Questions


-
+
    {faqs.map((faq, index) => (
    -

    - {index + 1}. {faq.question} -

    - - {faq.answer} - +
  1. +

    {faq.question}

    +

    + {faq.answer} +

    +
  2. ))} -
+
); } diff --git a/src/pages/NotFound.jsx b/src/pages/NotFound.jsx index 7e33372..5177c97 100644 --- a/src/pages/NotFound.jsx +++ b/src/pages/NotFound.jsx @@ -6,7 +6,7 @@ export default class NotFound extends React.Component{ render() { return (
-
+
sad face
404 Page not found
diff --git a/src/pages/Rules.jsx b/src/pages/Rules.jsx index b1353dd..f9866e2 100644 --- a/src/pages/Rules.jsx +++ b/src/pages/Rules.jsx @@ -10,7 +10,7 @@ function Rules() { Rules and Regulations


-
+
{rules.map((rule, i) => rule.sectionTitle === "Selection Process" ? (
diff --git a/src/pages/SignIn.jsx b/src/pages/SignIn.jsx index 9b53464..334c227 100644 --- a/src/pages/SignIn.jsx +++ b/src/pages/SignIn.jsx @@ -3,7 +3,7 @@ import FormContainer from "../components/Container/FormContainer"; function SignIn() { return ( - , , diff --git a/src/pages/VerifyEmail.jsx b/src/pages/VerifyEmail.jsx index 0b0a627..c97b1df 100644 --- a/src/pages/VerifyEmail.jsx +++ b/src/pages/VerifyEmail.jsx @@ -16,7 +16,7 @@ function VerifyEmail() { return (

Verifying Email

-
+
You must verify your email first before submitting.