Skip to content

Commit

Permalink
Create styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt-exe authored Jan 19, 2025
1 parent bd6864b commit 1370c81
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
color: #333;
background-color: #f9f9f9;
}

header {
background: #4CAF50;
color: white;
padding: 20px 10px;
text-align: center;
}

header h1 {
margin: 0;
font-size: 2.5rem;
}

header p {
margin: 0;
font-size: 1.2rem;
}

main {
padding: 20px;
}

#products {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}

.product {
background: white;
border: 1px solid #ddd;
border-radius: 5px;
padding: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}

.product:hover {
transform: scale(1.02);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product h3 {
margin: 0 0 10px;
font-size: 1.5rem;
color: #4CAF50;
}

.product p {
margin: 0 0 15px;
font-size: 1rem;
}

.product a {
display: inline-block;
text-decoration: none;
color: white;
background: #4CAF50;
padding: 10px 15px;
border-radius: 5px;
font-size: 1rem;
transition: background 0.2s;
}

.product a:hover {
background: #45a049;
}

footer {
background: #333;
color: white;
text-align: center;
padding: 10px 0;
}

footer a {
color: #4CAF50;
text-decoration: none;
}

footer a:hover {
text-decoration: underline;
}

0 comments on commit 1370c81

Please sign in to comment.