-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
164 lines (148 loc) · 3.57 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<template>
<div class="container">
<header>
<h1>REECHEFF</h1>
<nav>
<nuxt-link to="/">Beranda</nuxt-link>
<nuxt-link to="/search">Pencarian</nuxt-link>
<nuxt-link to="/upload">Unggah Resep</nuxt-link>
<nuxt-link to="/profile">Profil</nuxt-link>
</nav>
</header>
<main>
<section>
<h2>Resep Terbaru</h2>
<div class="section-content">
<nuxt-link to="/recipe/mie-aceh" class="recipe-card">
<img src="/assets/mie aceh.jpg" alt="Mie Aceh">
<h3>Mie Aceh</h3>
<p>Mie Aceh adalah makanan yang berasal dari Aceh.</p>
</nuxt-link>
<nuxt-link to="/recipe/ketoprak" class="recipe-card">
<img src="/assets/ketoprak.jpg" alt="Ketoprak">
<h3>Ketoprak</h3>
<p>Ketoprak adalah makanan dari Jawa Barat.</p>
</nuxt-link>
<nuxt-link to="/recipe/sup-ayam" class="recipe-card">
<img src="/assets/sup ayam.jpg" alt="Sup Ayam">
<h3>Sup Ayam</h3>
<p>Sup Ayam adalah makanan dari Bali.</p>
</nuxt-link>
</div>
<h2>Resep Populer</h2>
<div class="section-content">
<nuxt-link to="/recipe/bika-ambon" class="recipe-card">
<img src="/assets/bika ambon.jpg" alt="Bika Ambon">
<h3>Bika Ambon</h3>
<p>Bika Ambon adalah makanan dari Medan.</p>
</nuxt-link>
<nuxt-link to="/recipe/gudeg" class="recipe-card">
<img src="/assets/gudeg.jpeg" alt="Gudeg">
<h3>Gudeg</h3>
<p>Gudeg adalah makanan dari Yogyakarta.</p>
</nuxt-link>
<nuxt-link to="/recipe/kerak-telur" class="recipe-card">
<img src="/assets/kerak telur.jpg" alt="Kerak Telur">
<h3>Kerak Telur</h3>
<p>Kerak Telur adalah makanan dari Betawi.</p>
</nuxt-link>
</div>
</section>
</main>
</div>
</template>
<style>
body {
font-family: 'Helvetica Neue', sans-serif;
background-color: #fff;
margin: 0;
padding: 0;
color: #333;
}
header {
background-color: #ff6600;
padding: 20px;
color: #ffffff;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
header h1 {
margin: 0;
font-size: 2.5em;
text-shadow: 1px 1px 2px #333;
}
nav {
margin-top: 10px;
}
nav a {
color: #ffffff;
background-color: #cc5200;
padding: 10px 20px;
text-decoration: none;
border-radius: 20px;
transition: background-color 0.3s, transform 0.3s;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin: 0 10px;
}
nav a:hover {
background-color: #b34700;
transform: scale(1.05);
}
main {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
}
section {
margin-top: 20px;
}
h2 {
font-size: 2em;
color: #cc5200;
text-align: center;
margin-bottom: 20px;
}
.section-content {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.recipe-card {
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
width: 300px;
}
.recipe-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.recipe-card h3 {
font-size: 1.5em;
color: #333;
margin: 10px 0;
}
.recipe-card p {
font-size: 1em;
color: #777;
margin: 0 10px 10px;
}
.recipe-card:hover {
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
footer {
background-color: #ff6600;
padding: 10px;
color: #ffffff;
text-align: center;
position: fixed;
width: 100%;
bottom: 0;
}
</style>