Skip to content

Commit

Permalink
chore: final setup (#273)
Browse files Browse the repository at this point in the history
* chore: final setup

* fix: minor changes

* fix: footer styles

* fix: smooth scrolling

* fix: final fixes
  • Loading branch information
ashutosh-rath02 authored Dec 4, 2023
1 parent cf5e2f5 commit 0e7752d
Show file tree
Hide file tree
Showing 22 changed files with 640 additions and 123 deletions.
2 changes: 1 addition & 1 deletion config/content/Timelinecontent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const timelinecontent = {
duration: '15 oct to 15 dec',
boxcolor: '#72F7BF',
wheelcolor: '#35E1FF',
ellipsecolor: '#B067FF',
ellipsecolor: '#FF65CD',
ellipsecontent: 'Get extra perks with early registration',
},
{
Expand Down
2 changes: 1 addition & 1 deletion config/content/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
alt: 'logo',
},
Links: [
{ id: 'Home', name: 'Home', link: '#Home' },
{ id: 'Home', name: 'Home', link: '/#Home' },
{ id: 'About', name: 'About', link: '/#About' },
{ id: 'Stats', name: 'Stats', link: '/#Stats' },
{ id: 'Timeline', name: 'Timeline', link: '/#Timeline' },
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"react-modal": "^3.14.3",
"react-responsive-modal": "^6.1.0",
"react-slick": "^0.28.1",
"react-tsparticles": "^2.12.2",
"react-typeform-embed": "^1.0.3",
"slick-carousel": "^1.8.1",
"smooth-scroll": "^16.1.3",
Expand All @@ -72,6 +73,7 @@
"styled-components": "^5.3.0",
"tailwindcss": "^3.1.8",
"tailwindcss-pseudo": "^1.0.3",
"tsparticles": "^2.12.0",
"twin.macro": "^2.8.2"
},
"devDependencies": {
Expand Down
13 changes: 5 additions & 8 deletions src/components/AboutUs/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import React from 'react';
import Content from '../../../config/content/About';
import { AboutContainer, AboutContent, Heading } from './styles';
import Carousel from './Carousel';
import { Container } from '../shared';

const AboutSection = () => (
<Container id='About'>
<AboutContainer>
<Heading>About Us</Heading>
<AboutContent>{Content.desc}</AboutContent>
<Carousel />
</AboutContainer>
</Container>
<AboutContainer id='About'>
<Heading>About Us</Heading>
<AboutContent>{Content.desc}</AboutContent>
<Carousel />
</AboutContainer>
);

export default AboutSection;
34 changes: 23 additions & 11 deletions src/components/AboutUs/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ import { Body1, Heading1 } from '../shared';

export const AboutContainer = styled.div`
${tw`
flex
flex-col
items-center
text-center
mt-0
overflow-y-hidden
w-full
mb-12
`}
w-11/12
h-auto
flex
flex-col
items-center
justify-center
min-h-screen
`}
height: fit-content;
margin: 2% auto 3%;
`;
export const AboutContent = styled(Body1)`
${tw`
Expand All @@ -27,6 +28,17 @@ export const AboutContent = styled(Body1)`
`;
export const Heading = styled(Heading1)`
${tw`
font-bold
`}
text-center
mt-5
m-auto
leading-[96px]
text-[64px]
`}
font-weight: 700;
@media (max-width: 761px) {
color: var(--neutral-1, #fff);
font-size: 32px;
font-style: normal;
line-height: 96px;
}
`;
4 changes: 2 additions & 2 deletions src/components/Faq/Faq.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const FAQ = () => {
};

return (
<SectionContainer id='FAQs'>
<FAQContainer>
<SectionContainer>
<FAQContainer id='FAQs'>
<Helmet>
<link
rel='stylesheet'
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeroSection/HeroBtn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const HeroBtn = () => {
<div>
<button onClick={handleButtonClick} type='button'>
<a href='https://dscnitrourkela.netlify.app/' target='__blank' rel='noreferrer'>
REGISTER
PRE-REGISTER
</a>
</button>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/components/HeroSection/styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SectionContainer = styled.div`

export const HeroBody = styled.div`
${tw`
mt-[6%]
mt-[7%]
h-full
flex
justify-center
Expand Down Expand Up @@ -64,6 +64,7 @@ export const HeroInside = styled.div`
export const ContentBlock = styled.div`
${tw`
max-w-[360px]
pb-4
sm:max-w-sm
md:max-w-xl
lg:max-w-3xl
Expand Down
97 changes: 47 additions & 50 deletions src/components/Prizes/Prizes.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable jsx-a11y/click-events-have-key-events */
import React, { useState, useEffect, useRef } from 'react';
import {
SectionContainer,
PrizesContainer,
Box,
PrizesTitle,
Expand Down Expand Up @@ -60,56 +59,54 @@ const Prizes = () => {
}, []);

return (
<SectionContainer>
<PrizesContainerWrapper>
<PrizesTitle>{PrizesContent.title}</PrizesTitle>
<PrizesContainer>
{isMobile
? PrizesContent.prizeData.map((item) => (
<MobileBox key={item.id} shadowColor={item.prizeShadowColor}>
<img src={item.src} alt='Medal' />
<MobileDescription>
<MobilePrizes>Total Prize - {item.prizeValue}</MobilePrizes>
<MobilePrize>
<MobileCash>Cash Prize {item.cash}</MobileCash>
<MobileSwags>{item.swags}</MobileSwags>
<MobileMerchandise>{item.merchandise}</MobileMerchandise>
</MobilePrize>
</MobileDescription>
</MobileBox>
))
: PrizesContent.prizeData.map((item) => (
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
<div
key={item.id}
onClick={() => (isMobile ? handleBoxInteraction(item.id) : undefined)}
onMouseEnter={() => (!isMobile ? handleBoxInteraction(item.id) : undefined)}
<PrizesContainerWrapper id='Prizes'>
<PrizesTitle>{PrizesContent.title}</PrizesTitle>
<PrizesContainer>
{isMobile
? PrizesContent.prizeData.map((item) => (
<MobileBox key={item.id} shadowColor={item.prizeShadowColor}>
<img src={item.src} alt='Medal' />
<MobileDescription>
<MobilePrizes>Total Prize - {item.prizeValue}</MobilePrizes>
<MobilePrize>
<MobileCash>Cash Prize {item.cash}</MobileCash>
<MobileSwags>{item.swags}</MobileSwags>
<MobileMerchandise>{item.merchandise}</MobileMerchandise>
</MobilePrize>
</MobileDescription>
</MobileBox>
))
: PrizesContent.prizeData.map((item) => (
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
<div
key={item.id}
onClick={() => (isMobile ? handleBoxInteraction(item.id) : undefined)}
onMouseEnter={() => (!isMobile ? handleBoxInteraction(item.id) : undefined)}
>
<Box
expanded={isMobile || expandedIndex === item.id}
shadowColor={item.prizeShadowColor}
backgroundColor={
isMobile || expandedIndex === item.id ? selectedBackgroundColor : '#272727'
}
className={expandedIndex === item.id ? 'clicked' : ''}
>
<Box
expanded={isMobile || expandedIndex === item.id}
shadowColor={item.prizeShadowColor}
backgroundColor={
isMobile || expandedIndex === item.id ? selectedBackgroundColor : '#272727'
}
className={expandedIndex === item.id ? 'clicked' : ''}
>
<img src={item.src} alt='Medal' />
{!isMobile && expandedIndex === item.id && (
<Description>
<TotalPrizes>Total Prize - {item.prizeValue}</TotalPrizes>
<PrizeText>
<CashPrize>Cash Prize {item.cash}</CashPrize>
<Swags>{item.swags}</Swags>
<Merchandise>{item.merchandise}</Merchandise>
</PrizeText>
</Description>
)}
</Box>
</div>
))}
</PrizesContainer>
</PrizesContainerWrapper>
</SectionContainer>
<img src={item.src} alt='Medal' />
{!isMobile && expandedIndex === item.id && (
<Description>
<TotalPrizes>Total Prize - {item.prizeValue}</TotalPrizes>
<PrizeText>
<CashPrize>Cash Prize {item.cash}</CashPrize>
<Swags>{item.swags}</Swags>
<Merchandise>{item.merchandise}</Merchandise>
</PrizeText>
</Description>
)}
</Box>
</div>
))}
</PrizesContainer>
</PrizesContainerWrapper>
);
};

Expand Down
11 changes: 3 additions & 8 deletions src/components/Prizes/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,17 @@ import { Body1, Heading1 } from '../shared';

const smallScreen = '768px';

export const SectionContainer = styled.section`
export const PrizesContainerWrapper = styled.div`
${tw`
w-full
h-auto
flex
flex-col
items-start
items-center
`}
height: fit-content;
margin: 2% auto 3%;
`;

export const PrizesContainerWrapper = styled.div`
margin-top: 0px;
margin: auto;
padding-left: 0;
width: 100%;
@media (max-width: ${smallScreen}) {
padding: 0 20px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Sponsor/Sponsor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function SponsorSection() {
const deltaSponsorsSecond = Sponsor.deltaSecond;

return (
<SectionContainer id='Sponsors'>
<SponsorHeader>Sponsors</SponsorHeader>
<SectionContainer>
<SponsorHeader id='Sponsors'>Sponsors</SponsorHeader>
<AlphaSponsors>
<AlphaContainer>
<AlphaHeader>Alpha Sponsors</AlphaHeader>
Expand Down
4 changes: 2 additions & 2 deletions src/components/TimelineSection/Timeline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { SectionContainer } from '../shared';

function TimelineSection() {
return (
<SectionContainer id='Timeline'>
<TimelineWrapper>
<SectionContainer>
<TimelineWrapper id='Timeline'>
<TimelineHead>{timelinecontent.title}</TimelineHead>
{timelinecontent.nodes.length === 0
? ''
Expand Down
20 changes: 9 additions & 11 deletions src/components/marginals/Footer/TermsNCredits.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import React from 'react';
import { LastLine, Terms, ConditionItems, Credits } from './styles';

const TermsNCredits = ({ copyw }) => {
return (
<LastLine>
<Terms>
<ConditionItems href='#'>Privacy & Cookies</ConditionItems>
<ConditionItems href='#'>Terms and Conditions</ConditionItems>
</Terms>
<Credits>{copyw.content}</Credits>
</LastLine>
);
};
const TermsNCredits = ({ copyw }) => (
<LastLine>
<Terms>
<ConditionItems href='#'>Privacy & Cookies</ConditionItems>
<ConditionItems href='#'>Terms and Conditions</ConditionItems>
</Terms>
<Credits>{copyw.content}</Credits>
</LastLine>
);

export default TermsNCredits;
12 changes: 8 additions & 4 deletions src/components/marginals/Footer/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const CradleContainer = styled.div`
mx-4
pt-[100px]
text-[16px]
m-auto
`}
@media (max-width: 800px) {
${tw`
Expand Down Expand Up @@ -369,11 +370,14 @@ export const LastLine = styled.div`
w-[60vw]
flex
flex-row
justify-around
justify-center
gap-4
items-center
`}
@media (max-width: 800px) {
${tw`
pt-3
gap-7
w-full
h-[250px]
flex-col-reverse
Expand All @@ -399,7 +403,9 @@ export const Terms = styled.div`
${tw`
flex-col
items-baseline
gap-2
`}
}
`;

export const ConditionItems = styled.a`
Expand All @@ -412,6 +418,7 @@ export const ConditionItems = styled.a`
px-1
py-4
`}
}
`;

export const Credits = styled.div`
Expand All @@ -423,9 +430,6 @@ export const Credits = styled.div`
${tw`
m-[0px]
px-2
py-6
`}
`;
`}
}
`;
Loading

0 comments on commit 0e7752d

Please sign in to comment.