diff --git a/src/assets/img/dark-forest.png b/src/assets/img/dark-forest.png deleted file mode 100644 index 1dc48f9..0000000 Binary files a/src/assets/img/dark-forest.png and /dev/null differ diff --git a/src/assets/pages/about/index.js b/src/assets/pages/about/index.js index 852f5c0..5ec8f3a 100644 --- a/src/assets/pages/about/index.js +++ b/src/assets/pages/about/index.js @@ -114,7 +114,7 @@ function Index() { return ( - + diff --git a/src/assets/pages/about/style.js b/src/assets/pages/about/style.js index 4c1325d..0deaf44 100644 --- a/src/assets/pages/about/style.js +++ b/src/assets/pages/about/style.js @@ -1,8 +1,5 @@ import styled from "styled-components"; -//Assets -import darkForest from '../../img/dark-forest.png'; - /* Palette: #454545 @@ -15,7 +12,7 @@ import darkForest from '../../img/dark-forest.png'; export const Main = styled.main` width: 100%; min-height: 100vh; - background: url(${darkForest}) no-repeat center/cover; + background: url(${props => props.background}) no-repeat center/cover; position: relative; z-index: 0; diff --git a/src/assets/services/querys/aboutQuery/index.js b/src/assets/services/querys/aboutQuery/index.js index e03cb3c..daa17b2 100644 --- a/src/assets/services/querys/aboutQuery/index.js +++ b/src/assets/services/querys/aboutQuery/index.js @@ -1,38 +1,41 @@ import { gql } from "@apollo/client"; export const ABOUT_QUERY = gql` - query { - about(where: {slug: "about"}) { - aboutTitle - aboutText - workTitle - works { - workDescription - workEnterprise - enterpriseSvg { - url - } - workStart - workEnd - calendarSvg { - url - } - } - educationTitle - educations { - educationDescription - educationEnterprise - enterpriseSvg { - url - } - educationStart - educationEnd - calendarSvg { - url - } - } + query { + about(where: { slug: "about" }) { + aboutTitle + aboutText + workTitle + works { + workDescription + workEnterprise + enterpriseSvg { + url } - } + workStart + workEnd + calendarSvg { + url + } + } + educationTitle + educations { + educationDescription + educationEnterprise + enterpriseSvg { + url + } + educationStart + educationEnd + calendarSvg { + url + } + } + backgroud { + url + } + } + } `; export default ABOUT_QUERY; \ No newline at end of file