Skip to content

Commit 712d2de

Browse files
committed
improved styling for dbms-icons on the homepage
1 parent 69bca75 commit 712d2de

File tree

2 files changed

+69
-12
lines changed

2 files changed

+69
-12
lines changed
+40-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,46 @@
11
export default {
22
load(): Data[] {
33
return <Data[]>[
4-
{ label: "ClickHouse", src: "/dbms-icons/clickhouse.svg" },
5-
{ label: "Microsoft SQL Server", src: "/dbms-icons/mssql.svg" },
6-
{ label: "MySQL", src: "/dbms-icons/mysql.svg" },
7-
{ label: "Oracle", src: "/dbms-icons/oracle.png" },
8-
{ label: "PostgreSQL", src: "/dbms-icons/postgresql.svg" },
9-
{ label: "Redshift", src: "/dbms-icons/redshift.svg" },
10-
{ label: "Snowflake", src: "/dbms-icons/snowflake.svg" },
11-
{ label: "SQLite", src: "/dbms-icons/sqlite.svg" },
4+
{
5+
label: "ClickHouse",
6+
href: "https://clickhouse.com/",
7+
src: "/dbms-icons/clickhouse.svg",
8+
},
9+
{
10+
label: "Microsoft SQL Server",
11+
href: "https://www.microsoft.com/en-us/sql-server",
12+
src: "/dbms-icons/mssql.svg",
13+
},
14+
{
15+
label: "MySQL",
16+
href: "https://www.mysql.com/",
17+
src: "/dbms-icons/mysql.svg",
18+
},
19+
{
20+
label: "Oracle",
21+
href: "https://www.oracle.com/database/",
22+
src: "/dbms-icons/oracle.png",
23+
},
24+
{
25+
label: "PostgreSQL",
26+
href: "https://www.postgresql.org/",
27+
src: "/dbms-icons/postgresql.svg",
28+
},
29+
{
30+
label: "Redshift",
31+
href: "https://aws.amazon.com/redshift/",
32+
src: "/dbms-icons/redshift.svg",
33+
},
34+
{
35+
label: "Snowflake",
36+
href: "https://www.snowflake.com/",
37+
src: "/dbms-icons/snowflake.svg",
38+
},
39+
{
40+
label: "SQLite",
41+
href: "https://www.sqlite.org/",
42+
src: "/dbms-icons/sqlite.svg",
43+
},
1244
]
1345
}
1446
}

src/webpage/src/index.md

+29-4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,31 @@ import { data as databases } from "/data/databases.data.ts";
4444
import { data as members } from "/data/members.data.ts";
4545
</script>
4646

47+
<style scoped>
48+
#dbms-links {
49+
display: flex;
50+
justify-content: space-around;
51+
flex-wrap: wrap;
52+
padding: 2rem 0;
53+
}
54+
#dbms-links > a {
55+
text-decoration: none;
56+
color: var(--vp-c-text-1);
57+
}
58+
#dbms-links > a:hover {
59+
text-decoration: underline;
60+
}
61+
#dbms-links > a > img {
62+
height: 100px;
63+
margin: 0 auto;
64+
filter: grayscale(100%);
65+
transition: filter 0.5s ease;
66+
}
67+
#dbms-links > a:hover > img {
68+
filter: grayscale(0%);
69+
}
70+
</style>
71+
4772
---
4873

4974
> [!IMPORTANT]
@@ -56,11 +81,11 @@ import { data as members } from "/data/members.data.ts";
5681

5782
<h1 style="text-align: center">DynAPI supports (soon) multiple DBMS</h1>
5883

59-
<div style="display: flex; justify-content: space-around; flex-wrap: wrap; padding: 2rem 0">
60-
<div v-for="db in databases">
61-
<img style="height: 100px; margin: 0 auto; filter: grayscale(1);" :alt="db.label" :src="withBase(db.src)" />
84+
<div id="dbms-links" style="">
85+
<a v-for="db in databases" :href="db.href">
86+
<img :alt="db.label" :src="withBase(db.src)" />
6287
<p style="text-align: center">{{ db.label }}</p>
63-
</div>
88+
</a>
6489
</div>
6590

6691
[//]: # (- Vertica)

0 commit comments

Comments
 (0)