Skip to content

Commit

Permalink
added pp and disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouncer27 committed Jun 29, 2023
1 parent 2b80f39 commit 8c58efb
Show file tree
Hide file tree
Showing 3 changed files with 381 additions and 5 deletions.
27 changes: 25 additions & 2 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import styled from "styled-components"
import { graphql, useStaticQuery } from "gatsby"
import { B1White, colors, medWrapper } from "../styles/helpers"
import { Link, graphql, useStaticQuery } from "gatsby"
import { B1White, B2White, colors, medWrapper } from "../styles/helpers"

const getData = graphql`
{
Expand All @@ -28,6 +28,13 @@ const Footer = () => {
.footerContentContent,
}}
/>
<div className="foot-links">
<p>
<Link to="/privacy-policy">Privacy Policy</Link>
{" | "}
<Link to="/disclaimer">Disclaimer</Link>
</p>
</div>
</div>
</StyledFooter>
)
Expand Down Expand Up @@ -59,6 +66,22 @@ const StyledFooter = styled.footer`
color: rgba(255, 255, 255, 0.55);
}
}
.foot-links {
width: 100%;
text-align: center;
p {
${B2White};
margin: 0;
color: rgba(255, 255, 255, 0.55);
}
a {
${B2White};
color: rgba(255, 255, 255, 0.55);
}
}
`

export default Footer
316 changes: 316 additions & 0 deletions src/components/templates/default/MainContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
import React from "react"
import styled from "styled-components"
import {
standardWrapper,
colors,
fonts,
H1Black,
H2Black,
H3Black,
H4Black,
B1Black,
} from "../../../styles/helpers"

const MainContent = ({ data }) => {
return (
<StyledSection>
<div className="wrapper">
<div className="title">
<h1>{data.mainContentTitle}</h1>
</div>
<div
className="wysiwyg"
dangerouslySetInnerHTML={{
__html: data.mainContentWysiwyg,
}}
/>
</div>
</StyledSection>
)
}

const StyledSection = styled.section`
.wrapper {
${standardWrapper};
}
.title {
width: 100%;
h1 {
${H1Black};
}
}
.wysiwyg {
width: 100%;
max-width: 100%;
margin-right: auto;
margin-left: auto;
border-bottom: 0.1rem solid ${colors.greyMed};
&::after {
display: table;
clear: both;
content: "";
}
.post-edit-link {
font-size: 1.6rem;
}
blockquote {
display: block;
width: 95%;
margin: 1.5rem auto 2rem;
padding: 0 2.25rem;
border-right: 5px solid ${colors.grey};
border-left: 5px solid ${colors.grey};
font-size: 1.6rem;
font-style: $italic;
@media (min-width: 768px) {
width: 80%;
margin: 5em auto;
padding: 0 3rem;
}
p {
margin-bottom: 0;
&::before,
&::after {
font-family: ${fonts.fontAwesome};
color: ${colors.colorSecondary};
}
&::before {
padding-right: 0.25em;
content: "\f10d";
}
&::after {
padding-left: 0.25em;
content: "\f10e";
}
}
}
hr {
display: block;
height: 0.25em;
background-color: ${colors.colorSecondary};
}
ul {
margin-bottom: 2.5rem;
li {
${B1Black};
position: relative;
margin-bottom: 0.25em;
padding-left: 0.75em;
font-size: 1.6rem;
&::before {
font-family: ${fonts.fontAwesome};
position: absolute;
top: 1.2em;
left: 0;
padding-right: 0.75em;
color: rgba($grey, 0.75);
font-size: 0.75rem;
content: "\f111";
}
}
}
ol {
margin-bottom: 2.5rem;
margin-left: 1.75rem;
font-size: 1.6rem;
li {
${B1Black};
position: relative;
margin-bottom: 0.75em;
font-size: 1.6rem;
margin-bottom: 0.25rem;
list-style-position: outside;
list-style-type: decimal;
}
}
strong {
font-weight: bold;
}
em {
font-style: $italic;
}
h1,
h2 {
${H1Black};
}
h3 {
${H2Black};
}
h4 {
${H3Black}
}
h5 {
${H4Black}
}
h6 {
${H4Black}
}
p {
${B1Black};
a {
${B1Black};
transition: all 0.3s;
font-weight: bold;
font-size: 1em;
&:hover {
color: ${colors.colorSecondary};
}
}
}
a {
${B1Black};
transition: all 0.3s;
color: #636466;
font-weight: bold;
font-size: 1em;
&:hover {
color: ${colors.colorPrimary};
}
}
del {
color: ${colors.colorSecondary};
}
/* WordPress Core */
.alignnone {
margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
display: block;
margin: 2rem auto;
}
.alignright {
float: right;
margin: 5px 0 20px 20px;
}
.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
a img.alignright {
float: right;
margin: 5px 0 20px 20px;
}
a img.alignnone {
margin: 5px 20px 20px 0;
}
a img.alignleft {
float: left;
margin: 5px 20px 20px 0;
}
a img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%; /* Image does not overflow the content area */
padding: 5px 3px 10px;
text-align: center;
}
.wp-caption.alignnone {
margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
margin: 5px 0 20px 20px;
}
.wp-caption img {
border: 0 none;
height: auto;
margin: 0;
max-width: 98.5%;
padding: 0;
width: auto;
}
.wp-caption p.wp-caption-text {
font-size: 1.1rem;
line-height: 17px;
margin: 0;
padding: 0 4px 5px;
}
/* Text meant only for screen readers. */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
}
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar. */
}
img {
width: auto;
}
}
`

export default MainContent

0 comments on commit 8c58efb

Please sign in to comment.