This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
index.html
87 lines (86 loc) · 3.18 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CodeBerry - Advanced JS - Patterns</title>
<!-- font for logo: -->
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
<!-- Bulma css framework for styling: -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<!-- icons: -->
<script src="https://kit.fontawesome.com/61877af9d0.js" crossorigin="anonymous"></script>
<!-- our own styles: -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar is-danger" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item">
<span class="icon is-large"><i class="fas fa-store fa-2x"></i></span>
<span class="cb-logo">BerryShop</span>
</a>
</div>
</nav>
<div class="section columns">
<div class="column">
<div class="js-product-list tile is-ancestor">
<div class="js-product tile is-4 is-parent">
<div class="card tile is-child">
<div class="card-image">
<figure class="image is-4by3">
<!--
added class names to the elements whose content we want to change later
started the class names with "js-" so that we know that the JavaScript is using it and
won't accidentally change it with a styling change
-->
<img class="js-product-image" src="https://bulma.io/images/placeholders/1280x960.png" alt="Placeholder image">
</figure>
</div>
<div class="card-content">
<div class="content">
<p class="js-product-name title is-4">Product Name</p>
<p class="js-product-category subtitle is-6">category</p>
<p class="js-product-description">
Product description, not super long, not super short. Just a couple of sentences.
</p>
</div>
<footer class="level">
<div class="level-left">
<div class="js-product-price level-item title is-4">
€0
</div>
</div>
<div class="level-right">
<button class="js-product-button level-item button is-primary">
Add to cart
</button>
</div>
</footer>
</div>
</div>
</div>
</div>
</div>
<div class="column is-2">
<div class="box">
<h2 class="title is-6">
<span class="icon"><i class="fas fa-shopping-cart"></i></span>
Cart
</h2>
<table class="js-cart table is-size-7 is-fullwidth">
<tr>
<td>Your cart is empty</td>
</tr>
</table>
<button class="button is-fullwidth">Checkout</button>
</div>
</div>
</div>
<!-- here goes our JavaScript: -->
<script src="pubsub.js"></script>
<script src="product.js"></script>
<script src="cart.js"></script>
<script src="script.js"></script>
</body>
</html>