-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.html
298 lines (265 loc) · 14.6 KB
/
layout.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
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ store.name }}</title>
<link rel="shortcut icon" href="{{ favicon }}">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
<meta name="og:type" content="website">
<meta name="og:locale" content="en_EN">
<meta name="og:image:width" content="1200">
<meta name="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="og:site_name" content="{{ store.name }}">
<meta name="og:title" content="{{ store.name }}">
<meta name="og:image:alt" content="{{ store.name }}">
<meta name="theme-color" content="{{ config("main-color") }}">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="{{ asset('style.css') }}" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap" rel="stylesheet">
<link href="https://cdn.paynow.gg/fonts/fontawesome-6.6.0/css/all.min.css" rel="stylesheet">
<style>
:root {
--main-color: {{ config("main-color")}};
/*- main color -*/
--hover-color: {{config("second-color")}};
/*- hover color-*/
--text-color: #A1A1AA;
--header-bg: #18181B;
--footer-bg: #09090B66;
--button: {{config("main-color")}};
--border-radius: 0px;
--bg-color: #18181B;
--panel-body: #18181B;
--border-color: #3F3F46;
--border: 1px solid var(--border-color);
--border-top: linear-gradient(0deg, #18181B, #18181B),
linear-gradient(180deg, rgba(39, 39, 42, 0.2) 0%, rgba(24, 24, 27, 0) 21.88%);
--shadow: 0px 0px 2px 0px #000000;
--first-color: #3F3F46;
--second-color: #27272A;
--input: #09090B;
--dropdown:;
--dropdown-active:;
--logo-height: 100px;
--btn-pad: 0.5rem;
--spacing-xs: 0.5rem;
--spacing-s: 1rem;
--spacing-m: 1.5rem;
--transition: 0.3s easy-out;
}
</style>
<script src="https://cdn.tailwindcss.com?plugins=typography" nonce="MzQzMDQ1NjQ5MSwzMjA2ODk0MDcz"></script>
<script src="{{ asset("script.js") }}"></script>
</head>
<body class="body">
<header class="mb-4 pt-2 pb-2">
<div class="container mx-auto">
<div class="header-top flex flex-col md:flex-row md:items-center md:justify-between">
<ul class="social-media flex justify-left gap-2">
{% if config("twitch") %}<li><a class="btn-info social-media-item twitch" href="{{ config("twitch") }}" target="_blank"><i class="fa-brands fa-twitch"></i></a></li>{% endif %}
{% if config("discord") %}<li><a class="btn-info social-media-item discord" href="{{ config("discord") }}" target="_blank"><i class="fa-brands fa-discord"></i></a></li>{% endif %}
{% if config("youtube") %}<li><a class="btn-info social-media-item youtube" href="{{ config("youtube") }}" target="_blank"><i class="fa-brands fa-youtube"></i></a></li>{% endif %}
{% if config("twitter") %}<li><a class="btn-info social-media-item twitter" href="{{ config("twitter") }}" target="_blank"><i class="fa-brands fa-x-twitter"></i></a></li>{% endif %}
{% if config("instagram") %}<li><a class="btn-info social-media-item instagram" href="{{ config("instagram") }}" target="_blank"><i class="fa-brands fa-instagram"></i></a></li>{% endif %}
{% if config("facebook") %}<li><a class="btn-info social-media-item facebook" href="{{ config("facebook") }}" target="_blank"><i class="fa-brands fa-facebook"></i></a></li>{% endif %}
{% if config("tiktok") %}<li><a class="btn-info social-media-item tiktok" href="{{ config("tiktok") }}" target="_blank"><i class="fa-brands fa-tiktok"></i></a></li>{% endif %}
</ul>
<div class="header-logo hidden md:flex">
<a href="/">
{% if store.logo_url %}
<img class="mx-auto max-h-[5rem] py-2" alt="{{ store.name }}'s Logo" src="{{ store.logo_url }}" />
{% else %}
<h1 class="text-gray-200 font-medium text-6xl">{{ store.name }}</h1>
{% endif %}
</a>
</div>
<div class="header-account flex mt-4 md:mt-0 md:justify-end gap-2 md:items-center">
{% if customer.id %}
<a href="/account">
<div class="header-item">
<img class="w-full h-full" alt="Avatar" src="{{ customer.profile.avatar_url }}" />
</div>
</a>
{% endif %}
{% if customer.id %}
<a href="/auth/sign-out">
<div class="header-item">
<i class="fa-solid fa-right-from-bracket"></i>
</div>
</a>
{% else %}
<a href="/auth/sign-in">
<div class="font-[Rajdhani] font-semibold header-item !px-2">
<span class="uppercase mr-2">Sign in</span>
<i class="fa-solid fa-right-to-bracket"></i>
</div>
</a>
{% endif %}
{% if config("support_url") %}
<a href="{{ config("support_url") }}">
<div class="header-item">
<div class="header-subsc">
{% include 'svgs/support.html' %}
</div>
</div>
</a>
{% endif %}
{% if customer.id %}
<a href="/cart">
<div class="header-item">
<div class="header-cart">
{% include 'svgs/cart.html' %}
<span class="cart-number">{{ cart.lines|length }}</span>
</div>
</div>
</a>
{% endif %}
</div>
</div>
</div>
</header>
<div class="container mx-auto !min-h-[calc(100vh-16.5rem)]">
<div class="nav topbar mb-4 mt-5">
<ul class="inline-flex flex-wrap items-center h-full gap-10 tracking-wide">
<li class="nav-item {% if request.path == "/" %}active{% endif %}">
<a href="/">
<div class="nav-icon">
<i class="fa-solid fa-house"></i>
</div>
Home
</a>
</li>
{% for navlink in navlinks %}
<li class="nav-item {% if activeRootNavlink.node_id == navlink.node_id %}active{% endif %}">
<div class="relative inline-block text-left">
<a class="flex items-center" href="{% if navlink.children|length > 0 %}#{% else %}/products?tag={{ navlink.tag_query }}{% endif %}" onclick="toggleDropdown('{{ navlink.node_id }}')">
<div class="nav-icon">
<i class="fa-solid fa-box-open"></i>
</div>
{{ navlink.name }}
{% if navlink.children|length > 0 %}
<i class="fa-solid fa-chevron-down"></i>
{% endif %}
</a>
{% if navlink.children|length > 0 %}
{% include 'menu-links.html' with {'navlink': navlink, 'activeNavlink': activeNavlink} only %}
{% endif %}
</div>
</li>
{% endfor %}
{% for custom_page in custom_pages %}
{% if not custom_page.settings %} ->
{% if custom_page.path starts with '/' %}
{% set page_parsed_path = custom_page.path %}
{% else %}
{% set page_parsed_path = '/' ~ custom_page.path %}
{% endif %}
<li class="nav-item {% if request.path == page_parsed_path %}active{% endif %}">
<a href="{{ page_parsed_path }}">
<div class="nav-icon">
<i class="fa-solid {{ custom_page.icon }}"></i>
</div>
{{ custom_page.title }}
</a>
</li>
{% endif %}
{% endfor %}
{% if supports_customer_management %}
<li class="nav-item {% if request.path starts with "/account" %}active{% endif %}">
<a href="/account">
<div class="nav-icon">
<i class="fa-solid fa-user"></i>
</div>
My Account
</a>
</li>
{% endif %}
</ul>
</div>
{% if config("banner") == "true" and (not config("banner_only_home") or request.path == "/") %}
<a class="{% if not config("banner_link") %}pointer-events-none{% endif %}" href="{{ config("banner_link") }}">
<div class="relative w-full h-[192px] mb-4 mt-3 rounded-lg">
<img class="object-cover w-full h-full" src="{{ config("banner_img") }}">
<h1 class="text-6xl font-[Rajdhani] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">{{ config("banner_text") }}</h1>
</div>
</a>
{% endif %}
{% set is_full_width_container = block('sidebar') is not defined and modules is empty %}
<div class="grid grid-cols-12 gap-4 mt-8">
<div class="flex flex-col col-span-12 lg:col-span-3 gap-7 {% if is_full_width_container %}hidden{% endif %}">
{# {% if config("navigation") == "Navbar" %}
<nav class="nav navbar">
<ul class="inline-flex flex-wrap items-center h-full gap-6 tracking-wide">
<li class="nav-item {% if request.path == "/" %}active{% endif %}">
<a href="/">Home</a>
</li>
{% for navlink in navlinks %}
<li class="nav-item {% if activeNavlink.node_id == navlink.node_id %}active{% endif %}">
<div class="relative inline-block text-left">
<a href="{% if navlink.children|length > 0 %}#{% else %}products?tag={{ navlink.tag_query }}{% endif %}" onclick="toggleDropdown('{{ navlink.node_id }}')">
{% if config("nav_icon") == "Show" %}
{% if config("nav_icon_type") == "Icons" %}
<div class="nav-icon">
{% if config("icon1") == "Home" %}<i class="fa-solid fa-house"></i>{% endif %}
<i class="fa-solid fa-box"></i>
<i class="fa-solid fa-cube"></i>
<i class="fa-solid fa-list"></i>
<i class="fa-solid fa-table"></i>
</div>
{% endif %}
{% if config("nav_icon_type") == "Images" %}
<span class="nav-icon"></span>
{% endif %}
{% endif %}
{{ navlink.name }}
{% if navlink.children|length > 0 %}
<i class="fa-solid fa-chevron-down"></i>
{% endif %}
</a>
{% if navlink.children|length > 0 %}
{% include 'menu-links.html' with {'navlink': navlink} only %}
{% endif %}
</div>
</li>
{% endfor %}
</ul>
</nav>
{% endif %} #}
{% if block('sidebar') is not defined %}
{{ modules | raw }}
{% else %}
{% block sidebar %}{% endblock %}
{% endif %}
</div>
{% if notification %}
<div id="notification-alert" class="bg-red-500 text-gray-100 shadow-xl border border-[--border-color] px-4 py-3 text-xl fixed mr-4 lg:mr-0 lg:right-24 bottom-12 animate-bounce duration-[2000ms] transition-opacity">
{{ notification.message }}
</div>
{% endif %}
<div class="{% if is_full_width_container %}lg:col-span-12{% else %}lg:col-span-9{% endif %} col-span-12">
<div class="">
{% block content %}{% endblock %}
</div>
</div>
</div>
</div>
<footer class="mt-[85px]">
<div class="container mx-auto">
<div class="flex items-center justify-between">
<div class="footer-copyright">
<span class="font-medium">© {{ store.name }} {{ 'now' | date('Y') }}</span>
</div>
<div class="flex justify-center gap-5 footer-links">
<a href="/legal/user-agreement">User Agreement</a>
<a href="/legal/terms-of-service">Terms of Service</a>
<a href="/legal/privacy-policy">Privacy Policy</a>
</div>
</div>
</div>
</footer>
</body>
</html>