File tree Expand file tree Collapse file tree 14 files changed +369
-1153
lines changed
public/static/images/patterns Expand file tree Collapse file tree 14 files changed +369
-1153
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { useTranslations } from 'next-intl';
6
6
import type { FC } from 'react' ;
7
7
8
8
import Button from '@/components/Common/Button' ;
9
+ import GlowingBackdrop from '@/components/Common/GlowingBackdrop' ;
9
10
import CenteredLayout from '@/layouts/Centered' ;
10
11
11
12
const ErrorPage : FC < { error : Error } > = ( { error } ) => {
@@ -14,7 +15,7 @@ const ErrorPage: FC<{ error: Error }> = ({ error }) => {
14
15
15
16
return (
16
17
< CenteredLayout >
17
- < div className = "glowingBackdrop" />
18
+ < GlowingBackdrop />
18
19
19
20
< main >
20
21
500
Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ import { useTranslations } from 'next-intl';
6
6
import type { FC } from 'react' ;
7
7
8
8
import Button from '@/components/Common/Button' ;
9
+ import GlowingBackdrop from '@/components/Common/GlowingBackdrop' ;
9
10
import CenteredLayout from '@/layouts/Centered' ;
10
11
11
12
const NotFoundPage : FC = ( ) => {
12
13
const t = useTranslations ( ) ;
13
14
14
15
return (
15
16
< CenteredLayout >
16
- < div className = "glowingBackdrop" />
17
+ < GlowingBackdrop />
17
18
18
19
< main >
19
20
404
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { captureException } from '@sentry/nextjs';
5
5
import type { FC } from 'react' ;
6
6
7
7
import Button from '@/components/Common/Button' ;
8
+ import GlowingBackdrop from '@/components/Common/GlowingBackdrop' ;
8
9
import BaseLayout from '@/layouts/Base' ;
9
10
import CenteredLayout from '@/layouts/Centered' ;
10
11
@@ -16,7 +17,7 @@ const GlobalErrorPage: FC<{ error: Error }> = ({ error }) => {
16
17
< body >
17
18
< BaseLayout >
18
19
< CenteredLayout >
19
- < div className = "glowingBackdrop" />
20
+ < GlowingBackdrop />
20
21
21
22
< main >
22
23
500
Original file line number Diff line number Diff line change
1
+ .glowingBackdrop {
2
+ @apply absolute
3
+ left-0
4
+ top-0
5
+ -z-10
6
+ size-full
7
+ opacity-50
8
+ md:opacity-100;
9
+
10
+ & ::after {
11
+ @apply absolute
12
+ inset-0
13
+ m-auto
14
+ aspect-square
15
+ w-[300px ]
16
+ rounded-full
17
+ bg-green-300
18
+ blur-[120px ]
19
+ content-['' ]
20
+ dark:bg-green-700;
21
+ }
22
+
23
+ svg {
24
+ @apply absolute
25
+ inset-0
26
+ m-auto
27
+ h-[600px ]
28
+ object-cover
29
+ text-neutral-300
30
+ dark:text-neutral-900/75;
31
+ }
32
+ }
Original file line number Diff line number Diff line change
1
+ import type { Meta as MetaObj , StoryObj } from '@storybook/react' ;
2
+
3
+ import GlowingBackdrop from '@/components/Common/GlowingBackdrop' ;
4
+
5
+ type Story = StoryObj < typeof GlowingBackdrop > ;
6
+ type Meta = MetaObj < typeof GlowingBackdrop > ;
7
+
8
+ export const Default : Story = { } ;
9
+
10
+ export default { component : GlowingBackdrop } as Meta ;
Original file line number Diff line number Diff line change
1
+ import type { FC } from 'react' ;
2
+
3
+ import HexagonGrid from '@/components/Icons/HexagonGrid' ;
4
+
5
+ import styles from './index.module.css' ;
6
+
7
+ const GlowingBackdrop : FC = ( ) => (
8
+ < div className = { styles . glowingBackdrop } >
9
+ < HexagonGrid />
10
+ </ div >
11
+ ) ;
12
+
13
+ export default GlowingBackdrop ;
Original file line number Diff line number Diff line change 7
7
border
8
8
border-neutral-900
9
9
bg-neutral-950
10
- bg-[url ('/static/images/patterns/hexagon-grid.svg' )]
11
- bg-contain
12
- bg-center
13
10
@container /preview;
14
11
15
12
& ::after {
58
55
@xl /preview:text-2xl
59
56
@2 xl/preview:text-3xl;
60
57
58
+ .hexagon {
59
+ @apply absolute
60
+ inset-0
61
+ m-auto
62
+ size-full
63
+ @md /preview:h-3/5
64
+ @md /preview:w-3/5
65
+ @lg /preview:h-2/3
66
+ @lg /preview:w-2/3
67
+ @xl /preview:h-3/5
68
+ @xl /preview:w-3/5
69
+ @2 xl/preview:h-2/3
70
+ @2 xl/preview:w-2/3;
71
+ }
72
+
61
73
.logo {
62
74
@apply mx-auto
63
75
size-6
Original file line number Diff line number Diff line change 1
1
import classNames from 'classnames' ;
2
2
import type { FC } from 'react' ;
3
3
4
+ import HexagonGrid from '@/components/Icons/HexagonGrid' ;
4
5
import JsIconWhite from '@/components/Icons/Logos/JsIconWhite' ;
5
6
import type { BlogPreviewType } from '@/types' ;
6
7
@@ -14,6 +15,7 @@ type PreviewProps = {
14
15
const Preview : FC < PreviewProps > = ( { type = 'announcements' , title } ) => (
15
16
< div className = { classNames ( styles . root , styles [ type ] ) } >
16
17
< div className = { styles . container } aria-hidden = { true } >
18
+ < HexagonGrid className = { styles . hexagon } />
17
19
< JsIconWhite className = { styles . logo } />
18
20
{ title }
19
21
</ div >
Original file line number Diff line number Diff line change
1
+ import type { Meta as MetaObj , StoryObj } from '@storybook/react' ;
2
+
3
+ import HexagonGrid from '@/components/Icons/HexagonGrid' ;
4
+
5
+ type Story = StoryObj < typeof HexagonGrid > ;
6
+ type Meta = MetaObj < typeof HexagonGrid > ;
7
+
8
+ export const Default : Story = { } ;
9
+
10
+ export default { component : HexagonGrid } as Meta ;
You can’t perform that action at this time.
0 commit comments