Skip to content

Commit 36c94cb

Browse files
committed
feat: integrate Tailwind CSS and update layout to include Contributors section
1 parent 0fa3196 commit 36c94cb

7 files changed

Lines changed: 746 additions & 25 deletions

File tree

docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default defineConfig({
8787
],
8888
footer: {
8989
message: 'Made with ❤️',
90-
copyright: 'Copyright © 2024-present Saeed Vaziry'
90+
copyright: 'Copyright © 2024-present Saeed Vaziry and TweakPHP contributors',
9191
}
9292
}
9393
})

docs/.vitepress/theme/MyLayout.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<script setup>
2+
import DefaultTheme from 'vitepress/theme'
3+
import Contributors from "./components/Contributors.vue";
4+
5+
const { Layout } = DefaultTheme
6+
</script>
7+
8+
<template>
9+
<Layout>
10+
<template #home-features-after>
11+
<div
12+
class="flex flex-col justify-center items-center w-full mt-10"
13+
>
14+
<h3 class="text-4xl! font-semibold! text-center mb-4">Contributors</h3>
15+
<Contributors />
16+
</div>
17+
</template>
18+
</Layout>
19+
</template>

docs/.vitepress/theme/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ import {h} from 'vue'
33
import Theme from 'vitepress/theme'
44
import Contributors from './components/Contributors.vue'
55
import './style.css'
6+
import MyLayout from "./MyLayout.vue";
67

78
export default {
89
extends: Theme,
9-
Layout: () => {
10-
return h(Theme.Layout, null, {
11-
// https://vitepress.dev/guide/extending-default-theme#layout-slots
12-
})
13-
},
10+
Layout: MyLayout,
1411
enhanceApp({app, router, siteData}) {
1512
// app.component('Component', Component)
1613
app.component('Contributors', Contributors)

docs/.vitepress/theme/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "tailwindcss";
2+
13
:root {
24
--vp-c-brand-1: #be185d;
35
--vp-c-brand-2: #db2777;

0 commit comments

Comments
 (0)