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
020b2116
Commit
020b2116
authored
Sep 09, 2022
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update explore page style
parent
4657e58b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
Explore.tsx
web/src/pages/Explore.tsx
+14
-11
No files found.
web/src/pages/Explore.tsx
View file @
020b2116
...
@@ -4,6 +4,7 @@ import { locationService, memoService, userService } from "../services";
...
@@ -4,6 +4,7 @@ import { locationService, memoService, userService } from "../services";
import
{
useAppSelector
}
from
"../store"
;
import
{
useAppSelector
}
from
"../store"
;
import
useI18n
from
"../hooks/useI18n"
;
import
useI18n
from
"../hooks/useI18n"
;
import
useLoading
from
"../hooks/useLoading"
;
import
useLoading
from
"../hooks/useLoading"
;
import
Only
from
"../components/common/OnlyWhen"
;
import
MemoContent
from
"../components/MemoContent"
;
import
MemoContent
from
"../components/MemoContent"
;
import
MemoResources
from
"../components/MemoResources"
;
import
MemoResources
from
"../components/MemoResources"
;
import
"../less/explore.less"
;
import
"../less/explore.less"
;
...
@@ -48,6 +49,7 @@ const Explore = () => {
...
@@ -48,6 +49,7 @@ const Explore = () => {
<
div
className=
"page-header"
>
<
div
className=
"page-header"
>
<
img
className=
"logo-img"
src=
"/logo-full.webp"
alt=
""
/>
<
img
className=
"logo-img"
src=
"/logo-full.webp"
alt=
""
/>
<
div
className=
"action-button-container"
>
<
div
className=
"action-button-container"
>
<
Only
when=
{
!
loadingState
.
isLoading
}
>
{
user
?
(
{
user
?
(
<
button
className=
"btn"
onClick=
{
()
=>
(
window
.
location
.
href
=
"/"
)
}
>
<
button
className=
"btn"
onClick=
{
()
=>
(
window
.
location
.
href
=
"/"
)
}
>
<
span
className=
"icon"
>
🏠
</
span
>
{
t
(
"common.back-to-home"
)
}
<
span
className=
"icon"
>
🏠
</
span
>
{
t
(
"common.back-to-home"
)
}
...
@@ -57,9 +59,10 @@ const Explore = () => {
...
@@ -57,9 +59,10 @@ const Explore = () => {
<
span
className=
"icon"
>
👉
</
span
>
{
t
(
"common.sign-in"
)
}
<
span
className=
"icon"
>
👉
</
span
>
{
t
(
"common.sign-in"
)
}
</
button
>
</
button
>
)
}
)
}
</
Only
>
</
div
>
</
div
>
</
div
>
</
div
>
{
loadingState
.
isLoading
?
null
:
(
<
Only
when=
{
!
loadingState
.
isLoading
}
>
<
main
className=
"memos-wrapper"
>
<
main
className=
"memos-wrapper"
>
{
state
.
memos
.
map
((
memo
)
=>
{
{
state
.
memos
.
map
((
memo
)
=>
{
const
createdAtStr
=
dayjs
(
memo
.
createdTs
).
locale
(
locale
).
format
(
"YYYY/MM/DD HH:mm:ss"
);
const
createdAtStr
=
dayjs
(
memo
.
createdTs
).
locale
(
locale
).
format
(
"YYYY/MM/DD HH:mm:ss"
);
...
@@ -78,7 +81,7 @@ const Explore = () => {
...
@@ -78,7 +81,7 @@ const Explore = () => {
);
);
})
}
})
}
</
main
>
</
main
>
)
}
</
Only
>
</
div
>
</
div
>
</
section
>
</
section
>
);
);
...
...
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