-
Notifications
You must be signed in to change notification settings - Fork 2
/
layout.html
147 lines (147 loc) · 6.68 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
<!doctype html>
<html lang="en" style="overscroll-behavior-x:none;">
<head>
<meta charSet="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
<meta name="title" content="Folio">
<meta name="description" content="Folio is a digital whiteboard for sketching and prototyping">
<meta property="og:site_name" content="Folio - Digital whiteboard">
<meta property="og:type" content="website">
<meta property="og:url" content="https://folio.josemi.xyz">
<meta property="og:image" content="https://folio.josemi.xyy/og.png">
<meta property="og:description" content="Folio is a digital whiteboard for sketching and prototyping">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap">
<link rel="stylesheet" href="./low.css">
{{#each assets.css}}
<link rel="stylesheet" href="{{.}}" />
{{/each}}
<title>{{page.data.title}} | {{site.title}}</title>
<style>
.font-brand {
font-family: Poppins, serif;
font-weight: 700 !important;
}
/*
body {
background-image: radial-gradient(hsla(0, 0%, 86%, .3) 1px, transparent 0);
background-size: 12px 12px;
}
*/
</style>
</head>
<body class="m-0 p-0 font-inter leading-normal text-neutral-800 min-h-screen">
<!-- Header -->
{{#ne page.data.layout "empty"}}
<header class="w-full border-b border-neutral-100 bg-white">
<div class="flex justify-between items-center w-full max-w-8xl mx-auto h-16 px-8 select-none">
<div class="flex items-center gap-2">
<a href="./" class="flex items-center gap-2 text-neutral-950 hover:underline">
<div class="font-brand leading-none text-2xl tracking-tight">
<span>folio.</span>
</div>
</a>
<div class="flex items-center bg-neutral-50 border-1 border-neutral-200 rounded-full px-2 py-1">
<span class="font-medium leading-none text-sm">beta</span>
</div>
</div>
<div class="hidden md:flex items-center gap-1">
{{#site.navbar.links}}
<a href="{{link}}" class="inline-flex items-center px-3 py-2 rounded-lg hover:bg-neutral-100 text-neutral-900 text-sm">
<span class="font-medium">{{text}}</span>
</a>
{{/site.navbar.links}}
</div>
<div class="flex items-center gap-2">
<div class="hidden md:flex items-center">
<a href="./app" class="cursor-pointer flex items-center px-4 py-2 rounded-full bg-neutral-950 hover:bg-neutral-800 no-underline text-sm">
<strong class="text-white">Try Folio</strong>
<i class="text-white italic">- it's free!</i>
</a>
</div>
<a id="menu-open" class="flex md:hidden items-center text-neutral-950 hover:bg-neutral-100 cursor-pointer p-2 rounded-lg">
<svg data-menu="open" class="w-6 h-6">
<use xlink:href="sprite.svg#bars"></use>
</svg>
<svg data-menu="close" class="hidden w-6 h-6">
<use xlink:href="sprite.svg#close"></use>
</svg>
</a>
</div>
</div>
</header>
<!-- Menu -->
<div id="menu" class="hidden md:hidden bg-white px-4 py-4 border-b border-neutral-200 mb-4">
{{#site.navbar.links}}
<div class="first:hidden h-0 w-full border-b border-neutral-200"></div>
<a href="{{link}}" class="block py-4 text-neutral-950 hover:bg-neutral-50 rounded-lg">
<span class="text-xl font-medium">{{text}}</span>
</a>
{{/site.navbar.links}}
<div class="mt-4 w-full">
<a href="./app" class="cursor-pointer flex items-center justify-center px-4 py-3 rounded-lg bg-neutral-950 hover:bg-neutral-800 no-underline text-lg">
<strong class="text-white">Try Folio</strong>
<i class="text-white italic">- it's free!</i>
</a>
</div>
</div>
{{/ne}}
<!-- Main content -->
<main class="w-full">
{{#eq page.data.layout "default"}}
<div class="w-full max-w-7xl mx-auto px-8">
{{>content}}
</div>
{{/eq}}
{{#eq page.data.layout "page"}}
<div class="w-full max-w-5xl mx-auto px-8 py-16 markup">
{{>content}}
</div>
{{/eq}}
{{#eq page.data.layout "empty"}}
{{>content}}
{{/eq}}
</main>
<!--Footer -->
{{#ne page.data.layout "empty"}}
<footer class="w-full bg-white border-t border-neutral-100">
<div class="w-full max-w-7xl mx-auto px-8 pt-10 pb-20">
<div class="font-brand leading-none text-2xl mb-3 tracking-tight text-neutral-950">
<span>folio.</span>
</div>
<div class="flex gap-3 mb-4 text-sm">
{{#site.footer.links}}
<a href="{{link}}" target="{{target}}" class="hover:underline text-neutral-900 font-bold">{{text}}</a>
{{/site.footer.links}}
</div>
<div class="mb-1 text-sm">
<span>Designed and built by <a href="https://josemi.xyz" class="hover:underline text-neutral-900 font-bold">Josemi</a> in Valencia, Spain. </span>
<span>Source code is available on <a href="{{site.repository}}" class="hover:underline text-neutral-900 font-bold">GitHub</a>.</span>
</div>
<div class="text-xs text-neutral-500">
<span>This site does not track you.</span>
</div>
</div>
</footer>
{{/ne}}
<script type="text/javascript">
// const menu = document.querySelector(`div#menu`);
const toggleMenu = () => {
document.querySelector(`div#menu`).classList.toggle("hidden");
Array.from(document.querySelectorAll(`a#menu-open > svg`)).forEach(element => {
element.classList.toggle("hidden");
});
};
document.querySelector(`a#menu-open`).addEventListener("click", e => {
e.preventDefault();
toggleMenu();
});
Array.from(menu.querySelectorAll("a")).forEach(element => {
element.addEventListener("click", () => toggleMenu());
});
</script>
{{#each assets.js}}
<script defer src="{{.}}"></script>
{{/each}}
</body>
</html>