-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from salsita/147-game-title
gh-147: Add game title in the header
- Loading branch information
Showing
15 changed files
with
120 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import logoSmall from './../../media/logo-small.png' | ||
import logo from './../../media/logo.png' | ||
import { Link } from 'react-router-dom' | ||
|
||
export const LogoComponent = ({ id, className }) => ( | ||
<span id={id} className={className}> | ||
<Link id='smalllogo' to={'/'}> | ||
<img src={logoSmall} alt="logo" /> | ||
</Link> | ||
<Link id='largelogo' to={'/'}> | ||
<img src={logo} alt="logo" /> | ||
</Link> | ||
</span> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const capitalize = str => `${str.charAt(0).toUpperCase()}${str.slice(1).toLowerCase()}` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import styled from 'styled-components' | ||
import { variables } from './../variables' | ||
|
||
export const Button = styled.button` | ||
background: var(--cYellow); | ||
export const SimpleButton = styled.button` | ||
border: none; | ||
padding: 15px 20px; | ||
border-radius: 8px; | ||
width: 100%; | ||
font-weight: 700; | ||
color: var(--cFont); | ||
@media (min-width: ${variables.bpMedium}) { | ||
width: 300px; | ||
} | ||
&:hover { | ||
cursor: pointer; | ||
} | ||
` | ||
|
||
export const Button = styled(SimpleButton)` | ||
background: var(--cYellow); | ||
padding: 15px 20px; | ||
width: 100%; | ||
@media (min-width: ${variables.bpMedium}) { | ||
width: 300px; | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
import styled from 'styled-components' | ||
import { variables } from './../variables' | ||
import { LogoComponent } from '../../app/components/logo' | ||
|
||
export const Logo = styled.span` | ||
position: absolute; | ||
left: 0; | ||
img { | ||
width: auto; | ||
height: 50px; | ||
position: absolute; | ||
left: 10px; | ||
@media (max-width: ${variables.bpMedium}) { | ||
width: 100px; | ||
height: auto; | ||
margin: 5px 0; | ||
export const Logo = styled(LogoComponent)` | ||
#smalllogo { | ||
display: none | ||
} | ||
@media (max-width: ${variables.bpSmall}) { | ||
#largelogo { | ||
display: none; | ||
} | ||
#smalllogo { | ||
display: inherit; | ||
} | ||
} | ||
height: 100%; | ||
a,img { | ||
height: 100%; | ||
} | ||
a { | ||
padding: 0px; | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters