Skip to content

Commit

Permalink
new csse.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi5ingh authored Aug 15, 2024
1 parent 4544b61 commit 07f21f8
Showing 1 changed file with 84 additions and 3 deletions.
87 changes: 84 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* General Styles */
body {
font-family: Arial, sans-serif;
font-family: 'Roboto', Arial, sans-serif; /* Updated to use Roboto font */
line-height: 1.6;
margin: 0;
padding: 0;
Expand All @@ -8,10 +9,25 @@ body {
display: flex;
flex-direction: column;
background-image: url('bg.webp');
background-attachment: fixed;
background-attachment: fixed;
background-size: cover;
}

.hero {
text-align: center;
padding: 100px 0;
background: linear-gradient(to right, #00c6ff, #0072ff);
color: white;
}

.profile-pic {
width: 150px;
height: 150px;
border-radius: 50%;
border: 5px solid white;
margin-bottom: 20px;
}

header {
background-color: #333;
color: #fff;
Expand Down Expand Up @@ -41,7 +57,7 @@ section {
max-width: 800px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 80%; /* Adjusts the width of the boxes */
width: 80%;
}

section h2 {
Expand All @@ -58,3 +74,68 @@ footer {
width: 100%;
margin-top: 20px;
}

/* Dark Mode Styles */
body.dark-mode {
background-color: #333;
color: #f4f4f4;
}

body.dark-mode .hero {
background: linear-gradient(to right, #003366, #000066);
}

body.dark-mode section {
background-color: #444;
color: #ddd;
}

body.dark-mode header,
body.dark-mode footer {
background-color: #222;
}

body.dark-mode nav ul li a {
color: #ddd;
}

body.dark-mode a {
color: #66f;
}

button.dark-mode-toggle {
position: fixed;
bottom: 20px;
right: 20px;
padding: 10px 20px;
border: none;
background-color: #0072ff;
color: white;
cursor: pointer;
border-radius: 5px;
font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
nav ul li {
display: block;
margin: 10px 0;
}

section {
width: 90%;
}
}

@media (max-width: 480px) {
.profile-pic {
width: 120px;
height: 120px;
}

button.dark-mode-toggle {
padding: 8px 16px;
font-size: 14px;
}
}

0 comments on commit 07f21f8

Please sign in to comment.