Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
83141f9b
Commit
83141f9b
authored
Jan 06, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak navigation styles
parent
4c590357
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
10 deletions
+21
-10
Navigation.tsx
web/src/components/Navigation.tsx
+11
-2
UserBanner.tsx
web/src/components/UserBanner.tsx
+1
-1
Root.tsx
web/src/layouts/Root.tsx
+2
-2
About.tsx
web/src/pages/About.tsx
+7
-5
No files found.
web/src/components/Navigation.tsx
View file @
83141f9b
...
@@ -15,7 +15,11 @@ interface NavLinkItem {
...
@@ -15,7 +15,11 @@ interface NavLinkItem {
icon
:
React
.
ReactNode
;
icon
:
React
.
ReactNode
;
}
}
const
Navigation
=
()
=>
{
interface
Props
{
className
?:
string
;
}
const
Navigation
=
(
props
:
Props
)
=>
{
const
t
=
useTranslate
();
const
t
=
useTranslate
();
const
user
=
useCurrentUser
();
const
user
=
useCurrentUser
();
const
inboxStore
=
useInboxStore
();
const
inboxStore
=
useInboxStore
();
...
@@ -110,7 +114,12 @@ const Navigation = () => {
...
@@ -110,7 +114,12 @@ const Navigation = () => {
:
[
exploreNavLink
,
signInNavLink
,
aboutNavLink
];
:
[
exploreNavLink
,
signInNavLink
,
aboutNavLink
];
return
(
return
(
<
header
className=
"w-full h-full overflow-auto flex flex-col justify-start items-start py-4 md:pt-6 z-30"
>
<
header
className=
{
classNames
(
"w-full h-full overflow-auto flex flex-col justify-start items-start py-4 md:pt-6 z-30 hide-scrollbar"
,
props
.
className
)
}
>
<
UserBanner
/>
<
UserBanner
/>
<
div
className=
"w-full px-1 py-2 flex flex-col justify-start items-start shrink-0 space-y-2"
>
<
div
className=
"w-full px-1 py-2 flex flex-col justify-start items-start shrink-0 space-y-2"
>
{
navLinks
.
map
((
navLink
)
=>
(
{
navLinks
.
map
((
navLink
)
=>
(
...
...
web/src/components/UserBanner.tsx
View file @
83141f9b
...
@@ -23,7 +23,7 @@ const UserBanner = () => {
...
@@ -23,7 +23,7 @@ const UserBanner = () => {
<
Dropdown
<
Dropdown
className=
"w-auto inline-flex"
className=
"w-auto inline-flex"
trigger=
{
trigger=
{
<
div
className=
"px-3 py-2 max-w-full flex flex-row justify-start items-center cursor-pointer rounded-2xl
hover:shadow hover:bg-white dark:hover:bg-zinc-7
00"
>
<
div
className=
"px-3 py-2 max-w-full flex flex-row justify-start items-center cursor-pointer rounded-2xl
border border-transparent text-gray-800 dark:text-gray-300 hover:bg-white hover:border-gray-200 dark:hover:border-zinc-700 dark:hover:bg-zinc-8
00"
>
<
UserAvatar
className=
"shadow shrink-0 mr-2"
avatarUrl=
{
user
?.
avatarUrl
}
/>
<
UserAvatar
className=
"shadow shrink-0 mr-2"
avatarUrl=
{
user
?.
avatarUrl
}
/>
<
span
className=
"text-lg font-medium text-slate-800 dark:text-gray-200 shrink truncate"
>
{
title
}
</
span
>
<
span
className=
"text-lg font-medium text-slate-800 dark:text-gray-200 shrink truncate"
>
{
title
}
</
span
>
</
div
>
</
div
>
...
...
web/src/layouts/Root.tsx
View file @
83141f9b
...
@@ -11,8 +11,8 @@ function Root() {
...
@@ -11,8 +11,8 @@ function Root() {
<
div
className=
"w-full min-h-full"
>
<
div
className=
"w-full min-h-full"
>
<
div
className=
"w-full sm:pl-56 md:pl-64 mx-auto flex flex-row justify-center items-start"
>
<
div
className=
"w-full sm:pl-56 md:pl-64 mx-auto flex flex-row justify-center items-start"
>
{
sm
&&
(
{
sm
&&
(
<
div
className=
"hidden sm:block fixed top-0 left-0 w-56 md:w-64
px-4
border-r dark:border-zinc-800 h-full bg-zinc-50 dark:bg-zinc-800 dark:bg-opacity-40 transition-all hover:shadow-xl z-2"
>
<
div
className=
"hidden sm:block fixed top-0 left-0 w-56 md:w-64 border-r dark:border-zinc-800 h-full bg-zinc-50 dark:bg-zinc-800 dark:bg-opacity-40 transition-all hover:shadow-xl z-2"
>
<
Navigation
/>
<
Navigation
className=
"px-4"
/>
</
div
>
</
div
>
)
}
)
}
<
main
className=
"w-full h-auto flex-grow shrink flex flex-col justify-start items-center"
>
<
main
className=
"w-full h-auto flex-grow shrink flex flex-col justify-start items-center"
>
...
...
web/src/pages/About.tsx
View file @
83141f9b
...
@@ -8,22 +8,24 @@ const About = () => {
...
@@ -8,22 +8,24 @@ const About = () => {
<
MobileHeader
/>
<
MobileHeader
/>
<
div
className=
"w-full px-4 sm:px-6"
>
<
div
className=
"w-full px-4 sm:px-6"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-black dark:text-gray-300"
>
<
div
className=
"w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-black dark:text-gray-300"
>
<
img
className=
"w-auto h-12"
src=
"https://www.usememos.com/full-logo-landscape.png"
alt=
""
/>
<
a
href=
"https://www.usememos.com"
target=
"_blank"
>
<
img
className=
"w-auto h-12"
src=
"https://www.usememos.com/full-logo-landscape.png"
alt=
"memos"
/>
</
a
>
<
p
className=
"text-base"
>
A privacy-first, lightweight note-taking service. Easily capture and share your great thoughts.
</
p
>
<
p
className=
"text-base"
>
A privacy-first, lightweight note-taking service. Easily capture and share your great thoughts.
</
p
>
<
div
className=
"mt-1 flex flex-row items-center flex-wrap"
>
<
div
className=
"mt-1 flex flex-row items-center flex-wrap"
>
<
Link
underline=
"always"
href=
"https://
github.com/usememos/memos
"
>
<
Link
underline=
"always"
href=
"https://
www.github.com/usememos/memos"
target=
"_blank
"
>
GitHub Repo
GitHub Repo
</
Link
>
</
Link
>
<
Icon
.
Dot
className=
"w-4 h-auto opacity-60"
/>
<
Icon
.
Dot
className=
"w-4 h-auto opacity-60"
/>
<
Link
underline=
"always"
href=
"https://www.usememos.com/"
>
<
Link
underline=
"always"
href=
"https://www.usememos.com/"
target=
"_blank"
>
Offical Website
Offical Website
</
Link
>
</
Link
>
<
Icon
.
Dot
className=
"w-4 h-auto opacity-60"
/>
<
Icon
.
Dot
className=
"w-4 h-auto opacity-60"
/>
<
Link
underline=
"always"
href=
"https://www.usememos.com/blog"
>
<
Link
underline=
"always"
href=
"https://www.usememos.com/blog"
target=
"_blank"
>
Blogs
Blogs
</
Link
>
</
Link
>
<
Icon
.
Dot
className=
"w-4 h-auto opacity-60"
/>
<
Icon
.
Dot
className=
"w-4 h-auto opacity-60"
/>
<
Link
underline=
"always"
href=
"https://www.usememos.com/
blog
"
>
<
Link
underline=
"always"
href=
"https://www.usememos.com/
docs"
target=
"_blank
"
>
Documents
Documents
</
Link
>
</
Link
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment