Skip to content

Commit a1108ee

Browse files
authored
feat: center the anchor text
1 parent 33fb309 commit a1108ee

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

src/components/HubButton.tsx

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,21 @@ const parseInlineStyle = (style: string) => {
99
.reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {})
1010
}
1111

12+
const StyledWrapper = styled.div`
13+
display: flex;
14+
align-items: center;
15+
height: 44px;
16+
padding: 0 12px;
17+
background-color: #54b4cd;
18+
border-radius: 8px;
19+
`
20+
1221
const StyledButton = styled.a`
1322
display: inline-block;
14-
padding: 13px 12px;
15-
border-radius: 8px;
23+
margin-bottom: 1px;
1624
font-size: 1rem;
1725
font-weight: 700;
1826
text-decoration: none;
19-
background-color: #54b4cd;
2027
color: #ffffff;
2128
position: relative;
2229
@@ -32,13 +39,15 @@ const StyledButton = styled.a`
3239

3340
const HubButton = ({ style }: { style?: string }) => {
3441
return (
35-
<StyledButton
36-
href="https://traefik.io/upgrade-traefik"
37-
target="_blank"
38-
style={style ? parseInlineStyle(style) : {}}
39-
>
40-
Upgrade
41-
</StyledButton>
42+
<StyledWrapper>
43+
<StyledButton
44+
href="https://traefik.io/upgrade-traefik"
45+
target="_blank"
46+
style={style ? parseInlineStyle(style) : {}}
47+
>
48+
Upgrade
49+
</StyledButton>
50+
</StyledWrapper>
4251
)
4352
}
4453

0 commit comments

Comments
 (0)