Skip to content

Commit ccdfd43

Browse files
Merge pull request #8 from hamdymohamedak/main
docs: hero and At a glance polish, fix vp-doc table layout
2 parents f6d8d48 + 7d51e34 commit ccdfd43

8 files changed

Lines changed: 660 additions & 220 deletions

File tree

‎.vitepress/components/ComparisonMatrix.vue‎

Lines changed: 371 additions & 64 deletions
Large diffs are not rendered by default.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<script setup lang="ts">
2+
import { computed } from "vue";
3+
import VPButton from "vitepress/dist/client/theme-default/components/VPButton.vue";
4+
import { OPENFETCH_NPM_PACKAGE, OPENFETCH_VERSION } from "../openfetch-version";
5+
6+
const bundlephobiaHref = computed(
7+
() =>
8+
`https://bundlephobia.com/package/${OPENFETCH_NPM_PACKAGE}@${OPENFETCH_VERSION}`,
9+
);
10+
</script>
11+
12+
<template>
13+
<div class="of-hero-bundle-phobia">
14+
<VPButton
15+
tag="a"
16+
size="medium"
17+
theme="alt"
18+
text="Bundle Size"
19+
:href="bundlephobiaHref"
20+
target="_blank"
21+
rel="noopener noreferrer"
22+
/>
23+
</div>
24+
</template>
25+
26+
<style scoped>
27+
.of-hero-bundle-phobia {
28+
display: flex;
29+
justify-content: center;
30+
width: 100%;
31+
margin-top: 10px;
32+
margin-bottom: 2px;
33+
}
34+
35+
.of-hero-bundle-phobia :deep(.VPButton) {
36+
min-height: 40px;
37+
}
38+
</style>

0 commit comments

Comments
 (0)