Skip to content

Commit

Permalink
feat: update layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Jan 5, 2025
1 parent 85cb977 commit 5325aad
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ export default defineConfig({
siteTitle: 'Leaf PHP',

search: {
provider: 'local',
// provider: 'algolia',
provider: 'local',

// options: {
// appId: 'Q38TT8XUN9',
// indexName: 'leafphp',
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/Home/Sponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SponsorGroup from '../shared/SponsorGroup.vue';
<h1 class="md:!text-5xl mb-2 md:mb-8">Leaf is all of us</h1>
<p class="md:px-[22%]">
Leaf is fully community backed. Your donations go a long way to help us keep Leaf running and keep up with the
demand associated with the growth of our tools. Here are our top sponsors ❤️
demand associated with the growth of our tools. Here are our current sponsors ❤️
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/shared/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const dismiss = () => {
<template>
<div ref="el" class="banner">
<div class="text">
🎉 You can now use <a href="/docs/auth/permissions">Roles and permissions</a> natively in your apps.
We need your help to keep Leaf's development active. <a href="/support/">Support Leaf today!</a>
</div>

<button type="button" @click="dismiss">
Expand Down
8 changes: 8 additions & 0 deletions .vitepress/theme/components/shared/GPTLink.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<a href="https://chatgpt.com/g/g-6778b7455748819183c634ccebce4c39-leaf-php" target="_blank"
class="mt-4 rounded-3xl bg-[var(--vp-c-bg-alt)] p-4 flex justify-center items-center gap-2 text-left">
<img src="https://github.com/user-attachments/assets/6238b360-6641-4c0f-ae1d-7d812d1d2713" alt="Leaf ChatGPT"
class="size-6" />
<small>Try out the Leaf ChatGPT coding assistant</small>
</a>
</template>
2 changes: 2 additions & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export default {
return h(DefaultTheme.Layout, null, {
'layout-top': () =>
h(defineAsyncComponent(() => import('./components/shared/Banner.vue'))),
// 'aside-ads-before' : () =>
// h(defineAsyncComponent(() => import('./components/shared/GPTLink.vue'))),
});
},
};
12 changes: 7 additions & 5 deletions src/public/sponsors.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
"url": "https://www.digitalocean.com/",
"img": "https://avatars.githubusercontent.com/u/4650108?s=200&v=4"
},
{
"name": "JetBrains",
"url": "https://www.jetbrains.com/",
"img": "https://avatars.githubusercontent.com/u/878437?s=200&v=4"
},
{
"name": "Terry",
"url": "https://github.com/terrybr",
"img": "https://avatars.githubusercontent.com/u/378788?v=4"
}
],
"pastSponsors": [
{
"name": "JetBrains",
"url": "https://www.jetbrains.com/",
"img": "https://avatars.githubusercontent.com/u/878437?s=200&v=4"
},
{
"name": "Vano",
Expand Down
6 changes: 5 additions & 1 deletion src/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ You can join our [Premium Sponsorship 🍁](https://opencollective.com/leaf/cont
- Mention in every release annoucement
- Dedicated first priority support from the Leaf team.

## Past/Present Sponsors
## Our Sponsors

We are grateful to all our sponsors, both past and present for their generous support 💚

<SponsorGroup group="sponsor" class="w-full" />

And our previous sponsors:

<SponsorGroup group="pastSponsors" class="w-full" />

## Financial Reports

We are committed to transparency and accountability in our financial management. We publish yearly financial reports to keep our sponsors informed about how their contributions are being used. The reports are always available and contain information up to the current month. They include a breakdown of expenses, revenue, and other financial details. You can find the latest financial reports on [finance.leafphp.dev](https://finance.leafphp.dev).

0 comments on commit 5325aad

Please sign in to comment.