Skip to content

Commit

Permalink
Add remotesetups link
Browse files Browse the repository at this point in the history
  • Loading branch information
ajzeller committed Jul 18, 2020
1 parent 166b2fd commit d543625
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/charts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useContext } from "react";
import styled from 'styled-components'
import { SpotifyContext } from '../lib/spotify'
import { IoIosPlay, IoIosArrowForward } from "react-icons/io";
import RemoteSetups from './remoteSetups'

const Container = styled.div`
display: grid;
Expand Down Expand Up @@ -214,7 +215,9 @@ const Charts = () => {
<ChartColumn className='artists' contentType={contentType}>
{artists}
</ChartColumn>

</Container>
<RemoteSetups />
</>
)
}
Expand Down
13 changes: 13 additions & 0 deletions components/login.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import styled from 'styled-components'
import RemoteSetups from './remoteSetups'

const Container = styled.div`
display: grid;
Expand Down Expand Up @@ -46,6 +47,17 @@ const GreenButton = styled.a`
}
`

const AdPanel = styled.div`
margin: 50px 0 0 0;
border: 2px solid ${props => props.theme.theme.border.secondary};
padding: 10px 30px;
border-radius: 15px;
a {
color: ${props => props.theme.theme.colors.spotifyBlue};
}
`

const Login = () => {
return(
<Container>
Expand All @@ -58,6 +70,7 @@ const Login = () => {
You can also save your top tracks as a playlist.
</Tagline>
<GreenButton href='/login' >Connect With Spotify</GreenButton>
<RemoteSetups />
</Container>
)
}
Expand Down
31 changes: 31 additions & 0 deletions components/remoteSetups.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import styled from 'styled-components'

const AdPanel = styled.div`
margin: 50px 0 0 0;
border: 2px solid ${props => props.theme.theme.border.secondary};
padding: 10px 30px;
border-radius: 15px;
a {
color: ${props => props.theme.theme.colors.spotifyBlue};
}
`

const Container = styled.div`
display: grid;
justify-items: center;
`

const RemoteSetups = () => {

return(
<Container>
<AdPanel>
Listening and working from home? Checkout my other project, <a href="https://remotesetups.com" target="_blank">RemoteSetups.com</a> for desk setup inspiration, gear lists, and tips.
</AdPanel>
</Container>
)

}

export default RemoteSetups

0 comments on commit d543625

Please sign in to comment.