Skip to content

Commit

Permalink
Merge pull request #744 from CyB3RTYp3/old-dev
Browse files Browse the repository at this point in the history
fix(Learningfest):new card created and css alignment
  • Loading branch information
AswinAsok authored Sep 4, 2023
2 parents 2c5d977 + 0649a46 commit 124c31b
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 41 deletions.
Binary file added src/Pages/KKEMLearningFest/assets/Luigi.webp
Binary file not shown.
Binary file added src/Pages/KKEMLearningFest/assets/Princess.webp
Binary file not shown.
43 changes: 38 additions & 5 deletions src/Pages/KKEMLearningFest/components/Cards/Cards.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react'
import mario from '../../assets/mario.webp'
import styles from './Cards.module.css'
import princess from '../../assets/Princess.webp'
import luigi from '../../assets/Luigi.webp'

import { BsChevronCompactLeft,BsChevronCompactRight } from "react-icons/bs"

export default function Cards() {
return (
<div className={styles.cardsConatiner}>
<button><BsChevronCompactLeft size={40}/></button>

<div className={styles.carosel}>
<div className={styles.cardsConatiner}>
<div className={styles.card}>
<img src={mario} alt="" />
<div className={styles.cardConatiner}>
Expand All @@ -26,8 +26,41 @@ export default function Cards() {
</div>
</div>
</div>
</div>

<div className={styles.cardsConatiner}>
<div className={styles.card}>
<img src={princess} alt="" />
<div className={styles.cardConatiner}>
<div className={styles.cardContent}>
<h1>Compete and Experience </h1>
<h3>Show the world what you are upto.</h3>
<p>Compete with talent across the state to gain experience.: It's a journey that takes you through college-level competitions, district-level showdowns, and ultimately a state-level battle of wits.</p>
<div className={styles.cardblob}>
<div><p>Challenges</p></div>
<div><p>Hackathons</p></div>
</div>
</div>
</div>
</div>
</div>

<div className={styles.cardsConatiner}>
<div className={styles.card}>
<img src={luigi} alt="" />
<div className={styles.cardConatiner}>
<div className={styles.cardContent}>
<h1>Opportunities & Beyond</h1>
<h3>Monetize your skills.</h3>
<p>Get that Job. Become a Freelancer or start a business. At the end of this incredible journey, we bring you a job fair, connecting you with top-notch companies and opportunities.</p>
<div className={styles.cardblob}>
<div><p>Industry connect</p></div>
</div>
</div>
</div>
</div>
</div>

<button><BsChevronCompactRight size={40}/></button>
</div>
)
}
94 changes: 59 additions & 35 deletions src/Pages/KKEMLearningFest/components/Cards/Cards.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,45 @@
src: url("../../font/pixelmix.ttf") format("truetype");
}


.carosel{
width: 100%;
display: grid;
place-content: center;
}
.cardsConatiner{
width: fit-content;
margin-bottom: 3rem;
padding:1rem;
margin: 3rem 0;
border-radius: 25.562px;
background: url("../../assets/bg.webp") no-repeat center center/cover;
background-color: #1E41AE;
box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.50);
display: flex;
justify-content: space-between;
color: white;
align-items: center;
display: grid;
place-items: center;
}
.cardsConatiner:nth-child(2){
background-color:#EE95BD;
}
.cardsConatiner:nth-child(3){
background-color:#08A836;
}


.card{
width: fit-content;
height: 553px;
display: flex;

}
.card img{
z-index: 10;
margin: 2rem 0;
animation: fade-in 1.2s ease;
}


.cardsConatiner:nth-child(2) .card img,
.cardsConatiner:nth-child(3) .card img{
width: 15rem;
}

@keyframes fade-in {
0%{
Expand All @@ -48,10 +60,10 @@
}

.cardConatiner{
display: grid;
place-content: center;
font-family: inherit;
position: relative;
right: 80px;
top: 50px;
margin: 3rem;
width: 710px;
height: 461px;
padding: 55px 73px;
Expand All @@ -63,7 +75,6 @@
font-style: normal;
font-weight: 400;
line-height: normal;
margin: 2rem 0 0 2rem;
animation: fade-up 2s ease;
}

Expand Down Expand Up @@ -141,51 +152,52 @@
@media(width<820px){

.cardsConatiner{
width: fit-content;
justify-content: space-around;
margin: 1rem;
margin: 1.5rem;
justify-content: center;
padding: 0;
}
.card img{
width:10rem;
height: 20rem;
width:15rem;
height: 25rem;
}
.cardConatiner{
width: fit-content;
padding: 30px 20px;
}
.cardContent{
margin: 1rem 0 0 4rem;
}
.cardContent h1{
font-size: 35px;
}


}
}

@media(width<620px){
.cardsConatiner{
width: fit-content;
height: max-content;
padding-bottom: 1rem;
margin: 4rem;
}
.card{
flex-direction: column;
justify-content: center;
align-items: center;
padding: 5rem 0;
}
.card img{
width:10rem;
height: 20rem;
margin-top: 3rem;
position: relative;
top: 50px;
width:8rem;
height: 15rem;
margin: 0;
z-index: 2;
}
.cardsConatiner:nth-child(2) .card img{
width: 10rem;
height: 15rem;
}
.cardsConatiner:nth-child(3) .card img{
height:16rem;
width: 8rem;
}
.cardConatiner{
padding: 20px 30px ;
right: 0;
top: -120px;
z-index: 10;
margin:0 3rem 6rem 3rem;
}

.cardContent{
Expand All @@ -204,16 +216,28 @@
@media(width<415px){
.cardsConatiner{
padding-bottom: 0;
height: max-content;
}
.card{
padding: 3rem 0;
}
.card img{
width:8rem;
width:5rem;
height: 15rem;
margin-top: 1rem;
}
.cardsConatiner:nth-child(1) .card img{
bottom: 50px;
}

.cardsConatiner:nth-child(2) .card img{
height: 15rem;
margin-top: 2rem;
z-index: 2;
width: 8rem;
}
.cardsConatiner:nth-child(3) .card img{
height:15rem;
width: 5rem;
}
.cardConatiner{
padding: 15px 10px ;
right: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/KKEMLearningFest/components/Hero/Hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

.kkemHeroLogo {
height: 2rem;
height: 3rem;
}

.kkemHeroContent {
Expand Down

0 comments on commit 124c31b

Please sign in to comment.