Merge pull request #75 from gbear605/move-alert-up
Move alert up to not hide guesses
This commit is contained in:
commit
426abd47f3
2 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ function App() {
|
|||
|
||||
return (
|
||||
<div className="py-8 max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div className="flex w-80 mx-auto items-center mb-8">
|
||||
<div className="flex w-80 mx-auto items-center mb-8 mt-12">
|
||||
<h1 className="text-xl grow font-bold dark:text-white">Not Wordle</h1>
|
||||
<SunIcon
|
||||
className="h-6 w-6 cursor-pointer dark:stroke-white"
|
||||
|
|
|
@ -10,7 +10,7 @@ type Props = {
|
|||
|
||||
export const Alert = ({ isOpen, message, variant = 'warning' }: Props) => {
|
||||
const classes = classNames(
|
||||
'fixed top-20 left-1/2 transform -translate-x-1/2 max-w-sm w-full shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden',
|
||||
'fixed top-5 left-1/2 transform -translate-x-1/2 max-w-sm w-full shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden',
|
||||
{
|
||||
'bg-rose-200': variant === 'warning',
|
||||
'bg-green-200 z-20': variant === 'success',
|
||||
|
|
Loading…
Add table
Reference in a new issue