-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails.html
190 lines (162 loc) · 4.69 KB
/
details.html
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rucher Apicole - Détails du Produit</title>
<link rel="icon" href="logoabeille.png" type="image/png">
<style>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Raleway:wght@400;600&display=swap');
html, body {
margin: 0;
padding: 0;
height: 100%;
font-family: 'Raleway', sans-serif;
color: #6D6E71;
}
body {
display: flex;
flex-direction: column;
background-color: #F9F6F0;
}
header {
background-color: #F5C500;
padding: 20px;
text-align: center;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: padding 0.3s ease;
}
header h1 {
margin: 0;
color: #6D6E71;
font-size: 2.2rem;
font-family: 'Playfair Display', serif;
}
header.fixed {
padding: 10px 20px;
}
nav ul {
list-style: none;
padding: 0;
margin-top: 10px;
display: flex;
justify-content: center;
gap: 30px;
}
nav ul li a {
text-decoration: none;
color: #6D6E71;
font-size: 1rem;
font-weight: 600;
transition: color 0.3s ease;
}
nav ul li a:hover {
color: #2C6B2F;
}
#details-produit {
display: flex;
flex-direction: column;
align-items: center;
padding: 140px 20px 60px 20px;
text-align: center;
flex: 1;
}
#details-produit .container {
display: flex;
flex-direction: column;
align-items: center;
max-width: 800px;
margin: 0 auto;
}
#details-produit img {
width: 100%;
max-width: 400px;
height: auto;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
#details-produit .text {
text-align: left;
padding-left: 20px;
}
#details-produit h2 {
color: #F5C500;
font-size: 2rem;
margin-bottom: 20px;
font-family: 'Playfair Display', serif;
}
#details-produit p {
font-size: 1.2rem;
margin-bottom: 20px;
max-width: 700px;
}
footer {
background-color: #6D6E71;
color: #F9F6F0;
text-align: center;
padding: 20px;
font-size: 0.9rem;
}
footer p {
margin: 0;
}
@media (max-width: 768px) {
header h1 {
font-size: 1.8rem;
}
#details-produit .container {
flex-direction: column;
align-items: center;
}
#details-produit img {
max-width: 100%;
}
#details-produit .text {
padding-left: 0;
text-align: center;
}
#details-produit h2 {
font-size: 1.8rem;
}
#details-produit p {
font-size: 1rem;
}
}
</style>
</head>
<body>
<header>
<h1>Détails du Produit</h1>
<nav>
<ul>
<li><a href="index.html">Accueil</a></li>
<li><a href="produits.html">Nos Produits</a></li>
</ul>
</nav>
</header>
<section id="details-produit">
<div class="container">
<img src="miel.jpg" alt="Pot de miel">
<div class="text">
<h2>Miel de Lavande</h2>
<p>Prix : 15,00 €</p>
<p>Description : Ce miel de lavande est produit à partir des fleurs de lavande de nos champs. Il a une saveur douce et florale, idéale pour sucrer vos boissons ou accompagner vos desserts.</p>
</div>
</div>
</section>
<footer>
<p>© 2024 Rucher Apicole. Tous droits réservés.</p>
</footer>
<script>
window.addEventListener('scroll', function () {
const header = document.querySelector('header');
header.classList.toggle('fixed', window.scrollY > 0);
});
</script>
</body>
</html>