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

Home page changes #18

Merged
merged 2 commits into from
Nov 7, 2023
Merged
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
1 change: 1 addition & 0 deletions public/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
.nice-select:after {
border-bottom: 2px solid #ccc;
border-right: 2px solid #ccc;

content: '';
display: block;
height: 10px;
Expand Down
Binary file added public/img/pyweek-banner.jpg
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 public/img/pyweek-poster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions public/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

div.video{
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

}

div.video img{
margin-top: 40px;
height: 30em;
width: 100%;

@media (max-width: 500px) {
margin-top: 80px;

}

}
div.video a {
text-decoration: none;
color: #fff;
background-color: #000;
padding: 10px 20px;
border-radius: 5px;
font-size: 1.2rem;
cursor: pointer;
text-align: center;
margin: 10px auto;
}
24 changes: 19 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<link rel="stylesheet" type="text/css" href="css/blocks.css">
<link rel="stylesheet" type="text/css" href="css/widgets.css">
<link rel="stylesheet" href="css/navbar.css">
<link rel="stylesheet" href="index.css">

<!--External fonts-->

Expand Down Expand Up @@ -130,11 +131,24 @@
})
</script>
<div class="video">
<video id="video" autoplay loop muted>
<source src="./img/WhatsApp Video 2022-10-26 at 8.50.36 PM.mp4" style="width: 500px;" type="video/mp4" />
</video>
<!-- <video id="video" autoplay loop muted>
<source src="./img/Cadism teaser.mp4" style="width: 500px;" type="video/mp4" />
</video> -->
<img id="banner" class="bannerImg" src="./img/pyweek-banner.jpg" alt="">
<a href="https://forms.gle/4rBVfsabBsvB6zWu7" target="_blank">Register Here for PyWeek</a>
</div>

<script>
let banner = document.getElementById("banner");
window.addEventListener('resize', ()=>{
if(window.innerWidth < 500){
banner.src = "./img/pyweek-poster.png";
}else{
banner.src = "./img/pyweek-banner.jpg";
}
})
</script>


<!-- <video class="vid" id="vid" width="100%" height="100%" poster="./img/thumbnail.png" autoplay muted loop>
<source src="./img/WhatsApp Video 2022-10-26 at 8.50.36 PM.mp4" type="video/mp4">
Expand Down Expand Up @@ -231,8 +245,8 @@ <h2 class="heading-title">Our <span class="c-primary">Services</span></h2>
<div class="info-box-content">
<a href="fsd.html" class="h5 info-box-title">Full Stack Development</a>
<p class="info-box-text">We are called as the best web developers in our college for a reason. We have a
team of highly skilled developers who excell in providing clean code and user friendly design.This group
helps you you teach this course from scratch to th the advance level.
team of highly skilled developers who excel in providing clean code and user friendly design. This group
helps you you teach this course from scratch to the advance level.
</p>
</div>

Expand Down