-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(website): UI/UX improvements (#375)
- Loading branch information
Showing
20 changed files
with
423 additions
and
240 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
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,3 +1,5 @@ | ||
import { atom } from 'jotai'; | ||
|
||
export const menuAtom = atom(false); | ||
|
||
export const scrolledAtom = atom(false); |
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,24 @@ | ||
import { getEnv } from 'waku/server'; | ||
|
||
export const Analytics = () => { | ||
const trackingId = getEnv('TRACKING_ID'); | ||
|
||
if (!trackingId) return null; | ||
|
||
return ( | ||
<> | ||
<script | ||
async={true} | ||
src={`https://www.googletagmanager.com/gtag/js?id=${trackingId}`} | ||
/> | ||
<script | ||
dangerouslySetInnerHTML={{ | ||
__html: `window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', '${trackingId}');`, | ||
}} | ||
/> | ||
</> | ||
); | ||
}; |
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,27 @@ | ||
'use client'; | ||
|
||
import cx from 'clsx'; | ||
import { useAtomValue } from 'jotai'; | ||
|
||
import { scrolledAtom } from '../atoms/index.js'; | ||
|
||
type FadeProps = { | ||
always?: boolean; | ||
}; | ||
|
||
export const Fade = ({ always = false }: FadeProps) => { | ||
const hasScrolled = useAtomValue(scrolledAtom); | ||
|
||
return ( | ||
<div | ||
className={cx( | ||
'pointer-events-none fixed inset-0 z-0 transition-opacity duration-500 ease-in-out', | ||
always || hasScrolled ? 'opacity-100' : 'opacity-0', | ||
)} | ||
> | ||
<div className="absolute inset-0 backdrop-blur" /> | ||
<div className="absolute inset-0 bg-gray-900/75" /> | ||
<div className="absolute inset-0 bg-gradient-to-b from-transparent to-black" /> | ||
</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
Oops, something went wrong.
7398b45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
waku – ./
waku-git-main-daishi.vercel.app
waku.vercel.app
waku-daishi.vercel.app
www.waku.gg
waku.gg