-
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.
- Loading branch information
1 parent
558072e
commit 3c6e34a
Showing
18 changed files
with
211 additions
and
85 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -21,7 +21,10 @@ | |
} | ||
|
||
svg { | ||
@apply size-8; | ||
@apply size-8 | ||
transition-transform | ||
duration-200 | ||
hover:scale-125; | ||
} | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.pride { | ||
@apply mx-auto | ||
w-3/4 | ||
rounded-lg | ||
bg-gradient-to-r | ||
from-purple-400 | ||
to-pink-400 | ||
p-4 | ||
shadow-lg | ||
dark:from-purple-800 | ||
dark:to-pink-800 | ||
dark:shadow-none | ||
lg:w-1/2; | ||
|
||
h2, | ||
p { | ||
@apply text-white | ||
drop-shadow-md; | ||
} | ||
} |
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,9 @@ | ||
import Pride from './'; | ||
import type { Meta as MetaObj, StoryObj } from '@storybook/react'; | ||
|
||
type Story = StoryObj<typeof Pride>; | ||
type Meta = MetaObj<typeof Pride>; | ||
|
||
export const Default: Story = {}; | ||
|
||
export default { component: Pride } as Meta; |
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,27 @@ | ||
'use client'; | ||
import { useTranslations } from 'next-intl'; | ||
import { dateIsBetween } from '@/utils/dateUtils'; | ||
import styles from './index.module.css'; | ||
import type { FC } from 'react'; | ||
|
||
const Pride: FC = () => { | ||
const t = useTranslations('components.home.pride'); | ||
|
||
if ( | ||
!dateIsBetween({ | ||
startDate: '2024-06-01T00:00:00.000Z', | ||
endDate: '2024-06-30T00:00:00.000Z', | ||
careAboutYear: false, | ||
}) | ||
) | ||
return null; | ||
|
||
return ( | ||
<section className={styles.pride}> | ||
<h2>{t('title')}</h2> | ||
<p>{t('description')}</p> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Pride; |
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 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
File renamed without changes.
Oops, something went wrong.