Skip to content

Instantly share code, notes, and snippets.

@femakin
Created March 9, 2023 23:00
Show Gist options
  • Save femakin/8fe7602eefa727b022399c662df3187b to your computer and use it in GitHub Desktop.
Save femakin/8fe7602eefa727b022399c662df3187b to your computer and use it in GitHub Desktop.
.btn {
background: lawngreen;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
.row {
display: flex;
flex-wrap: wrap;
margin: -15px;
}
.col-md-6 {
flex: 0 0 50%;
max-width: 50%;
padding: 15px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
textarea {
display: block;
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
margin-bottom: 15px;
}
button[type="submit"] {
background-color: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
li {
margin-bottom: 10px;
}
Global styles html {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
}
.hero-section {
background-color: #fff9f5;
height: 400px;
display: flex;
align-items: center;
}
.hero-content {
color: #21312a;
text-align: center;
margin: 0 auto;
}
.hero-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero-content p {
font-size: 1.5rem;
margin-bottom: 2rem;
}
.btn-primary {
background-color: #ff7900;
color: white;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 0.25rem;
font-size: 1.25rem;
cursor: pointer;
}
.btn-primary:hover {
background-color: #e65c00;
}
.items-section {
padding: 2rem;
background-color: #f2f2f2;
}
.items-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
justify-items: center;
}
.item-card {
background-color: white;
border-radius: 0.25rem;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 1rem;
text-align: center;
}
.item-card img {
width: 100%;
height: auto;
border-radius: 0.25rem;
margin-bottom: 1rem;
}
.item-card h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.item-card p {
font-size: 1rem;
margin-bottom: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment