Add tailwind v2 CSS framework
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
<h1>Contact Page</h1>
|
||||
<p>To get in touch, email me at <a href="mailto:example@example.com">example@example.com</a></p>
|
||||
<!doctype html>
|
||||
<html>
|
||||
{{template "head" .}}
|
||||
<body class="px-6">
|
||||
<h1 class="py-4 text-4xl semibold tracking-tight font-sans">Contact Page</h1>
|
||||
<p>To get in touch, email me at <a class="underline" href="mailto:example@example.com">example@example.com</a></p>
|
||||
{{template "footer" .}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,10 +1,24 @@
|
||||
<h1>FAQ</h1>
|
||||
<hr>
|
||||
{{range .}}
|
||||
{{template "qa" .}}
|
||||
{{end}}
|
||||
<!doctype html>
|
||||
<html>
|
||||
{{template "head" .}}
|
||||
<body class="px-6">
|
||||
<h1 class="py-4 text-4xl semibold tracking-tight">FAQ</h1>
|
||||
<hr class="pb-4">
|
||||
<div class="flex flex-col gap-8">
|
||||
{{range .}}
|
||||
{{template "qa" .}}
|
||||
{{end}}
|
||||
</div>
|
||||
{{template "footer" .}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
{{define "qa"}}
|
||||
<h3>{{.Question}}</h3>
|
||||
<p>{{.Answer}}</p>
|
||||
<div>
|
||||
<h3 class="block text-lg semibold">{{.Question}}</h3>
|
||||
<p class="block text-sm ml-2">{{.Answer}}</p>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
@@ -1,15 +1,26 @@
|
||||
<h1>Welcome to my awesome site!</h1>
|
||||
{{template "lorem-ipsum"}}
|
||||
{{template "lorem-ipsum"}}
|
||||
{{template "lorem-ipsum"}}
|
||||
<!doctype html>
|
||||
<html>
|
||||
{{template "head" .}}
|
||||
<body class="px-6">
|
||||
<h1 class="py-4 text-4xl semibold tracking-tight">
|
||||
Welcome to my awesome site!
|
||||
</h1>
|
||||
<div class="flex flex-col gap-4">
|
||||
{{template "lorem-ipsum"}}
|
||||
{{template "lorem-ipsum"}}
|
||||
{{template "lorem-ipsum"}}
|
||||
</div>
|
||||
{{template "footer" .}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{{define "lorem-ipsum"}}
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
||||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
|
||||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
||||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
|
||||
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
|
||||
in culpa qui officia deserunt mollit anim id est laborum.
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
||||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
|
||||
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
||||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
|
||||
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
|
||||
in culpa qui officia deserunt mollit anim id est laborum.
|
||||
</p>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user