Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added 'Our Sponsors' section #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions apps/web-punjab/components/ourSponsors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import "../style.css";

document.querySelector('#our-sponsors').innerHTML =`
<div class="sponsors-container">
<h2 class="third-color">Our Sponsors</h2>
<div class="sponsor-list">
<img src="/images/sponsor1.png" alt="Sponsor 1">
<img src="/images/sponsor2.png" alt="Sponsor 2">
<img src="/images/sponsor3.png" alt="Sponsor 3">
<img src="/images/sponsor4.png" alt="Sponsor 4">
<img src="/images/sponsor1.png" alt="Sponsor 1">
<img src="/images/sponsor2.png" alt="Sponsor 2">
</div>
</div>
` ;
2 changes: 2 additions & 0 deletions apps/web-punjab/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<div id="nav"></div>
<div id="app"></div>
<div id = "timer"></div>
<div id="our-sponsors"></div>
<div id="speakers"></div>
<!-- The inline styling below, margin-top: 10rem, is supposed to be removed, it's added as of now to make the section visible. When the sections above it will be added in the website, this styling can be removed -->
<div
Expand All @@ -32,6 +33,7 @@
<script type="module" src="/main.js"></script>
<script type="module" src="/components/navbar.js"></script>
<script type="module" src="/components/timer.js"></script>
<script type="module" src="/components/ourSponsors.js"></script>
<script type="module" src="/components/speakers.js"></script>
<script type="module" src="/components/whyJoinWowSection.js"></script>
<script type="module" src="/components/text1500Section.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions apps/web-punjab/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/web-punjab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"preview": "vite preview"
},
"devDependencies": {
"vite": "^5.1.4"
"vite": "^5.1.5"
}
}
Binary file added apps/web-punjab/public/images/sponsor1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web-punjab/public/images/sponsor2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web-punjab/public/images/sponsor3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web-punjab/public/images/sponsor4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions apps/web-punjab/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -898,4 +898,65 @@ img {
font-size: var(--small-font-size);
}
}


/*=============== SPONSORS ===============*/

.sponsors-container h2{
text-align: center;
color: var(--third-color);
font-size: var(--biggest-font-size);
font-weight: bold;
margin-bottom: 10px;
}

.sponsors-container{
margin: 80px;
}


@keyframes scroll {
0% {
transform: translateX(100%); /* Start from offscreen right */
}
100% {
transform: translateX(-200%); /* End at normal position */
}
}

.sponsor-list {
display: flex;
animation: scroll 15s linear infinite;
scroll-snap-type: x mandatory;
}

.sponsor-list img {
width: 200px;
height: 150px;
object-fit: contain;
margin-right: 30px;
}

/* Adjust slide width for smaller screens */
@media only screen and (max-width: 768px) {
.sponsor-list {
animation: scroll-mobile 8s linear infinite;
}

@keyframes scroll-mobile {
0% {
transform: translateX(100%); /* Start from offscreen right */
}
100% {
transform: translateX(-700%); /* Change here if it snaps */
}
}

.sponsor-list img {
flex: 0 0 auto;
scroll-snap-align: center;
margin-right: 10px;
}

}