This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
184 lines (149 loc) · 4.4 KB
/
index.php
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
<?php
require($_SERVER['DOCUMENT_ROOT'] . "/athome/product/link.php");
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ATHome</title>
<link rel="stylesheet" href="css/style.css"/>
<link rel="icon" type="image/png" href="res/icons/logo.ico" />
<script type="text/javascript" src="res/vendors/jquery.min.js">
</script>
</head>
<body class="page-home">
<?php include('res/parts/nav.php'); ?>
<div class="slider">
<div class="overlay">
<div class="inner">
<h2 class="slogan"> L'ergonomie à porté de main </h2>
<?php
$decouvrir = new Button('Découvrir','category.php');
echo ($decouvrir->getOutput());
?>
</div>
</div>
</div>
<!-- ergergrge-->
<!-- ergergrge-->
<main class="block-main">
<div class="inner">
<div class="row">
<div class="inner">
<ul class="list-styles">
<?php
/* Styles */
$styles = styleModel::getAllStyles();
foreach($styles as $element){
$out = new Box($element->label, "product/res/style/" . $element->img_present);
$out->link = "product.php?style=" . ($element->label);
if(!empty($element->color_overlay)){
$out->setBackground($element->color_overlay);
}
echo('<li class="item-style">');
echo($out->getOutput());
echo('</li>');
}
?>
</ul>
</div>
</div>
<div class="row">
<div class="inner">
<ul class="list-styles">
<?php
/* Styles */
$types = typeModel::getAllTypes();
foreach($types as $element){
$out = new Box($element->label, "product/res/type/" . $element->img_present);
$out->link = "product.php?type=" . ($element->label);
if(!empty($element->color_overlay)){
$out->setBackground($element->color_overlay);
}
echo('<li class="item-style">');
echo($out->getOutput());
echo('</li>');
}
?>
</ul>
</div>
</div>
<div class="row row-3">
<div class="inner">
<div class="customer-box">
<div class="inner">
<div class="elements">
<h1>témoignage client</h1>
<img src="res/icons/ic_mic_white_24px.svg"/>
<h2>Marie Crack</h2>
</div>
</div>
<img src="res/icons/ic_keyboard_arrow_left_white_24px.svg" class="left-arrow customer-nav" alt="previous"/>
<img src="res/icons/ic_keyboard_arrow_right_white_24px.svg" class="right-arrow customer-nav" alt="previous"/>
</div>
<div class="promo-box">
<div class="inner">
<h1>Vous allez aimer</h1>
<ul class="promo-list">
<li class="promo-item">
<a href="#">
<div class="preview" style="background-image: url(res/img/living-room-2155376_1920.jpg);
background-position :left center;"></div>
<span class="title">
Fauteuil faux cuir
</span>
<span class="price">90€</span>
</a>
</li>
<li class="promo-item">
<a href="#">
<div class="preview" style="background-image: url(res/img/apartment-2094699_1920.jpg);"></div>
<span class="title">
Table moderne
</span>
<span class="price">60€</span>
</a>
</li>
<li class="promo-item">
<a href="#">
<div class="preview" style="background-image: url(res/img/element_1.jpg);
"></div>
<span class="title">
Fauteuil vintage
</span>
<span class="price">75€</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="row row_services">
<div class="overlay">
<ul class="inner_services">
<li>
<img src="res/icons/voiture_blanche.png" class="voiture" alt="voiture">
<p>LIVRAISON</p>
</li>
<li>
<img src="res/icons/fleur_blanche.png" class="fleur" alt="fleur">
<p>ÉCO RESPONSABLE</p>
</li>
<li>
<img src="res/icons/dollar_blanc.png" class="dollar" alt="dollar">
<p>DONATION</p>
</li>
<li>
<img src="res/icons/map_blanc.png" class="map" alt="map">
<p>MADE IN FRANCE</p>
</li>
</ul>
</div>
</div>
</main>
<?php include('res/parts/footer.php'); ?>
<script type="text/javascript" src="script/script.js"></script>
</body>
</html>