Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanya-rahul-jain committed Oct 17, 2024
2 parents 726c5c6 + f5a768a commit b6ee48c
Show file tree
Hide file tree
Showing 10 changed files with 625 additions and 15 deletions.
13 changes: 12 additions & 1 deletion app/events/[categoryname]/categories.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
scale: 0.5;
}

@media screen and (max-width: 600px) {
top: 1rem;
left: 1rem;
scale: 0.3;
}

svg {
mix-blend-mode: difference;
}
Expand Down Expand Up @@ -150,7 +156,6 @@
margin-top: 73px;
font-size: 55px;
line-height: 70px;

text-align: center;
}

Expand All @@ -159,6 +164,10 @@
line-height: 50px;
margin-top: 50px;
}

@media screen and (max-height: 700px) and (max-width: 600px) {
margin-top: 2rem;
}
}
.eventSubTitle {
margin: 20px 0;
Expand Down Expand Up @@ -383,6 +392,8 @@
}

.longDescription {
font-size: 1.75rem;
line-height: 40px;
@media screen and (max-height: 900px) {
font-size: 1.25rem;
line-height: 1.5rem;
Expand Down
2 changes: 1 addition & 1 deletion app/events/[categoryname]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default function Page({ params }: { params: { categoryname: string } }) {
</div>
<div
className={`${styles.eventDescription} ${
eventsList[eventID]?.about.length > 500
eventsList[eventID]?.about.length > 350
? `${styles.longDescription}`
: ""
}`}
Expand Down
5 changes: 5 additions & 0 deletions app/media-partners/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Preloader from "@/components/Preloader/Preloader";

export default function PreloaderPage() {
return <Preloader />;
}
236 changes: 236 additions & 0 deletions app/media-partners/media-partners.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
.wrapper {
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;

.mainContainer {
height: 100vh;
width: 100%;
.scrollbar {
@media screen and (width <= 1150px) {
display: none;
}
margin: 5% 0;
height: 80vh;
width: 10vh;
position: absolute;
right: 0px;
top: 0vh;
transform: translateX(-2rem);
display: flex;
justify-content: center;

.scrollbarTrack {
width: 8px;
height: 100%;
border-radius: 8px;
background-image: linear-gradient(
90deg,
#f9e6a2 -10.51%,
#d29e5d 48.78%,
#f9e6a2 111.99%
);
}

.scrollbarThumb {
touch-action: none;
position: absolute;
transform: translateY(-50%);
cursor: pointer;
}
}

.backButton {
position: absolute;
top: 5px;
left: 10px;
z-index: 100;
}

.title {
text-decoration: none;
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
height: 70px;
font-family: Rye;
font-size: 52px;
font-weight: 400;
line-height: 43px;
letter-spacing: 0.05em;
text-align: left;
background: linear-gradient(
0deg,
#fdfbb7 -76.04%,
#efd48d -13.59%,
#d19b5b 71.28%,
#f9e6a2 145.83%
);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: flex;
justify-content: center;
align-items: center;
}
.sponsorsContainer {
z-index: 4;
position: absolute;
top: 90px;
left: 50%;
transform: translateX(-50%);
// background-color: #fff;
width: 80vw;
height: calc(100vh - 100px);
position: relative;
overflow: scroll;
display: grid;
gap: 60px;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
&::-webkit-scrollbar {
display: none;
}
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
.sponsorItemContainer {
text-decoration: none;
.sponsorItem {
margin-bottom: 50px;
height: 300px;
// background-color: rebeccapurple;
display: flex;
gap: 5px;
flex-direction: column;
justify-content: center;
align-items: center;
text-decoration: none;
cursor: default;

.sponsorImg {
display: block;
max-height: 200px;
max-width: 100%;
padding-bottom: 5px;
}
.sponsorName {
text-decoration: none;
color: #ffe3ad;
text-shadow: 0px 0px 8px rgba(229, 195, 132, 0.48);
font-family: "Source Serif 4";
font-size: 40px;
font-style: normal;
font-weight: 600;
letter-spacing: 0.05em;
text-align: center;
}
.sponsorDescription {
font-weight: 500;
letter-spacing: 0.05em;
text-align: center;
color: white;
text-decoration: none;
font-size: 17px;
}
}
&:nth-child(1) {
grid-column-start: 1;
grid-column-end: 7;
}
&:nth-child(2) {
grid-column-start: 1;
grid-column-end: 4;

@media (width <= 800px) {
grid-column: span 6;
}
}
&:nth-child(3) {
grid-column-start: 4;
grid-column-end: 7;

@media (width <= 800px) {
grid-column: span 6;
}
}
grid-column: span 2;

@media (width <= 1300px) {
grid-column: span 3;
}

@media (width <= 800px) {
grid-column: span 6;
}
}
}
}

&::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("/backgroundNoiceImg.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
opacity: 0.2;
z-index: -1;
}

// .backButton {
// position: absolute;
// top: 40px;
// left: 20px;

// @media screen and (width <= 500px) {
// left: 0;
// top: 0;
// }
// }
}

@media (max-width: 600px) {
.wrapper {
.mainContainer {
.backButton {
position: absolute;
top: -2px;
left: -14px;
z-index: 100;
}

.title {
font-size: 40px;
}
.sponsorsContainer {
.sponsorItemContainer {
.sponsorItem {
margin-bottom: 10px;
height: fit-content;

.sponsorImg {
display: block;
max-height: 150px;
max-width: 100%;
padding-bottom: 5px;
}
.sponsorName {
font-size: 30px;
}
.sponsorDescription {
font-size: 15px;
}
}
}
}
}
}
}

Loading

0 comments on commit b6ee48c

Please sign in to comment.