-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile-navigation-bar.html
145 lines (121 loc) · 6.76 KB
/
mobile-navigation-bar.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
<!DOCTYPE html>
<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>Mobile Navigation Bar</title>
<!-- Tailwind -->
<script src="https://cdn-tailwindcss.vercel.app/"></script>
<!-- MDI Icons -->
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/6.5.95/css/materialdesignicons.min.css">
<!-- MDI Icons -->
<link rel="stylesheet" href="//cdn.materialdesignicons.com/6.5.95/css/materialdesignicons.min.css">
</head>
<body>
<!-- Container -->
<div class="flex items-center justify-center min-h-screen">
<div class="flex flex-col">
<span class="text-center font-bold my-20">
MDI (npm i @mdi/font) reuqired for navigation icons
<hr class="my-4">
<a href="https://egoistdeveloper.github.io/twcss-to-sass-playground/" target="_blank" class="text-blue-600">
Convetert to SASS
</a>
</span>
<div class="w-full max-w-md px-7 py-10 mx-auto bg-white rounded-2xl shadow-xl">
<!-- Navigation Bar -->
<div class="px-5 pt-3 bg-white shadow-lg rounded-2xl">
<div class="flex flex-row space-x-3">
<!-- Item #1 -->
<div class="flex group">
<a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
<span class="flex flex-col items-center">
<!-- Icon -->
<i class="mdi mdi-home-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
transition-color duration-200"></i>
<!-- Text -->
<span class="text-xs mb-2 transition-all duration-200">
Home
</span>
<!-- Focus Dot -->
<span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
transition-all duration-150 delay-100"></span>
</span>
</a>
</div>
<!-- Item #2 -->
<div class="flex group">
<a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
<span class="flex flex-col items-center">
<!-- Icon -->
<i class="mdi mdi-compass-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
transition-color duration-200"></i>
<!-- Text -->
<span class="text-xs mb-2 transition-all duration-200">
Explore
</span>
<!-- Focus Dot -->
<span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
transition-all duration-150 delay-100"></span>
</span>
</a>
</div>
<!-- Item #3 Active -->
<div class="flex group">
<a href="#" class="p-3 text-yellow-500 hover:text-yellow-500">
<span class="flex flex-col items-center">
<!-- Icon -->
<i class="mdi mdi-layers-outline mdi-24px mx-1 text-gray-700 group-hover:text-gray-700
transition-color duration-200"></i>
<!-- Text -->
<span class="text-xs mb-2 transition-all duration-200">
Feeds
</span>
<!-- Focus Dot -->
<span class="h-1 w-5 rounded-full bg-yellow-500 group-hover:bg-yellow-500
hover:h-3 hover:w-3 transition-all duration-150 delay-100"></span>
</span>
</a>
</div>
<!-- Item #4 -->
<div class="flex group">
<a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
<span class="flex flex-col items-center">
<!-- Icon -->
<i class="mdi mdi-basket-plus-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
transition-color duration-200"></i>
<!-- Text -->
<span class="text-xs mb-2 transition-all duration-200">
Cart
</span>
<!-- Focus Dot -->
<span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
transition-all duration-150 delay-100"></span>
</span>
</a>
</div>
<!-- Item #5 -->
<div class="flex group">
<a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
<span class="flex flex-col items-center">
<!-- Icon -->
<i class="mdi mdi-account-circle-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
transition-color duration-200"></i>
<!-- Text -->
<span class="text-xs mb-2 transition-all duration-200">
Account
</span>
<!-- Focus Dot -->
<span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
transition-all duration-150 delay-100"></span>
</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>