Skip to content

Commit

Permalink
Refactored styles for navbar responsiveness and cleaned up unused med…
Browse files Browse the repository at this point in the history
…ia queries
  • Loading branch information
Rakesh9100 committed Jan 10, 2025
1 parent 4bf9cb7 commit 3bbe5b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 90 deletions.
4 changes: 2 additions & 2 deletions netlify/functions/contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports.handler = async function(event, context) {
const repoName = 'Beautiify';

const url = `https://api.github.com/repos/${owner}/${repoName}/contributors?page=${page}&per_page=${perPage}`;

try {
const response = await fetch(url, {
method: 'GET',
Expand All @@ -26,7 +26,7 @@ exports.handler = async function(event, context) {
}

const contributorsData = await response.json();

return {
statusCode: 200,
body: JSON.stringify(contributorsData)
Expand Down
92 changes: 4 additions & 88 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,12 @@ nav {

nav ul {
display: flex;
gap: 3.5rem;
gap: 1rem;
margin-right: 61px;
}

nav li {
font-size: 2.1rem;
font-size: 1.3vw;
font-weight: bolder;
border-bottom: 0.4rem transparent solid;
transition: 0.3s ease-in-out;
Expand Down Expand Up @@ -1020,91 +1020,7 @@ footer {

/* Media queries for responsiveness */

@media (max-width: 1200px) {
nav ul {
gap: 2rem;
}
}

@media (max-width: 1125px) {
.navbar .nav-link {
font-size: 19px;
}
}

@media (min-width: 1030px) and (max-width: 1070px) {
.navbar .nav-link {
font-size: 18px;
}
}

@media (min-width: 970px) and (max-width: 1030px) {
.navbar .nav-link {
font-size: 17px;
}

nav ul {
gap: 1.5rem;
}
}

@media (min-width: 925px) and (max-width: 970px) {
.navbar .nav-link {
font-size: 16px;
}

nav ul {
gap: 1.2rem;
}
}

@media (min-width: 855px) and (max-width: 925px) {
nav {
padding: 0;
}

.navbar .nav-link {
font-size: 15px;
}

nav ul {
gap: 1rem;
}
}

@media (min-width: 790px) and (max-width: 855px) {
nav {
padding: 0;
}

.navbar .nav-link {
font-size: 14px;
}

nav ul {
gap: 0.1rem;
}

button#dark-mode-toggle {
height: 32px;
width: 32px;
margin-top: 8px;
}
}

@media (min-width: 769px) and (max-width: 790px) {
nav {
padding: 0;
}

.navbar .nav-link {
font-size: 13.5px;
}

nav ul {
gap: 0;
}

@media (min-width: 769px) and (max-width: 855px) {
button#dark-mode-toggle {
height: 32px;
width: 32px;
Expand Down Expand Up @@ -1161,7 +1077,7 @@ footer {
}

.nav-item {
margin: 1.5rem 0;
margin: 0.5rem 0 0;
font-size: 21px;
}

Expand Down

0 comments on commit 3bbe5b7

Please sign in to comment.