-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (88 loc) · 3.72 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
88
89
90
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet">
<style>
*,
*:before,
*:after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Rubik', sans-serif;
display: grid;
align-items: center;
justify-items: center;
}
.container {
padding-left: 30px;
padding-right: 30px;
margin: 0 auto;
}
</style>
</head>
<body>
<div class="container">
<h1>Click the menu icon on the top right side of screen</h1>
</div>
<button class="menu-toggle">
Menu
<svg viewBox="0 0 40 40" aria-hidden="true">
<rect y="10" width="40" height="2"></rect>
<rect y="20" width="40" height="2"></rect>
<rect y="30" width="40" height="2"></rect>
</svg>
</button>
<div class="main-navigation">
<div class="main-navigation__left-column">
<ul class="main-navigation__nav">
<li><a href="#">Home</a></li>
<li class="has-submenu">
<a href="#">About</a>
<div class="submenu-container">
<div class="submenu submenu--first-level">
<ul>
<li class="has-submenu" data-submenu="about">
<a href="#">About Item 1</a>
<button class="submenu__btn submenu__btn--next">Next</button>
</li>
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
<li><a href="#">Item 1.3</a></li>
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
<li><a href="#">Item 1.3</a></li>
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
<li><a href="#">Item 1.3</a></li>
</ul>
</div><!-- .submenu__first-level -->
<div class="submenu submenu--second-level" data-submenu-id="about">
<ul>
<li><button class="submenu__btn submenu__btn--back">Back</button></li>
<li><a href="#">Second Level</a></li>
<li><a href="#">Item 2.1</a></li>
<li><a href="#">Item 2.2</a></li>
<li><a href="#">Item 2.3</a></li>
</ul>
</div><!-- .submenu__second-level -->
</div><!-- .submenu-container -->
</li>
<li><a href="#">Contact</a></li>
</ul>
</div><!-- .main-navigation__left-column -->
<aside class="main-navigation__right-column">
<img src="https://img.logoipsum.com/286.svg">
</aside><!-- .main-navigation__right-column -->
</div><!-- .main-navigation -->
<script src="js/main-navigation.js"></script>
</body>
</html>