-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#18): implement initial world creation flow
- Loading branch information
1 parent
d27d31e
commit eed6918
Showing
159 changed files
with
3,876 additions
and
762 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+30.4 KB
.yarn/cache/@vanilla-extract-recipes-npm-0.5.2-8a609484e7-0ec9965ec7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,55 @@ | ||
import { recipe } from '@vanilla-extract/recipes'; | ||
|
||
export const container = recipe({ | ||
base: { | ||
alignSelf: 'center', | ||
color: '#0087ff', | ||
display: 'flex', | ||
fontFamily: 'Josefin Sans, sans-serif', | ||
fontWeight: 500, | ||
lineHeight: 1, | ||
textTransform: 'uppercase', | ||
}, | ||
variants: { | ||
size: { | ||
small: { | ||
fontSize: '24px', | ||
}, | ||
medium: { | ||
fontSize: '48px', | ||
}, | ||
large: { | ||
fontSize: '72px', | ||
}, | ||
}, | ||
}, | ||
defaultVariants: { | ||
size: 'medium', | ||
}, | ||
}); | ||
|
||
export const icon = recipe({ | ||
base: {}, | ||
variants: { | ||
size: { | ||
small: { | ||
height: '22px', | ||
marginTop: '-2px', | ||
width: '22px', | ||
}, | ||
medium: { | ||
height: '42px', | ||
marginTop: '-2px', | ||
width: '42px', | ||
}, | ||
large: { | ||
height: '68px', | ||
marginTop: '-6px', | ||
width: '68px', | ||
}, | ||
}, | ||
}, | ||
defaultVariants: { | ||
size: 'medium', | ||
}, | ||
}); |
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,23 @@ | ||
import clsx from 'clsx'; | ||
import { RecipeVariants } from '@vanilla-extract/recipes'; | ||
import * as styles from './brand.css.ts'; | ||
|
||
type Props = { | ||
className?: string; | ||
} & RecipeVariants<typeof styles.container>; | ||
|
||
export function Brand(props: Props) { | ||
return ( | ||
<h1 | ||
className={clsx(styles.container({ size: props.size }), props.className)} | ||
> | ||
Chron | ||
<img | ||
alt="Chrononomicon brand icon" | ||
src="/assets/images/brand-icon-light.png" | ||
className={styles.icon({ size: props.size })} | ||
/> | ||
nomicon | ||
</h1> | ||
); | ||
} |
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,41 +1,52 @@ | ||
import { style, styleVariants } from '@vanilla-extract/css'; | ||
import { recipe } from '@vanilla-extract/recipes'; | ||
|
||
const buttonBase = style({ | ||
borderRadius: '4px', | ||
display: 'flex', | ||
fontFamily: 'Josefin Slab Bold, sans-serif', | ||
fontSize: '18px', | ||
justifyContent: 'center', | ||
marginBottom: '8px', | ||
minWidth: '160px', | ||
padding: '13px 16px 8px', | ||
textAlign: 'center', | ||
textTransform: 'uppercase', | ||
}); | ||
|
||
export const buttonVariants = styleVariants({ | ||
primary: [ | ||
buttonBase, | ||
{ | ||
backgroundColor: '#0087ff', | ||
border: 'none', | ||
color: '#ddefff', | ||
}, | ||
], | ||
secondary: [ | ||
buttonBase, | ||
{ | ||
backgroundColor: '#ffffff0d', | ||
border: '1px solid #0087ff', | ||
color: '#0087ff', | ||
export const button = recipe({ | ||
base: { | ||
borderRadius: '4px', | ||
display: 'flex', | ||
fontFamily: 'Josefin Slab, sans-serif', | ||
justifyContent: 'center', | ||
textAlign: 'center', | ||
textTransform: 'uppercase', | ||
}, | ||
variants: { | ||
color: { | ||
primary: { | ||
backgroundColor: '#0087ff', | ||
border: 'none', | ||
color: '#ddefff', | ||
}, | ||
secondary: { | ||
backgroundColor: '#ffffff0d', | ||
border: '1px solid #0087ff', | ||
color: '#0087ff', | ||
}, | ||
transparent: { | ||
backgroundColor: '#ffffff0d', | ||
border: '1px solid #0087ff', | ||
color: '#0087ff', | ||
}, | ||
}, | ||
], | ||
transparent: [ | ||
buttonBase, | ||
{ | ||
backgroundColor: '#ffffff0d', | ||
border: '1px solid #0087ff', | ||
color: '#0087ff', | ||
size: { | ||
small: { | ||
fontSize: '14px', | ||
minWidth: '120px', | ||
padding: '12px 16px 8px', | ||
}, | ||
medium: { | ||
fontSize: '18px', | ||
minWidth: '160px', | ||
padding: '13px 16px 8px', | ||
}, | ||
large: { | ||
fontSize: '24px', | ||
minWidth: '2000px', | ||
padding: '18px 20px 12px', | ||
}, | ||
}, | ||
], | ||
}, | ||
defaultVariants: { | ||
color: 'primary', | ||
size: 'medium', | ||
}, | ||
}); |
Oops, something went wrong.