Skip to content

Commit 4d8865f

Browse files
committed
feat: Add MSSQL image link
1 parent a74affb commit 4d8865f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/assets/images/mssql.png

278 KB
Loading

src/ui/components/RightAside.astro

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
---
2+
import { Image } from "astro:assets";
23
import AsideArticle from "./AsidePosts.astro";
34
import AsideSponsors from "./AsideSponsors.astro";
45
import SmallProgressBar from "./SmallProgressBar.astro";
56
import progress from "../../data/progress";
67
import Toasts from "./Toasts.astro";
8+
import MSSQL from "@/assets/images/mssql.png";
79
---
810

911
<div class="aside-right">
1012
<div class="aside-right__content">
13+
<a
14+
class="mssql-wrap"
15+
target="_blank"
16+
rel="norefferer nofollow"
17+
href="https://mssql.drizzle.team"
18+
>
19+
<Image src={MSSQL} alt="MSSQL Drizzle" />
20+
</a>
1121
<div class="progress-wrap">
1222
<SmallProgressBar progress={progress} />
1323
</div>
@@ -29,6 +39,29 @@ import Toasts from "./Toasts.astro";
2939
position: relative;
3040
}
3141

42+
.mssql-wrap {
43+
overflow: hidden;
44+
aspect-ratio: 3.555;
45+
margin-bottom: 4px;
46+
border-radius: 4px;
47+
}
48+
49+
.mssql-wrap img {
50+
transition:
51+
transform 0.3s ease,
52+
filter 0.3s ease;
53+
transform-origin: center center;
54+
display: block;
55+
width: 100%;
56+
height: 100%;
57+
object-fit: cover;
58+
}
59+
60+
.mssql-wrap:hover img {
61+
filter: brightness(1.35);
62+
transform: scale(1.1);
63+
}
64+
3265
html.dark .aside-right__content {
3366
background-color: #111;
3467
}

0 commit comments

Comments
 (0)