registration, login, admin panel
This commit is contained in:
203
src/components/HomePage.css
Normal file
203
src/components/HomePage.css
Normal file
@@ -0,0 +1,203 @@
|
||||
.home-page {
|
||||
font-family: "Arial", sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #f9f5f0;
|
||||
color: #543d2d;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding: 60px 20px;
|
||||
color: #8b4513;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
width: 55%;
|
||||
}
|
||||
|
||||
.hero-image img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.hero-text {
|
||||
width: 40%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 3.5em;
|
||||
margin-bottom: 20px;
|
||||
color: #8b4513;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
font-size: 1.3em;
|
||||
line-height: 1.7;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
padding: 14px 28px;
|
||||
background-color: #a8571d;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: 7px;
|
||||
font-weight: bold;
|
||||
transition: background-color 0.3s ease;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
background-color: #70380e;
|
||||
}
|
||||
|
||||
.categories {
|
||||
padding: 40px 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.categories h2 {
|
||||
font-size: 2.5em;
|
||||
margin-bottom: 30px;
|
||||
color: #8b4513;
|
||||
}
|
||||
|
||||
.category-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 25px;
|
||||
}
|
||||
|
||||
.category-card {
|
||||
display: block;
|
||||
width: 220px;
|
||||
padding: 25px;
|
||||
background-color: #fff8f0;
|
||||
border-radius: 12px;
|
||||
text-decoration: none;
|
||||
color: #543d2d;
|
||||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
|
||||
border: 1px solid #d3b48c;
|
||||
}
|
||||
|
||||
.category-card img {
|
||||
width: 100%;
|
||||
height: 160px;
|
||||
object-fit: cover;
|
||||
border-radius: 7px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.category-card span {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.featured-recipes {
|
||||
padding: 40px 20px;
|
||||
text-align: center;
|
||||
background-color: #f2dfd1;
|
||||
}
|
||||
|
||||
.featured-recipes h2 {
|
||||
font-size: 2.5em;
|
||||
margin-bottom: 30px;
|
||||
color: #8b4513;
|
||||
}
|
||||
|
||||
.recipe-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 25px;
|
||||
}
|
||||
|
||||
.recipe-card {
|
||||
width: 320px;
|
||||
background-color: #fff;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.recipe-card img {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.recipe-card h3 {
|
||||
padding: 12px 22px;
|
||||
margin: 0;
|
||||
font-size: 1.6em;
|
||||
color: #543d2d;
|
||||
}
|
||||
|
||||
.recipe-card p {
|
||||
padding: 0 22px;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.5;
|
||||
color: #665140;
|
||||
}
|
||||
|
||||
.recipe-card a {
|
||||
display: block;
|
||||
padding: 12px 22px;
|
||||
background-color: #a8571d;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
transition: background-color 0.3s ease;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.recipe-card a:hover {
|
||||
background-color: #70380e;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero {
|
||||
padding: 40px 15px;
|
||||
}
|
||||
.hero h1 {
|
||||
font-size: 3em;
|
||||
}
|
||||
.category-grid {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.category-card {
|
||||
width: 90%;
|
||||
}
|
||||
.recipe-grid {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.recipe-card {
|
||||
width: 90%;
|
||||
}
|
||||
.hero-content {
|
||||
flex-direction: column;
|
||||
}
|
||||
.hero-image, .hero-text {
|
||||
width: 100%;
|
||||
}
|
||||
.hero-image {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user