Skip to content

Commit

Permalink
Updates 3/10/2021
Browse files Browse the repository at this point in the history
  • Loading branch information
chesteralan committed Mar 9, 2021
1 parent 0574637 commit ce91375
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/templates/AdvertorialType4/Footer/Footer.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const Container = styled.div`
font-weight: 200;
padding-top: 20px;
padding-bottom: 20px;
padding-left: 1rem;
padding-right: 1rem;
`;
export const Row1 = styled.div`
display:block;
Expand Down
11 changes: 6 additions & 5 deletions src/templates/AdvertorialType4/Heading/Heading.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import React from 'react'
import React, { useContext } from 'react'
import * as S from "./Heading.style"
import { useStaticQuery, graphql } from "gatsby"
import PageContext from "../../../context/PageContext"

export default ({ heading }) => {

const { redirectDestination } = useContext(PageContext)
const data = useStaticQuery(graphql`
{
file(base: {eq: "author-avatar.png"}) {
childImageSharp {
fixed {
fixed(height: 50) {
src
}
}
Expand All @@ -22,14 +23,14 @@ export default ({ heading }) => {
<>
<S.Headline>{heading}</S.Headline>
<S.Categorization>
<S.Title>DOG / ELDERLY</S.Title>
<S.Title href={redirectDestination}>DOG / ELDERLY</S.Title>
<S.Line />
</S.Categorization>
<S.Author>
<S.Avatar src={ImageSrc} />
<S.Meta>
BY:
<S.Name>
<S.Name href={redirectDestination}>
REBECCA T
</S.Name>
<S.Date>
Expand Down
12 changes: 10 additions & 2 deletions src/templates/AdvertorialType4/Heading/Heading.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ align-items: center;
margin-bottom: 15px;
margin-top: 0;
`
export const Title = styled.div`
export const Title = styled.a`
color: #E26447;
font-weight: 600;
font-size: 16px;
text-transform: uppercase;
text-decoration: none;
&:hover {
text-decoration: underline;
}
`
export const Line = styled.div`
background: #E26447;
Expand Down Expand Up @@ -62,11 +66,15 @@ color: #969696;
flex: 1 1;
font-weight:bold;
`
export const Name = styled.span`
export const Name = styled.a`
margin: 0 5px;
color: #E26447;
font-weight: 600;
font-size: 16px;
text-transform: uppercase;
text-decoration: none;
&:hover {
text-decoration: underline;
}
`
export const Date = styled.span``
22 changes: 22 additions & 0 deletions src/templates/AdvertorialType4/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
color: #424242;
margin-bottom: 100px;

@media screen and (max-width:890px) {
margin-bottom: 20px;
}

h1, h2, h3, h4, h5, h6 {
text-align: inherit;
}
Expand Down Expand Up @@ -65,6 +69,24 @@
margin: 0;
}

.toc-box {
background: #E5E8F1;
border: none;
padding: 20px 30px;
margin: 30px 0;
& ul {
@media screen and (max-width:890px) {
padding-inline-start: 0px;
}
}
& li {
list-style-type: none;
margin-bottom: 10px;
& p {
margin: 0;
}
}
}


}
Expand Down

0 comments on commit ce91375

Please sign in to comment.