Skip to content

Commit 709ec20

Browse files
committed
fix: link style
1 parent edd6079 commit 709ec20

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

src/assets/svgs/main/next.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/PageContent/WhatsNext.astro

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import i18next, { t } from "i18next"
3+
import NextSvg from "~/assets/svgs/main/next.svg?raw"
34
export type Props = { content: Record<string, string> }
45
const { content = {} } = Astro.props as Props
56
---
@@ -11,23 +12,10 @@ const { content = {} } = Astro.props as Props
1112
Object.keys(content).map((key) => (
1213
<li>
1314
<a href={content[key]}>
14-
<svg
15-
style="margin-right: 26px"
16-
xmlns="http://www.w3.org/2000/svg"
17-
width="6"
18-
height="10"
19-
viewBox="0 0 6 10"
20-
fill="none"
21-
class="text-black dark:text-white"
22-
>
23-
<path
24-
fill-rule="evenodd"
25-
clip-rule="evenodd"
26-
d="M6 5.00024C6 5.2319 5.90774 5.44971 5.74019 5.61356L1.51387 9.74655C1.16802 10.0845 0.60566 10.0845 0.259811 9.74655C0.0922641 9.5827 -2.77618e-08 9.36488 -3.78877e-08 9.13323C-4.80137e-08 8.90157 0.0922641 8.68376 0.259811 8.51991L3.85925 4.99997L0.259811 1.4803C0.0922638 1.31645 -3.89091e-07 1.09863 -3.99217e-07 0.866979C-4.09343e-07 0.635323 0.0922637 0.417505 0.259811 0.253658C0.60566 -0.0845528 1.1683 -0.0845528 1.51387 0.253658L5.74019 4.38665C5.90774 4.55049 6 4.76831 6 4.99996L6 5.00024Z"
27-
fill="currentColor"
28-
/>
29-
</svg>{" "}
30-
{key}
15+
<>
16+
<Fragment set:html={NextSvg} />
17+
{key}
18+
</>
3119
</a>
3220
</li>
3321
))
@@ -62,7 +50,7 @@ const { content = {} } = Astro.props as Props
6250
.whats-next {
6351
padding: 0;
6452
@apply border-[1px] border-solid border-primary dark:border-dark-primary overflow-hidden;
65-
border-radius: 27px;
53+
border-radius: 10px;
6654
}
6755
.whats-next li:first-child {
6856
border-top: 0;
@@ -75,9 +63,10 @@ const { content = {} } = Astro.props as Props
7563
.whats-next li a {
7664
width: 100%;
7765
display: inline-flex;
78-
padding: 20px 30px;
66+
padding: 16px 20px;
67+
gap: 8px;
7968
}
8069
.whats-next li a:hover {
81-
@apply bg-normal dark:bg-dark-normal;
70+
@apply bg-white dark:bg-dark-normal;
8271
}
8372
</style>

0 commit comments

Comments
 (0)