Skip to content

Commit

Permalink
Update Header.css
Browse files Browse the repository at this point in the history
%%
  • Loading branch information
LarsFlem authored Oct 23, 2024
1 parent 82df83e commit ea8ffc2
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions src/components/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ header {
justify-content: space-between;
align-items: center;
background: linear-gradient(135deg, #dad9d9, #bfbebe);
padding: 15px 50px;
padding: 0 2.5%; /* Adjust padding to be proportional */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
z-index: 1000;
height: 80px; /* Fixed height for the header */
height: 5vh; /* Header takes up 5% of the viewport height */
overflow: hidden;
}

Expand All @@ -23,13 +23,13 @@ header {

/* Logo image styling */
.logo-image {
height: 90px; /* Adjust height of the logo image */
width: auto;
height: 80%; /* Adjust height to occupy 80% of header's height */
width: auto; /* Maintain aspect ratio */
}

/* Logo text styling */
.logo-text {
font-size: 32px; /* Adjust this value to scale the text */
font-size: 3vh; /* Use vh to scale the text size with the header */
font-family: "Space Grotesk", sans-serif; /* Ensure font family is consistent */
font-weight: bold;
color: #333;
Expand All @@ -46,7 +46,7 @@ nav ul {
nav a {
font-family: "Space Grotesk", sans-serif;
font-weight: 400;
font-size: 18px;
font-size: 2vh; /* Scale link font size */
text-decoration: none;
color: #333;
position: relative;
Expand Down Expand Up @@ -79,16 +79,12 @@ nav a:hover::after {
header {
flex-direction: column;
align-items: flex-start;
padding: 5px 15px; /* Further reduce padding */
padding: 5px 15px; /* Adjust padding for smaller screens */
height: auto; /* Let the height adjust naturally on smaller screens */
}

.logo-image {
height: 60px; /* Reduce height for smaller screens */
}

.logo-text {
font-size: 24px; /* Reduce this further for smaller devices */
font-size: 3.5vh; /* Adjust size for smaller screens */
margin-bottom: 10px;
}

Expand All @@ -98,7 +94,6 @@ nav a:hover::after {
}

nav a {
font-size: 16px; /* Adjust link font size for better readability */
font-size: 2.5vh; /* Scale link font size for smaller devices */
}
}

0 comments on commit ea8ffc2

Please sign in to comment.