-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
122 lines (105 loc) · 2.08 KB
/
styles.css
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
/* Reset CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f8f9fa;
color: #343a40;
line-height: 1.6;
}
/* Header */
header {
position: relative;
overflow: hidden;
}
.hero {
background-image: url('your-image-url.jpg'); /* Ganti dengan URL gambar latar belakang Anda */
background-size: cover;
background-position: center;
height: 400px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
text-align: center;
padding: 20px;
}
.hero h1 {
font-size: 3.5em;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.hero p {
font-size: 1.5em;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
/* Main Content */
.container {
width: 90%;
max-width: 800px;
margin: -80px auto 20px auto; /* Menambahkan margin negatif untuk mengangkat konten */
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.input-container {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
input {
width: 70%;
padding: 12px;
font-size: 1em;
border: 2px solid #007BFF;
border-radius: 4px;
}
button {
padding: 12px 20px;
font-size: 1em;
color: white;
background-color: #28A745;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #218838;
}
/* Recipe Results */
.recipe-results {
margin-top: 20px;
}
.recipe-card {
background-color: #f8f9fa;
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.recipe-card h3 {
margin-bottom: 10px;
}
.recipe-card p {
margin: 5px 0;
}
/* Footer */
footer {
background-color: #343a40;
color: white;
text-align: center;
padding: 15px 0;
}
footer a {
color: #007BFF;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}