-
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(frontend): add sort order to blog page
- Loading branch information
Showing
11 changed files
with
941 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: [dev] | ||
pull_request: | ||
branches: [dev, main] | ||
env: | ||
|
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
/* eslint-disable jsx-a11y/label-has-associated-control */ | ||
import { InputHTMLAttributes } from 'react'; | ||
import * as styles from './Input.css'; | ||
|
||
type InputProps = InputHTMLAttributes<HTMLInputElement>; | ||
interface InputProps extends InputHTMLAttributes<HTMLInputElement> { | ||
label?: string; | ||
} | ||
|
||
export default function Input(props: InputProps) { | ||
return <input {...props} className={styles.root} />; | ||
export default function Input({ label, ...props }: InputProps) { | ||
return ( | ||
<div className={styles.container}> | ||
{label && <label className={styles.label}>{label}</label>} | ||
<input {...props} className={styles.root} /> | ||
</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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { variables } from '@frontend/styles/variables.css'; | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: '0.5rem', | ||
marginTop: variables.spacing.md, | ||
}); | ||
|
||
export const label = style({ | ||
fontSize: '1rem', | ||
color: variables.color.foregroundNeutral, | ||
}); | ||
|
||
export const select = style({ | ||
width: '50%', | ||
padding: '0.5rem', | ||
border: `1px solid ${variables.color.border}`, | ||
color: variables.color.foregroundNeutral, | ||
|
||
borderRadius: '4px', | ||
fontSize: '1rem', | ||
appearance: 'none', | ||
cursor: 'pointer', | ||
':focus': { | ||
outline: 'none', | ||
borderColor: variables.color.border, | ||
boxShadow: `0 0 0 3px ${variables.color.borderFaint}`, | ||
}, | ||
}); | ||
|
||
export const hint = style({ | ||
fontSize: '0.875rem', | ||
color: variables.color.page, | ||
}); |
Oops, something went wrong.