<style>
body {
font-family: Arial, sans-serif;
background: #f4f4f4;
margin: 0;
}
.header {
background: #d35400;
color: white;
text-align: center;
padding: 50px 20px;
}
.header h1 {
margin: 0;
font-size: 32px;
}
.header p {
margin-top: 8px;
font-size: 16px;
}
.nav {
text-align: center;
background: white;
padding: 10px;
}
.nav a {
margin: 5px;
display: inline-block;
padding: 8px 12px;
text-decoration: none;
color: #d35400;
border: 1px solid #d35400;
border-radius: 20px;
font-size: 13px;
}
.container {
max-width: 1000px;
margin: auto;
padding: 20px;
}
.section-title {
font-size: 20px;
margin: 20px 0 10px;
border-left: 5px solid #d35400;
padding-left: 10px;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 15px;
}
.card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: 0.2s;
}
.card:hover {
transform: translateY(-4px);
}
.card a {
text-decoration: none;
color: #333;
}
.card img {
width: 100%;
height: 140px;
object-fit: cover;
}
.card .content {
padding: 10px;
}
.card h3 {
font-size: 15px;
margin: 0;
}
.button {
display: inline-block;
margin-top: 8px;
padding: 6px 10px;
background: #d35400;
color: white;
border-radius: 5px;
text-decoration: none;
font-size: 12px;
text-align: center;
}
</style>
<div class="header">
<h1>Resepi Sajian Kampung</h1>
<p>Masakan Melayu • Tradisi • Mudah & Sedap</p>
</div>
<div class="nav">
<a href="#">Home</a>
<a href="#">Ikan</a>
<a href="#">Ayam</a>
<a href="#">Mee</a>
<a href="#">Kerabu</a>
</div>
<div class="container">
<div class="section-title">🔥 Resepi Pilihan</div>
<div class="grid">
<!-- RESEPI 1 (FOKUS UTAMA) -->
<div class="card">
<a href="https://myresepisajian.blogspot.com/2020/08/ikan-tenggiri-asam-pedas.html">
<img src="https://source.unsplash.com/400x300/?fish,curry">
<div class="content">
<h3>Ikan Tenggiri Asam Pedas</h3>
<a class="button" href="https://myresepisajian.blogspot.com/2020/08/ikan-tenggiri-asam-pedas.html">
Baca →
</a>
</div>
</a>
</div>
<!-- RESEPI 2 -->
<div class="card">
<a href="https://myresepisajian.blogspot.com/2020/08/ayam-masak-merah-bersantan.html">
<img src="https://source.unsplash.com/400x300/?chicken,curry">
<div class="content">
<h3>Ayam Masak Merah</h3>
<a class="button" href="https://myresepisajian.blogspot.com/2020/08/ayam-masak-merah-bersantan.html">Baca →</a>
</div>
</a>
</div>
<!-- RESEPI 3 -->
<div class="card">
<a href="https://myresepisajian.blogspot.com/2020/08/nasi-goreng-sambal-belacan.html">
<img src="https://source.unsplash.com/400x300/?fried,rice">
<div class="content">
<h3>Nasi Goreng Sambal Belacan</h3>
<a class="button" href="https://myresepisajian.blogspot.com/2020/08/nasi-goreng-sambal-belacan.html">Baca →</a>
</div>
</a>
</div>
<!-- RESEPI 4 -->
<div class="card">
<a href="https://myresepisajian.blogspot.com/2020/09/kerabu-ikan-tamban-kinilau.html">
<img src="https://source.unsplash.com/400x300/?salad,seafood">
<div class="content">
<h3>Kerabu Ikan Tamban</h3>
<a class="button" href="https://myresepisajian.blogspot.com/2020/09/kerabu-ikan-tamban-kinilau.html">Baca →</a>
</div>
</a>
</div>
</div>
</div>
Comments
Post a Comment