-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more reponsive styling & git version in build
- Loading branch information
1 parent
b43fb3a
commit 858a13f
Showing
13 changed files
with
168 additions
and
21 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,28 @@ | ||
import styled from "styled-components"; | ||
import Link from "./basic/Link"; | ||
import { FC } from "react"; | ||
|
||
export interface CIProps { | ||
repository: string; | ||
sha?: string; | ||
version: string; | ||
} | ||
|
||
const SourceDisplay: FC<CIProps> = ({ repository, sha, version }) => ( | ||
<> | ||
{repository}@ | ||
{sha ? ( | ||
<RefLink href={`https://github.com/${repository}/tree/${sha}/web`}> | ||
{version} | ||
</RefLink> | ||
) : ( | ||
<span>{version}</span> | ||
)} | ||
</> | ||
); | ||
|
||
const RefLink = styled(Link).attrs({ underline: "always" })` | ||
color: ${(p) => p.theme.accent}; | ||
`; | ||
|
||
export default SourceDisplay; |
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,17 @@ | ||
// smartphones, portrait iPhone, portrait 480x320 phones (Android) | ||
export const TINY = "(min-width:320px)"; | ||
|
||
// smartphones, Android phones, landscape iPhone | ||
export const SMALL = "(min-width:480px)"; | ||
|
||
// portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) | ||
export const SMALLER = "(min-width:600px)"; | ||
|
||
// tablet, landscape iPad, lo-res laptops ands desktops | ||
export const BIGGER = "(min-width:801px)"; | ||
|
||
// big landscape tablets, laptops, and desktops | ||
export const BIG = "(min-width:1025px)"; | ||
|
||
// hi-res laptops and desktops | ||
export const HUGE = "(min-width:1281px)"; |
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