Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xplot
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
digit_plot
xplot
Commits
c17b59b1
Commit
c17b59b1
authored
Aug 27, 2024
by
dliangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
footer impl
parent
0f0f5143
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
src/components/common/Footer.tsx
+75
-0
No files found.
src/components/common/Footer.tsx
0 → 100644
View file @
c17b59b1
import
{
useContext
}
from
"react"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
AppContext
}
from
"../../App"
;
const
Footer
=
()
=>
{
const
{
tabIndex
,
setTabIndex
}
=
useContext
(
AppContext
);
return
(
<
div
className=
"fixed bottom-0 left-0 right-0 h-14 pt-2 text-center text-orange-500 border-t phone-width "
>
<
div
className=
"flex"
>
<
div
className=
"w-1/4 grid place-items-center"
>
<
Link
to=
"/"
onClick=
{
()
=>
{
setTabIndex
(
1
);
}
}
>
<
div
className=
"h-6 relative rounded-md "
>
<
img
src=
"/icon/map-two.svg"
/>
{
tabIndex
==
1
&&
<
div
className=
" absolute top-0 left-0 w-full h-full bg-orange-500 opacity-50 rounded-lg"
/>
}
</
div
>
<
div
className=
"h-12 text-bottom text-xs"
>
地块
</
div
>
</
Link
>
</
div
>
<
div
className=
"w-1/4 grid place-items-center"
>
<
Link
to=
"/notify"
onClick=
{
()
=>
{
setTabIndex
(
2
);
}
}
>
<
div
className=
"h-6 relative rounded-md"
>
<
img
src=
"/icon/remind.svg"
/>
{
tabIndex
==
2
&&
<
div
className=
" absolute top-0 left-0 w-full h-full bg-orange-500 opacity-50 rounded-lg"
/>
}
</
div
>
<
div
className=
"h-12 text-bottom text-xs"
>
通知
</
div
>
</
Link
>
</
div
>
<
div
className=
"w-1/4 grid place-items-center"
>
<
Link
to=
"/sale"
onClick=
{
()
=>
{
setTabIndex
(
3
);
}
}
>
<
div
className=
"h-6 relative rounded-md"
>
<
img
src=
"/icon/gavel.svg"
/>
{
tabIndex
==
3
&&
<
div
className=
" absolute top-0 left-0 w-full h-full bg-orange-500 opacity-50 rounded-lg"
/>
}
</
div
>
<
div
className=
"h-12 text-bottom text-xs"
>
出让
</
div
>
</
Link
>
</
div
>
<
div
className=
"w-1/4 grid place-items-center"
>
<
Link
to=
"/user"
onClick=
{
()
=>
{
setTabIndex
(
4
);
}
}
>
<
div
className=
"h-6 relative rounded-md"
>
<
img
src=
"/icon/user.svg"
/>
{
tabIndex
==
4
&&
<
div
className=
" absolute top-0 left-0 w-full h-full bg-orange-500 opacity-50 rounded-lg"
/>
}
</
div
>
<
div
className=
"h-12 text-bottom text-xs"
>
我的
</
div
>
</
Link
>
</
div
>
</
div
>
</
div
>
);
};
export
default
Footer
;
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