-
-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Innei <[email protected]>
- Loading branch information
Showing
18 changed files
with
580 additions
and
44 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
'use client' | ||
|
||
import { useAggregationQuery } from '~/hooks/data/use-aggregation' | ||
import { useEffect } from 'react' | ||
import { useRouter } from 'next/navigation' | ||
|
||
export default function Home() { | ||
const { data } = useAggregationQuery() | ||
const router = useRouter() | ||
useEffect(() => { | ||
router.push('/notes') | ||
}, []) | ||
|
||
return null | ||
} |
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,108 @@ | ||
.card-grid { | ||
position: relative; | ||
display: flex; | ||
box-sizing: border-box; | ||
flex-direction: row; | ||
align-items: center; | ||
width: 390px; | ||
min-height: 84px; | ||
border-radius: 8px; | ||
max-width: 100%; | ||
overflow: hidden; | ||
margin: 16px auto; | ||
padding: 12px 18px; | ||
|
||
@apply cursor-pointer font-sans; | ||
|
||
background-color: #f3f3f380; | ||
backdrop-filter: blur(20px) saturate(180%); | ||
transition: background-color 0.2s ease-in-out; | ||
} | ||
|
||
:global([data-theme='dark']) .card-grid { | ||
background-color: #28282880; | ||
} | ||
|
||
.contents { | ||
flex: 1 1 auto; | ||
position: relative; | ||
display: block; | ||
min-width: 0; | ||
} | ||
|
||
.title { | ||
line-height: 20px; | ||
display: -webkit-box; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
-webkit-box-orient: vertical; | ||
-webkit-line-clamp: 2; | ||
font-size: 15px; | ||
font-weight: 500; | ||
margin-bottom: 2px; | ||
} | ||
|
||
.desc { | ||
@apply truncate text-neutral-500 dark:text-neutral-400; | ||
|
||
display: block; | ||
margin-top: 6px; | ||
min-width: 0; | ||
font-size: 13px; | ||
height: 18px; | ||
line-height: 18px; | ||
} | ||
|
||
.image { | ||
@apply aspect-square flex-shrink-0 bg-cover bg-center bg-no-repeat; | ||
@apply bg-gray-600 dark:bg-gray-50; | ||
|
||
height: 60px; | ||
width: 60px; | ||
margin-left: 20px; | ||
border-radius: 8px; | ||
} | ||
|
||
.skeleton { | ||
& .title, | ||
& .desc { | ||
border-radius: 99px; | ||
} | ||
|
||
& .title { | ||
width: 50%; | ||
height: 20px; | ||
|
||
@apply bg-gray-200 dark:bg-neutral-700; | ||
} | ||
|
||
& .desc { | ||
width: 100%; | ||
margin-top: 12px; | ||
height: 14px; | ||
|
||
@apply bg-gray-200 dark:bg-neutral-700; | ||
} | ||
|
||
& .image { | ||
height: 50px; | ||
width: 50px; | ||
|
||
@apply bg-gray-200 dark:bg-neutral-700; | ||
} | ||
|
||
&.error { | ||
background-color: #e1534a20 !important; | ||
|
||
& .title, | ||
& .desc, | ||
& .image { | ||
background-color: #e1534a79; | ||
color: transparent; | ||
} | ||
|
||
& .image { | ||
background-image: none !important; | ||
} | ||
} | ||
} |
Oops, something went wrong.
7a4b87f
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:
springtide – ./
springtide-innei.vercel.app
springtide.vercel.app
innei.in
springtide-git-main-innei.vercel.app