-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
203 lines (196 loc) · 6.11 KB
/
index.html
File metadata and controls
203 lines (196 loc) · 6.11 KB
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
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ThessDema Mobile</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background: #f9f9f9;
color: #333;
}
header, section, footer {
padding: 1rem;
}
.card {
background: white;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin: 1rem 0;
padding: 1rem;
}
.map img {
width: 100%;
height: auto;
border-radius: 10px;
}
.button {
background: #333;
color: white;
padding: 1rem;
border-radius: 10px;
text-align: center;
display: block;
margin-top: 1rem;
text-decoration: none;
}
.btn-green {
background-color: #4caf50;
}
.flex {
display: flex;
align-items: center;
justify-content: space-between;
}
.stats {
text-align: center;
}
.circle {
border-radius: 50%;
width: 60px;
height: 60px;
background: #ccc;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
nav {
position: fixed;
bottom: 0;
width: 100%;
background: #fff;
display: flex;
justify-content: space-around;
padding: 0.5rem 0;
box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}
nav button {
background: none;
border: none;
font-size: 1.2rem;
}
.screen {
display: none;
}
.active {
display: block;
}
</style>
</head>
<body>
<header class="flex">
<div>👤</div>
<h1>ThessDema</h1>
<div>☰</div>
</header>
<main>
<section id="screen1" class="screen active">
<div class="card">
<h2>Welcome back!<br>John Doe</h2>
<p>@johndoe 🌲7.130</p>
<p><small>Redirected from Skroutz.gr...</small></p>
<div class="button btn-green">Got a SENIOR Card? Enjoy good discounts!</div>
<input type="text" placeholder="Search for parcel-boxes" style="width:100%;padding:0.5rem;margin-top:1rem;border-radius:6px;border:1px solid #ccc" />
<div class="map" style="margin-top:1rem">
<img src="CityMinds-Parcel.png" alt="Locker Map" />
</div>
<p style="text-align:center;margin-top:0.5rem;">Get 10% off discount for next delivery!</p>
<a href="#" class="button">Continue</a>
</div>
</section>
<section id="screen2" class="screen">
<div class="card">
<img src="shirt.jpg" alt="New Sports Shirt" style="width:100%;border-radius:10px;" />
<h2>New Sports Shirt</h2>
<p>The materials used are premium. Very suitable for work or everyday use.</p>
<h3>Delivery Method</h3>
<ul>
<li><strong>Standard Delivery:</strong> Friday 5th - FREE SHIPPING</li>
<li><strong>ThessDema Parcel Box:</strong> Wednesday 3rd - FREE SHIPPING, Eco-Friendly 🌱</li>
</ul>
<div class="flex">
<span style="text-decoration: line-through">170,90€</span>
<strong>120,10€</strong>
</div>
<a href="#" class="button">Add to Shopping Cart</a>
<a href="#" class="button btn-green">Shop Now</a>
</div>
</section>
<section id="screen3" class="screen">
<div class="card">
<h2>Order Details</h2>
<div class="map">
<img src="CityMinds-Parcel.png" alt="Order Map" />
</div>
<p>🌍 -200g CO₂ emissions by choosing us!</p>
<ol>
<li><strong>Order Placement:</strong> Received by ThessDema.</li>
<li><strong>Order Processing:</strong> Seller began processing.</li>
<li><strong>Packaging:</strong> Securely packaged.</li>
<li><strong>Shipping:</strong> Handed to courier.</li>
<li><strong>Transit:</strong> Going to parcel box.</li>
<li><strong>In Parcel Box:</strong> Located in one of our boxes.</li>
</ol>
<a href="#" class="button">Unlock Parcel Box</a>
</div>
</section>
<section id="screen4" class="screen">
<div class="card">
<h2>John Doe</h2>
<p>Total Points: 7.130 🌲</p>
<div class="stats">
<p>🌳 Trees Planted: 7</p>
<p>CO₂ Lessened: 200g</p>
<p>💰 You Saved: $20</p>
</div>
<div class="flex" style="flex-wrap: wrap; gap: 10px; justify-content: center;">
<div class="circle">📦</div>
<div class="circle">%</div>
<div class="circle">🎫</div>
<div class="circle">📍</div>
<div class="circle">🌱</div>
</div>
<canvas id="orderChart" style="width:100%;max-width:400px;margin-top:1rem;"></canvas>
<p style="text-align:center;margin-top:0.5rem;">Every 200g of CO₂ saved brings us closer to a greener world.</p>
</div>
</section>
</main>
<nav>
<button onclick="showScreen('screen1')">🏠</button>
<button onclick="showScreen('screen2')">🛒</button>
<button onclick="showScreen('screen3')">📦</button>
<button onclick="showScreen('screen4')">👤</button>
</nav>
<script>
function showScreen(id) {
document.querySelectorAll('.screen').forEach(screen => {
screen.classList.remove('active');
});
document.getElementById(id).classList.add('active');
}
const ctx = document.getElementById('orderChart').getContext('2d');
new Chart(ctx, {
type: 'doughnut',
data: {
labels: ['Delivered', 'In-Box', 'Cancelled'],
datasets: [{
data: [65, 25, 10],
backgroundColor: ['#f1c40f', '#3498db', '#e74c3c'],
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'bottom',
}
}
}
});
</script>
</body>
</html>