Skip to content

Commit

Permalink
Improved Responsiveness of home page (Spandan-Bhattacharya#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Surajit0573 authored Feb 25, 2024
1 parent 2a1c18d commit 094d5e3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 18 deletions.
42 changes: 30 additions & 12 deletions css_files/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,23 @@ html {
}

}

.nav-div{
margin-left: 10px;
display: flex;
flex-direction: column;
}
/* Change the color of links on hover */
.topnav a:hover {
.topnav .nav-div:hover {
background-color: #f99548;
border-radius: 10px;
color: #0a1629;
text-decoration: none;
}

.topnav a:hover {
text-decoration: none;
}

/* Add a color to the active/current link */
.topnav a.active {
/* background-color: #2b61a8; */
Expand Down Expand Up @@ -460,16 +468,11 @@ h3 {
border: rgb(39, 2, 113);
box-shadow: inset 6px 6px 6px #311f95, inset -6px -6px 6px rgb(88, 29, 206);
border-radius: 50px;
margin: 0px 100px 100px 100px;
margin: 20px;
text-align: center;
padding: 40px 40px 50px 40px;
padding: 20px;
color: white;
font-size: 29px;

}

.puzzle-title {
padding: 30px 300px 50px 300px;
font-size: 2rem;

}

Expand All @@ -478,11 +481,17 @@ h3 {

}


@media (max-width:500px){
.email a {
font-size: 4vw;
}
}
.email {

height: 100px;
align-items: center;
display: flex;
flex-direction: column;
}

.email button {
Expand Down Expand Up @@ -526,8 +535,17 @@ h3 {

/* css for suggestion section ends */

#logo-img{
height: 450px;
width: 450px;
}


@media (max-width:450px){
#logo-img{
height: 100vw;
width: 100vw;
}
}
/* css for the footer begins*/
.footer {
padding: 20px;
Expand Down
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ <h1>Solve it!</h1>
<div class="search-space"></div>

<!-- Top Nav-Bar Texts -->
<div>
<div class="nav-div">
<a class="active" href="#home"><i class="fa-solid fa-house"></i> Home</a>
</div>
<div>
<div class="nav-div">
<a href="html_files/newContact.html"><i class="fa-solid fa-square-phone"></i> Contact</a>
</div>
<div>
<div class="nav-div">
<a href="html_files/about.html"><i class="fa-solid fa-clipboard-user"></i> About</a>
</div>
<div>
<div class="nav-div">
<a href="./html_files/faq.html"><i class="fa-solid fa-comments"></i> FAQ</a>
</div>
<div>
<div class="nav-div">
<a href="html_files/contributors.html"><i class="fa-solid fa-hand-holding-heart"></i> Contributors</a>
</div>

Expand Down Expand Up @@ -199,7 +199,7 @@ <h1>Solve it!</h1>

<section class="hero-section" id="hero">
<div class="herocontainer">
<img src="assets/bodylogo.png" alt="img" height="450px" width="450px" />
<img src="assets/bodylogo.png" alt="img" id="logo-img" />
<h3>Find Solutions to all those mind-numbing puzzles right here!</h3>
<p class="paragraph">
Solve it! is a website that contains solvers for common games like
Expand Down

0 comments on commit 094d5e3

Please sign in to comment.