Skip to content

Commit 12499ab

Browse files
committed
+
1 parent 7fd81b4 commit 12499ab

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"plugin:jsx-a11y/recommended",
1111
"plugin:react-hooks/recommended",
1212
"plugin:@typescript-eslint/recommended",
13-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
14-
"plugin:astro/recommended"
13+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
1514
],
1615
"overrides": [],
1716
"parser": "@typescript-eslint/parser",

src/components/LandingPage/LandingPage.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const databases: string[] = [
3838
"LiteFS",
3939
"SQLite Cloud",
4040
"SQLite",
41+
"Prisma Postgres",
4142
"Web SQLite",
4243
];
4344
---

src/components/LandingPage/Supporting/Databases.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,19 @@ const Databases: {
162162
},
163163
sponsorUrl: "https://driz.link/sqlitecloud",
164164
},
165+
"Prisma Postgres": {
166+
imageSrc: {
167+
lightThemeSrc: "/public/svg/prisma.svg",
168+
darkThemeSrc: "/public/svg/prisma-dark.svg",
169+
},
170+
lightStyle: {
171+
width: 36,
172+
},
173+
darkStyle: {
174+
width: 36,
175+
},
176+
sponsorUrl: "https://twitter.com/DrizzleORM",
177+
},
165178
};
166179

167180
export default Databases;

src/components/LandingPage/Supporting/SupportingElement/SupportingElement.astro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const darkStylesSVGString = svgCodeDark.replace(/<svg/, `<svg ${getParamsString(
4343
{item.sponsorUrl && (
4444
<a href={item.sponsorUrl} target="_blank" rel="nofollow noreferrer">
4545
<div class="item">
46+
{name === "Prisma Postgres" && <div class="supporting__icon--blurred"></div>}
4647
<div class="icon supporting__icon">
4748
<div class={"img_light"}
4849
style={{
@@ -62,7 +63,7 @@ const darkStylesSVGString = svgCodeDark.replace(/<svg/, `<svg ${getParamsString(
6263
</div>
6364
</div>
6465
<div class="our_sponsor">
65-
our sponsor
66+
{name === "Prisma Postgres" ? "not yet" : "our"} sponsor
6667
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
6768
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" />
6869
</svg>
@@ -88,7 +89,6 @@ const darkStylesSVGString = svgCodeDark.replace(/<svg/, `<svg ${getParamsString(
8889
}}>
8990
{isSvg && <Fragment set:html={darkStylesSVGString} />}
9091
{!isSvg && <img class="image" src={getImagePath(isForTheme ? imageSrc.darkThemeSrc : imageSrc)} style={{...darkStyle as any}}/>}
91-
9292
</div>
9393
</div>
9494
{name}
@@ -147,6 +147,14 @@ const darkStylesSVGString = svgCodeDark.replace(/<svg/, `<svg ${getParamsString(
147147
background-color: rgba(240, 241, 242, 0.27);
148148
}
149149

150+
.supporting__icon--blurred {
151+
position: absolute;
152+
width: 100%;
153+
height: 100%;
154+
backdrop-filter: blur(2.2px);
155+
z-index: 1;
156+
}
157+
150158
html[class~=dark] .item {
151159
border: 1.7px solid rgb(64,64,64);
152160
background-color: #282828;

0 commit comments

Comments
 (0)