Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
vicotor
frontend
Commits
056f0607
Commit
056f0607
authored
May 26, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix link style
parent
db138d45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Link.ts
theme/components/Link.ts
+1
-1
FooterLinkItem.tsx
ui/snippets/footer/FooterLinkItem.tsx
+3
-5
No files found.
theme/components/Link.ts
View file @
056f0607
...
@@ -18,7 +18,7 @@ const variantPrimary = defineStyle((props) => {
...
@@ -18,7 +18,7 @@ const variantPrimary = defineStyle((props) => {
const
variantSecondary
=
defineStyle
((
props
)
=>
{
const
variantSecondary
=
defineStyle
((
props
)
=>
{
return
{
return
{
color
:
mode
(
'
gray.
5
00
'
,
'
gray.500
'
)(
props
),
color
:
mode
(
'
gray.
6
00
'
,
'
gray.500
'
)(
props
),
_hover
:
{
_hover
:
{
color
:
mode
(
'
gray.600
'
,
'
gray.400
'
)(
props
),
color
:
mode
(
'
gray.600
'
,
'
gray.400
'
)(
props
),
},
},
...
...
ui/snippets/footer/FooterLinkItem.tsx
View file @
056f0607
import
{
Center
,
Text
,
Icon
,
Link
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Center
,
Icon
,
Link
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
type
Props
=
{
type
Props
=
{
...
@@ -9,16 +9,14 @@ type Props = {
...
@@ -9,16 +9,14 @@ type Props = {
}
}
const
FooterLinkItem
=
({
icon
,
iconSize
,
text
,
url
}:
Props
)
=>
{
const
FooterLinkItem
=
({
icon
,
iconSize
,
text
,
url
}:
Props
)
=>
{
const
textColor
=
useColorModeValue
(
'
gray.600
'
,
'
gray.500
'
);
return
(
return
(
<
Link
href=
{
url
}
display=
"flex"
alignItems=
"center"
h=
"30px"
color=
{
textColor
}
target=
"_blank
"
>
<
Link
href=
{
url
}
display=
"flex"
alignItems=
"center"
h=
"30px"
variant=
"secondary"
target=
"_blank"
fontSize=
"xs
"
>
{
icon
&&
(
{
icon
&&
(
<
Center
minW=
{
6
}
mr=
"6px"
>
<
Center
minW=
{
6
}
mr=
"6px"
>
<
Icon
boxSize=
{
iconSize
||
5
}
as=
{
icon
}
/>
<
Icon
boxSize=
{
iconSize
||
5
}
as=
{
icon
}
/>
</
Center
>
</
Center
>
)
}
)
}
<
Text
fontSize=
"xs"
color=
{
textColor
}
>
{
text
}
</
Text
>
{
text
}
</
Link
>
</
Link
>
);
);
};
};
...
...
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