Skip to content

Commit f3418a9

Browse files
committed
revamp: update fonts and improved home page navigation
1 parent 224c2c0 commit f3418a9

13 files changed

Lines changed: 567 additions & 132 deletions

File tree

.claude/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.0.1",
3+
"configurations": [
4+
{
5+
"name": "dev",
6+
"runtimeExecutable": "pnpm",
7+
"runtimeArgs": ["dev"],
8+
"port": 5173
9+
}
10+
]
11+
}

docs/.vitepress/config.mts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,21 @@ export default withMermaid(
9393
head: [
9494
["link", { rel: "icon", href: "/logo/favicon-32x32.png" }],
9595

96+
<<<<<<< Updated upstream
97+
=======
98+
// Font preload for critical rendering
99+
[
100+
"link",
101+
{
102+
rel: "preload",
103+
href: "/fonts/Inter/Inter-roman.var.woff2",
104+
as: "font",
105+
type: "font/woff2",
106+
crossorigin: "",
107+
},
108+
],
109+
110+
>>>>>>> Stashed changes
96111
// Google Analytics with Consent Mode v2
97112
["script", { async: "", src: "https://www.googletagmanager.com/gtag/js?id=G-JF828SKW90" }],
98113
[
@@ -190,8 +205,8 @@ export default withMermaid(
190205
{ text: "Self-hosting", link: "/self-hosting/overview" },
191206
{ text: "API Reference", link: "/api-reference/introduction" },
192207
{ text: "Build and extend", link: "/dev-tools/build-plane-app/overview" },
193-
{ text: "Plane Docs", link: "https://docs.plane.so" },
194-
{ text: "Sign in", link: "https://app.plane.so/sign-in" },
208+
{ text: "Plane Docs", link: "https://docs.plane.so", noIcon: true },
209+
{ text: "Sign in", link: "https://app.plane.so/sign-in", noIcon: true },
195210
],
196211

197212
sidebar: {
@@ -758,13 +773,6 @@ export default withMermaid(
758773
],
759774
},
760775

761-
socialLinks: [
762-
{ icon: "github", link: "https://github.com/makeplane/plane" },
763-
{ icon: "discord", link: "https://discord.com/invite/A92xrEGCge" },
764-
{ icon: "twitter", link: "https://twitter.com/planepowers" },
765-
{ icon: "linkedin", link: "https://www.linkedin.com/company/planepowers/" },
766-
],
767-
768776
search: searchConfig,
769777

770778
editLink: {

docs/.vitepress/theme/components/Card.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const customSvgIcons = {
3333
`,
3434
coolify: `<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" xml:space="preserve" viewBox="0 0 512 512"><path d="M63.7-161.7h-90.9v272.8h90.9zm0 363.7h363.7v-90.9H63.7zm0-363.7h363.7v-90.9H63.7z" style="fill:#006399;fill-opacity:.302" transform="translate(84.664 310.016)"/><path d="M48.2-177.1h-90.9V95.6h90.9zm0 363.6h363.7V95.6H48.2zm0-363.6h363.7V-268H48.2z" style="fill:#006399;fill-opacity:.502" transform="translate(71.406 296.758)"/><path d="M32.8-192.6h-90.9V80.2h90.9zm0 363.7h363.7V80.2H32.8zm0-363.7h363.7v-90.9H32.8z" style="fill:#006399" transform="translate(58.147 283.5)"/></svg>`,
3535
36+
github: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844a9.59 9.59 0 0 1 2.504.337c1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.02 10.02 0 0 0 22 12.017C22 6.484 17.522 2 12 2Z" fill="currentColor"/></svg>`,
3637
// Add more icons as needed
3738
};
3839
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<script setup>
2+
import { useRoute } from "vitepress";
3+
import { computed } from "vue";
4+
5+
const route = useRoute();
6+
7+
const sections = [
8+
{ text: "Self-hosting", link: "/self-hosting/overview", match: "/self-hosting/" },
9+
{ text: "API Reference", link: "/api-reference/introduction", match: "/api-reference/" },
10+
{ text: "Build & Extend", link: "/dev-tools/build-plane-app/overview", match: "/dev-tools/" },
11+
];
12+
13+
const activeSection = computed(() => {
14+
const path = route.path;
15+
for (const section of sections) {
16+
if (path.startsWith(section.match)) return section.match;
17+
}
18+
return "";
19+
});
20+
</script>
21+
22+
<template>
23+
<div class="tab-nav">
24+
<div class="tab-nav-wrapper">
25+
<div class="tab-nav-container">
26+
<div class="tab-nav-content">
27+
<div class="tab-nav-inner">
28+
<a
29+
v-for="section in sections"
30+
:key="section.match"
31+
:href="section.link"
32+
class="tab-nav-link"
33+
:class="{ active: activeSection === section.match }"
34+
>
35+
{{ section.text }}
36+
</a>
37+
</div>
38+
</div>
39+
</div>
40+
</div>
41+
</div>
42+
</template>

docs/.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ResponsePanel from "./components/ResponsePanel.vue";
1212
import Card from "./components/Card.vue";
1313
import CardGroup from "./components/CardGroup.vue";
1414
import CookieConsent from "./components/CookieConsent.vue";
15+
import TabNav from "./components/TabNav.vue";
1516

1617
/**
1718
* Adds 'api-page' class to hide the aside on API reference pages
@@ -110,6 +111,7 @@ export default {
110111
extends: DefaultTheme,
111112
Layout() {
112113
return h(DefaultTheme.Layout, null, {
114+
"layout-top": () => h(TabNav),
113115
"layout-bottom": () => h(CookieConsent),
114116
});
115117
},

0 commit comments

Comments
 (0)