-
Notifications
You must be signed in to change notification settings - Fork 8
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 #58 from gamandeepsingh/test
update past edition component
- Loading branch information
Showing
27 changed files
with
811 additions
and
523 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,65 +1,102 @@ | ||
import './style.css'; | ||
import "./style.css"; | ||
import { BsHeadsetVr } from "react-icons/bs"; | ||
import { FaGlobeAmericas } from "react-icons/fa"; | ||
import 'aos/dist/aos.css' | ||
import Aos from "aos"; | ||
import "aos/dist/aos.css"; | ||
|
||
// images | ||
import algos from './img/algocs.png'; | ||
import gdsc from './img/gdsc.png'; | ||
import iosc from './img/iosc.png'; | ||
|
||
import {MIDDLE_SECTION} from '../../Module/General'; | ||
import algos from "./img/algocs.png"; | ||
import gdsc from "./img/gdsc.png"; | ||
import iosc from "./img/iosc.png"; | ||
|
||
import { MIDDLE_SECTION } from "../../Module/General"; | ||
import { useEffect } from "react"; | ||
|
||
function LogoSectionAbout() { | ||
useEffect(() => { | ||
Aos.init({ duration: 400 }); | ||
}, []); | ||
return ( | ||
<div className="LogoSectionAbout" > | ||
<div className="LogoSectionAbout" data-aos="fade-right"> | ||
{/* <BsHeadsetVr fontSize={200} className='arHeadset'/> | ||
<FaGlobeAmericas fontSize={200} className='globe'/> */} | ||
<h1>{MIDDLE_SECTION.TITLE}</h1> | ||
<div> | ||
<p className='long desc'> | ||
|
||
The largest code fest of Delhi-NCR is back! ⚡<br /> | ||
Join this 24-Hour Hackathon to hustle and shine through 5 amazing tracks, Embark on an Odyssey to learn new technologies, seek guidance from experienced mentors and engrave your name on the boards of our esteemed Judges.<br /> | ||
Witness prodigious Speakers of the Nation live! ✨<br /> | ||
Not just that, win huge prizes and hampers by brainstorming and creating the best hack!<br /> | ||
Be ready to sail through an amazing night of fun, code and much more on 28th & 29th April! 💫 | ||
|
||
</p> | ||
<p className="long-desc"> | ||
The largest code fest of Delhi-NCR is back! ⚡<br /> | ||
Join this 24-Hour Hackathon to hustle and shine through 5 amazing | ||
tracks, Embark on an Odyssey to learn new technologies, seek guidance | ||
from experienced mentors and engrave your name on the boards of our | ||
esteemed Judges. | ||
<br /> | ||
Witness prodigious Speakers of the Nation live! ✨<br /> | ||
Not just that, win huge prizes and hampers by brainstorming and | ||
creating the best hack! | ||
<br /> | ||
Be ready to sail through an amazing night of fun, code and much more | ||
on 28th & 29th April! 💫 | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
function Logo() { | ||
useEffect(() => { | ||
Aos.init({ duration: 400 }); | ||
}, []); | ||
return ( | ||
<img className="Logo-about" src={MIDDLE_SECTION.LOGO} alt="Innohacks" /> | ||
<img | ||
data-aos="fade-left" | ||
className="Logo-about" | ||
src={MIDDLE_SECTION.LOGO} | ||
alt="Innohacks" | ||
/> | ||
); | ||
} | ||
|
||
function CommunityPartner() { | ||
|
||
return( | ||
<div className="community-partner" > | ||
<h1 className="title_community" >Community Partners</h1> | ||
<div className="community_logo_container" > | ||
<div className='logo-community' style={{color: 'white', textAlign: 'center', margin: "0 5% 2% 5%"}}> | ||
<img src={iosc} className="iosc_logo" width="100%" alt="" /> | ||
<p >IOSC</p> | ||
</div> | ||
<div className='logo-community' style={{color: 'white', textAlign: 'center', margin: '0 5% 2% 5%'}}> | ||
<img src={gdsc} className="iosc_logo" width="100%" alt=""/> | ||
<p >GDSC-ABESEC</p> | ||
useEffect(() => { | ||
Aos.init({ duration: 400 }); | ||
}, []); | ||
return ( | ||
<div className="community-partner"> | ||
<h1 | ||
className="title_community" | ||
data-aos="zoom-in" | ||
data-aos-anchor-placement="top-bottom" | ||
data-aos-duaration="800" | ||
> | ||
Community Partners | ||
</h1> | ||
<div className="community_logo_container"> | ||
<div | ||
className="logo-community" | ||
data-aos="fade-up" | ||
style={{ color: "white", textAlign: "center", margin: "0 5% 2% 5%" }} | ||
> | ||
<img src={iosc} className="iosc_logo" width="100%" alt="" /> | ||
<p>IOSC</p> | ||
</div> | ||
<div | ||
className="logo-community" | ||
data-aos="fade-up" | ||
style={{ color: "white", textAlign: "center", margin: "0 5% 2% 5%" }} | ||
> | ||
<img src={gdsc} className="iosc_logo" width="100%" alt="" /> | ||
<p>GDSC-ABESEC</p> | ||
</div> | ||
<div | ||
className="logo-community" | ||
data-aos="fade-up" | ||
style={{ color: "white", textAlign: "center", margin: "0 5% 2% 5%" }} | ||
> | ||
<img src={algos} className="iosc_logo" width="100%" alt="" /> | ||
<p>ALGOCS</p> | ||
</div> | ||
</div> | ||
<div className='logo-community' style={{color: 'white', textAlign: 'center', margin: '0 5% 2% 5%'}}> | ||
<img src={algos} className="iosc_logo" width="100%" alt=""/> | ||
<p >ALGOCS</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
); | ||
} | ||
|
||
export {Logo, LogoSectionAbout, CommunityPartner}; | ||
export { Logo, LogoSectionAbout, CommunityPartner }; |
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 |
---|---|---|
|
@@ -32,4 +32,7 @@ justify-content:space-around; | |
align-items: center; | ||
justify-content: center; | ||
} | ||
.col1,.col2{ | ||
width: 100%; | ||
} | ||
} |
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,56 @@ | ||
import React, { useEffect, useState } from "react"; | ||
import Aos from "aos" | ||
import "aos/dist/aos.css" | ||
import "./style.scss"; | ||
import one from "./assets/2.jpg"; | ||
import two from "./assets/1.jpg"; | ||
import three from "./assets/3.jpg"; | ||
import four from "./assets/4.jpg"; | ||
import five from "./assets/5.jpg"; | ||
import six from "./assets/6.jpeg"; | ||
|
||
function PastEdition() { | ||
const [mainImage, setMainImage] = useState(one); | ||
|
||
const thumbnails = [one, two, three, four, five, six]; | ||
|
||
const handleThumbnailClick = (imageSrc) => { | ||
setMainImage(imageSrc); | ||
}; | ||
|
||
useEffect(() => { | ||
Aos.init({duration:400}) | ||
const intervalId = setInterval(() => { | ||
setMainImage(thumbnails[Math.floor(Math.random() * 6)]); | ||
}, 5000); | ||
|
||
return () => clearInterval(intervalId); | ||
}, []); | ||
|
||
return ( | ||
<div className="past-edition-container"> | ||
<h1 | ||
data-aos="zoom-in" | ||
data-aos-anchor-placement="top-bottom" | ||
data-aos-duaration="800" | ||
className="past-heading" | ||
style={{ fontWeight: 900, marginTop: "100px", marginBottom: "20px" }} | ||
> | ||
Past Edition | ||
</h1> | ||
<img src={mainImage} id="main" /> | ||
<div id="thumbnails"> | ||
{thumbnails.map((thumbnail, index) => ( | ||
<img | ||
key={index} | ||
src={thumbnail} | ||
className={`${mainImage === thumbnail ? "scaling" : ""}`} | ||
onClick={() => handleThumbnailClick(thumbnail)} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default PastEdition; |
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,52 @@ | ||
%shared { | ||
box-shadow: 2px 2px 10px 5px #b8b8b8; | ||
border-radius: 10px; | ||
} | ||
.past-edition{ | ||
font-size: 5rem; | ||
font-weight: 900; | ||
font-family: "repo-extrabold"; | ||
} | ||
.scaling { | ||
scale: 1.1; | ||
} | ||
#thumbnails { | ||
text-align: center; | ||
transition: all 0.5s ease; | ||
img { | ||
width: 100px; | ||
height: 100px; | ||
margin: 10px; | ||
cursor: pointer; | ||
@media (max-width:779.99px){ | ||
.past_edition{ | ||
margin-top: 80px; | ||
} | ||
} | ||
@media only screen and (max-width: 480px) { | ||
width: 50px; | ||
height: 50px; | ||
transition: all 0.5s ease; | ||
} | ||
@extend %shared; | ||
&:hover { | ||
transform: scale(1.05); | ||
} | ||
} | ||
} | ||
#main { | ||
transition: all 0.5s ease; | ||
width: 50%; | ||
height: 400px; | ||
object-fit: cover; | ||
display: block; | ||
margin: 20px auto; | ||
@extend %shared; | ||
@media only screen and (max-width: 480px) { | ||
width: 95%; | ||
} | ||
} | ||
.hidden { | ||
transition: all 0.5s ease; | ||
opacity: 0; | ||
} |
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,31 +1,41 @@ | ||
import './schedule.css' | ||
|
||
|
||
import "./schedule.css"; | ||
import Aos from "aos" | ||
import "aos/dist/aos.css" | ||
import { useEffect } from "react"; | ||
const Schedule = () => { | ||
return( | ||
<> | ||
|
||
<div> | ||
<h1 | ||
data-aos="zoom-in" | ||
data-aos-duration="800" | ||
id="prizes" | ||
className="prize_heading" | ||
style={{ fontFamily: "repo-bold", marginBottom: "10rem" }} | ||
> | ||
Schedule | ||
</h1> | ||
</div> | ||
|
||
<div class="image-container"> | ||
|
||
|
||
<img src="https://s3.ap-south-1.amazonaws.com/innohacks3.0/mobileviewupdated.png" alt="" className="mobile-image"/> | ||
<img src="https://s3.ap-south-1.amazonaws.com/innohacks3.0/Copy+of+Copy+of+Innohacks+3.0+brochure+(2)+(1).png" alt="" className="laptop-image"/> | ||
</div> | ||
</> | ||
) | ||
useEffect(()=>{ | ||
Aos.init({duration:400}) | ||
},[]) | ||
return ( | ||
<> | ||
<div> | ||
<h1 | ||
data-aos="zoom-in" | ||
data-aos-duration="800" | ||
id="prizes" | ||
className="prize_heading" | ||
style={{ fontFamily: "repo-bold", marginBottom: "10rem" }} | ||
> | ||
Schedule | ||
</h1> | ||
</div> | ||
|
||
<div className="image-container"> | ||
<img | ||
src="https://s3.ap-south-1.amazonaws.com/innohacks3.0/mobileviewupdated.png" | ||
alt="" | ||
className="mobile-image" | ||
data-aos="fade-right" | ||
/> | ||
<img | ||
src="https://s3.ap-south-1.amazonaws.com/innohacks3.0/Copy+of+Copy+of+Innohacks+3.0+brochure+(2)+(1).png" | ||
alt="" | ||
className="laptop-image" | ||
data-aos="fade-right" | ||
/> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Schedule; | ||
export default Schedule; |
Oops, something went wrong.