mirror of
https://github.com/safing/web
synced 2025-04-16 17:09:09 +00:00
Add layout and styling for legal pages
This commit is contained in:
parent
6a99002028
commit
e24d91872c
6 changed files with 67 additions and 8 deletions
_layouts
_sass
assets/css
privacy
terms
19
_layouts/legal_page.html
Normal file
19
_layouts/legal_page.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
layout: page
|
||||
---
|
||||
|
||||
<section style="padding-top: 10rem; padding-bottom: 10rem;" id="legal-page">
|
||||
<div class="items-center h-full">
|
||||
<div class="container mx-auto px-8 sm:px-0 flex">
|
||||
<div class="max-w-screen-lg mx-auto px-4 sm:px-6 lg:flex">
|
||||
<div class="py-12 bg-white">
|
||||
<div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<content>
|
||||
{{ content }}
|
||||
</content>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
layout: page_column
|
||||
---
|
||||
<span class="markdownpage">
|
||||
{{ content }}
|
||||
</span>
|
45
_sass/_legal_pages.scss
Normal file
45
_sass/_legal_pages.scss
Normal file
|
@ -0,0 +1,45 @@
|
|||
#legal-page content {
|
||||
p {
|
||||
padding-top: 1.8rem;
|
||||
color: #898989;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: black;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
opacity: .5;
|
||||
transition-duration: 150ms;
|
||||
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
||||
}
|
||||
|
||||
a {
|
||||
--text-opacity: 1;
|
||||
color: #667eea;
|
||||
color: rgba(102, 126, 234, var(--text-opacity));
|
||||
text-decoration: inherit;
|
||||
background-color: transparent;
|
||||
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
|
||||
}
|
||||
|
||||
a strong {
|
||||
--text-opacity: 1;
|
||||
color: #667eea;
|
||||
color: rgba(102, 126, 234, var(--text-opacity));
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding-top: 4rem;
|
||||
font-weight: 800;
|
||||
font-size: 1.875rem;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
ul li {
|
||||
padding-top: 0.4rem;
|
||||
}
|
||||
}
|
|
@ -2,3 +2,4 @@
|
|||
---
|
||||
|
||||
@import "global";
|
||||
@import "legal_pages";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: page_markdown
|
||||
layout: legal_page
|
||||
title: Privacy Policy
|
||||
heading: Privacy Policy
|
||||
---
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: page_markdown
|
||||
layout: legal_page
|
||||
title: Terms of Service
|
||||
heading: Terms of Service
|
||||
---
|
||||
|
|
Loading…
Add table
Reference in a new issue