-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d6c9cc
commit edbb8a1
Showing
39 changed files
with
521 additions
and
811 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
Binary file not shown.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import styled from "@emotion/styled"; | ||
import { styled } from "@/css"; | ||
import { Box } from "@/components/Box"; | ||
|
||
export type AutoGrid = Box & { | ||
min?: string; | ||
max?: string; | ||
}; | ||
|
||
export const AutoGrid = styled(Box)<AutoGrid>` | ||
display: grid; | ||
grid-template-columns: ${({ min = "200px", max = "1fr" }) => | ||
`repeat(auto-fit, minmax(${min}, ${max}))`}; | ||
`; | ||
export const AutoGrid = styled(Box, { | ||
display: "grid", | ||
gap: "10px", | ||
gridTemplateColumns: "repeat(auto-fit, minmax(200px, 1fr))", | ||
}); |
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,24 +1,3 @@ | ||
import { | ||
grid, | ||
GridProps, | ||
margin, | ||
MarginProps, | ||
padding, | ||
PaddingProps, | ||
background, | ||
BackgroundProps, | ||
border, | ||
BorderProps, | ||
compose, | ||
} from "styled-system"; | ||
import styled from "@emotion/styled"; | ||
import { styled } from "@/css"; | ||
|
||
export type Box = { as?: string } & GridProps & | ||
MarginProps & | ||
PaddingProps & | ||
BackgroundProps & | ||
BorderProps; | ||
|
||
export const Box = styled.div<Box>( | ||
compose(grid, margin, padding, background, border) | ||
); | ||
export const Box = styled.div({}); |
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,14 +1,14 @@ | ||
import styled from "@emotion/styled"; | ||
import { styled } from "@/css"; | ||
|
||
export const GhostButton = styled.button` | ||
text-align: left; | ||
border: none; | ||
background: transparent; | ||
color: var(--foreground); | ||
padding: 0; | ||
margin: 0; | ||
line-height: 0; | ||
display: block; | ||
width: 100%; | ||
font-size: var(--sz4); | ||
`; | ||
export const GhostButton = styled.button({ | ||
textAlign: "left", | ||
border: "none", | ||
background: "transparent", | ||
color: "$foreground", | ||
padding: "0", | ||
margin: "0", | ||
lineHeight: 0, | ||
display: "block", | ||
width: "100%", | ||
fontSize: "16px", | ||
}); |
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,54 +1,45 @@ | ||
import styled from "@emotion/styled"; | ||
import { styled } from "@/css"; | ||
import { truncate } from "@/css/utils"; | ||
import { Gradient } from "@/components/Gradient"; | ||
|
||
export const Container = styled.div` | ||
border-radius: var(--sz1); | ||
`; | ||
export const Cover = styled(Gradient, { | ||
display: "grid", | ||
placeItems: "center", | ||
borderRadius: "$1 $1 0 0", | ||
}); | ||
|
||
export interface Cover { | ||
hash: string; | ||
} | ||
export const Title = styled.h2({ | ||
fontSize: "$2", | ||
fontWeight: 500, | ||
margin: "0", | ||
marginBottom: "$1", | ||
color: "fg", | ||
...truncate, | ||
}); | ||
|
||
export const Cover = styled(Gradient)` | ||
display: grid; | ||
place-items: center; | ||
border-radius: var(--sz2) var(--sz2) 0 0; | ||
`; | ||
export const Subtitle = styled.h3({ | ||
fontSize: "$1", | ||
fontWeight: 400, | ||
textTransform: "uppercase", | ||
color: "$accents-4", | ||
margin: "0", | ||
}); | ||
|
||
export const Title = styled.h3` | ||
font-size: var(--sz4); | ||
font-weight: 500; | ||
margin: 0; | ||
margin-bottom: var(--sz1); | ||
color: var(--accents-7); | ||
${truncate} | ||
`; | ||
export const Body = styled.div({ | ||
padding: "$3", | ||
border: "1px solid $accents-2", | ||
borderTop: "0", | ||
borderRadius: "0 0 $1 $1", | ||
display: "grid", | ||
gridTemplateColumns: "1fr auto", | ||
gridGap: "10px", | ||
alignItems: "center", | ||
}); | ||
|
||
export const Subtitle = styled.h4` | ||
font-size: var(--sz3); | ||
font-weight: 300; | ||
text-transform: uppercase; | ||
color: var(--accents-4); | ||
margin: 0; | ||
${truncate} | ||
`; | ||
|
||
export const Body = styled.div` | ||
padding: var(--sz3); | ||
border: 1px solid var(--accents-2); | ||
border-top: 0; | ||
border-radius: 0 0 var(--sz2) var(--sz2); | ||
display: grid; | ||
grid-template-columns: 1fr auto; | ||
grid-gap: 10px; | ||
align-items: center; | ||
`; | ||
|
||
export const Button = styled.button` | ||
color: var(--background); | ||
margin: 0; | ||
padding: 0; | ||
border: none; | ||
background: transparent; | ||
`; | ||
export const Button = styled.button({ | ||
color: "$background", | ||
margin: "0", | ||
padding: "0", | ||
border: "none", | ||
background: "transparent", | ||
}); |
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,26 +1,24 @@ | ||
import styled from "@emotion/styled"; | ||
import { styled } from "@/css"; | ||
import { hidden } from "@/css/utils"; | ||
|
||
export const Container = styled.header` | ||
display: grid; | ||
padding: var(--sz3) var(--sz4); | ||
grid-gap: var(--sz4); | ||
grid-template-columns: auto 1fr; | ||
align-items: center; | ||
border-bottom: 1px solid var(--accents-2); | ||
`; | ||
export const Container = styled.header({ | ||
display: "grid", | ||
padding: "$3 $4", | ||
gridTemplateColumns: "auto 1fr", | ||
alignItems: "center", | ||
borderBottom: "1px solid $accents-2", | ||
}); | ||
|
||
export const Navigation = styled.nav` | ||
display: grid; | ||
grid-gap: var(--sz3); | ||
grid-auto-flow: column; | ||
justify-content: right; | ||
align-items: center; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
`; | ||
export const Navigation = styled.nav({ | ||
display: "grid", | ||
gridGap: "$3", | ||
gridAutoFlow: "column", | ||
justifyContent: "right", | ||
alignItems: "center", | ||
listStyle: "none", | ||
margin: "0", | ||
padding: "0", | ||
}); | ||
|
||
export const Hidden = styled.span` | ||
${hidden} | ||
`; | ||
//@ts-ignore | ||
export const Hidden = styled.span(hidden); |
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,9 +1,9 @@ | ||
import styled from "@emotion/styled"; | ||
import { styled } from "@/css"; | ||
|
||
export const Layout = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
display: grid; | ||
position: fixed; | ||
grid-template-rows: auto 1fr auto; | ||
`; | ||
export const Layout = styled.div({ | ||
width: "100%", | ||
height: "100%", | ||
display: "grid", | ||
position: "fixed", | ||
gridTemplateRows: "auto 1fr auto" | ||
}); |
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
Oops, something went wrong.