Skip to content

Commit

Permalink
extra stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
thenry3 committed Dec 8, 2019
1 parent d89a9ff commit 43a3e86
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'
import styled from 'react-emotion'
import { css } from 'react-emotion'
import Picture from '../../images/graybox.png'
import Recycle from '../../images/recycle.svg'

const OutDiv = styled('div')`
display: flex;
Expand All @@ -13,8 +12,6 @@ const OutDiv = styled('div')`
align-items: center;
text-align: center;
color: #fefbf4;
background-color: #6d786a;
background-image: url(${Recycle});
flex-direction: column;
padding: 1.5vh;
@media only screen and (max-width: 800px) {
Expand Down
1 change: 1 addition & 0 deletions src/components/Intro/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const NameSpace = styled('div')`
`

const Content = styled('div')`
margin-top: 3vh;
font-family: Heebo;
font-size: 18px;
line-height: 26px;
Expand Down
40 changes: 32 additions & 8 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ import {
XPosition,
YPosition,
} from '@dailybruin/lux'
import styled from 'react-emotion'
import { css } from 'react-emotion'
import Card from '../components/Card/Card'
import Intro from '../components/Intro/Intro'
import Cover from '../components/Cover/Cover'
import Recycle from '../images/recycle.svg'

export const query = graphql`
query {
Expand Down Expand Up @@ -40,6 +43,20 @@ export const query = graphql`
}
`

const Page = styled('div')`
background-color: #6d786a;
background-image: url(${Recycle});
display: flex;
flex-direction: column;
align-items: center;
`

const Divide = styled('hr')`
background: #fefbf4;
width: 80%;
margin-top: 7vh;
`

const IndexPage = ({ data }) => (
<>
{console.log(data.kerckhoffArticle.Categories)}
Expand All @@ -49,14 +66,21 @@ const IndexPage = ({ data }) => (
PageTitle={data.kerckhoffArticle.PageTitle}
Explainer={data.kerckhoffArticle.Explainer}
/>
{data.kerckhoffArticle.Categories.map(category => (
<Card {...category} />
))}
{/* <Article dropcap={true} content={data.kerckhoffArticle.content} /> */}
<Footer
developers="Henry Trinh, Karl Huang, Jay Park, Matthew Ko, Max Wu"
copyrightYear={2019}
/>
<Page>
{data.kerckhoffArticle.Categories.map(category => (
<Card {...category} />
))}
<Divide />
<Footer
developers="Henry Trinh, Karl Huang, Jay Park, Matthew Ko, Max Wu"
copyrightYear={2019}
style={css`
margin-bottom: 0px;
padding-bottom: 30px;
color: #fefbf4;
`}
/>
</Page>
</>
)

Expand Down

0 comments on commit 43a3e86

Please sign in to comment.