Skip to content

Commit

Permalink
#13 updating alt and adding color variable to overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
samgildea committed Apr 17, 2021
1 parent 8f4a507 commit 6b9c7df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/footer/footer-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "../../style/variables"

export const FooterContainer = styled.div`
background-color: rgb(0, 0, 0, 0.55);
background-color: ${colors.black_overlay};
width: 100%;
color: ${colors.white900};
position: absolute;
Expand Down
3 changes: 2 additions & 1 deletion src/components/footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function footer({ data }) {
sock_description
sock_title
address
footer_image_alt
footer_image {
url
}
Expand All @@ -53,7 +54,7 @@ export default function footer({ data }) {
<FooterSection>
<FooterImage>
<img
alt="PowerHouse house footer background image"
alt={data.prismicFooter.data.footer_image_alt}
src={data.prismicFooter.data.footer_image.url}
/>
</FooterImage>
Expand Down
1 change: 1 addition & 0 deletions src/style/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const colors = {
lighterblue900: "#6EA8C0",
softblue900: "#ECF3F7",
gray900: "#585858",
black_overlay: "rgb(0, 0, 0, 0.55)"
}

export default colors

0 comments on commit 6b9c7df

Please sign in to comment.