-
-
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: improve visuals on larger monitors
- added links to repos - added links to libraries
- Loading branch information
1 parent
d89846e
commit 9d9a93f
Showing
11 changed files
with
181 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.button { | ||
&:not(.disabled) { | ||
&:after { | ||
content: ''; | ||
|
||
@apply absolute pointer-events-none inset-0 bg-white/10 opacity-0 transition-opacity; | ||
} | ||
|
||
&:hover:after { | ||
@apply opacity-100; | ||
} | ||
} | ||
} |
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,11 @@ | ||
.buttons { | ||
@apply flex gap-[1px] flex-wrap; | ||
|
||
> * { | ||
@apply rounded-none flex-grow; | ||
} | ||
|
||
&.vertical { | ||
@apply flex-col; | ||
} | ||
} |
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,18 @@ | ||
import type { FC, ReactNode } from 'react'; | ||
import * as styles from './ButtonGroup.module.css'; | ||
import { cn } from '@/utils/cn'; | ||
|
||
type Props = { | ||
label: ReactNode; | ||
children: ReactNode; | ||
vertical?: boolean; | ||
}; | ||
|
||
export const ButtonGroup: FC<Props> = ({ label, children, vertical }) => { | ||
return ( | ||
<div className="flex flex-col rounded-md overflow-hidden bg-secondary w-full sm:max-w-80"> | ||
<div className="flex items-center justify-between gap-2 p-4 border-b border-b-white/10 font-bold">{label}</div> | ||
<div className={cn(styles.buttons, vertical && styles.vertical)}>{children}</div> | ||
</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
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 @@ | ||
.input { | ||
@apply relative; | ||
|
||
&:not(.disabled) { | ||
&:after { | ||
content: ''; | ||
|
||
@apply absolute pointer-events-none inset-0 bg-white/10 opacity-0 transition-opacity; | ||
} | ||
|
||
&:hover:after { | ||
@apply opacity-100; | ||
} | ||
} | ||
} |
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,22 @@ | ||
import { type FC, type ComponentProps } from 'react'; | ||
import { cn } from '../utils/cn'; | ||
import * as styles from './Input.module.css'; | ||
|
||
type Props = { | ||
onChange?: (value: string) => void; | ||
} & Pick<ComponentProps<'input'>, 'value' | 'placeholder' | 'disabled'>; | ||
|
||
export const Input: FC<Props> = ({ onChange, ...props }) => { | ||
return ( | ||
<div | ||
className={cn(styles.input, 'flex-1 bg-accent rounded-md min-h-12 text-xl', props.disabled && styles.disabled)} | ||
> | ||
<input | ||
{...props} | ||
type="text" | ||
className={cn('h-full w-full bg-transparent px-3 rounded-md')} | ||
onChange={(e) => onChange?.(e.target.value)} | ||
/> | ||
</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
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