Skip to content

Commit 671488d

Browse files
committed
feat: update layout
1 parent d4989bc commit 671488d

File tree

10 files changed

+44
-41
lines changed

10 files changed

+44
-41
lines changed

.vitepress/theme/components/Community/Blog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const articles = [
2828
</script>
2929

3030
<template>
31-
<section id="blog" class="testimonials flex justify-center items-center h-[70vh] d-sm-down:none">
31+
<section id="blog" class="testimonials hidden md:flex justify-center items-center h-[70vh]">
3232
<div class="flex:center-between py:_10" style="display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem;">
3333
<div class="text-sm">
3434
<h2 class="title mb-4" style="text-align: left;">Latest writings from the Leaf team</h2>

.vitepress/theme/components/Community/Hero.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
<template>
55
<div class="flex flex-col min-h-[500px] justify-center items-center bg-[var(--vp-c-bg-alt)]">
6-
<h1 class="text-center !font-bold !text-7xl">
7-
<span>#Leaf</span> #Community
6+
<h1 class="text-center !font-bold !text-5xl md:!text-7xl">
7+
<span>#Leaf</span> <vue-writer
8+
:array="['#Community', '#Comunidad', '#Communauté', '#コミュニティ', '#社区', '#Comunidade']" />
89
</h1>
9-
<p class="text-center max-w-[600px] mt-4">
10-
Join our community of developers, contributors, and users to help us build a better framework for everyone.
11-
We
12-
welcome all contributions, from bug reports to feature requests, and code contributions.
10+
<p class="text-center max-w-[600px] mt-4 text-sm md:text-base p-2 sm:p-0">
11+
Our community is the heart of Leaf. Our community drives what we build, how we build it, and why we build it.
12+
Whether you are new to programming or a seasoned developer, you can join the community to hang out with other
13+
like-minded developers. 🌱
1314
</p>
1415
</div>
1516
</template>
@@ -21,4 +22,8 @@ h1 span {
2122
-webkit-background-clip: text;
2223
-webkit-text-fill-color: transparent;
2324
}
25+
26+
h1 * {
27+
display: inline !important;
28+
}
2429
</style>

.vitepress/theme/components/Community/Meetups.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
22
<div class="flex justify-center item-center py-48 bg-[var(--vp-c-bg-alt)]">
3-
<section class="container grid grid-cols-2">
4-
<img src="/images/community.svg" />
3+
<section class="container grid md:grid-cols-2">
4+
<img src="/images/community.svg" class="md:ml-5 mb-10 md:mb-0" />
55

6-
<div class="text-center mb-24">
7-
<h1 class="!text-3xl mb-8">Community meetups.</h1>
8-
<p class="px-[22%]">
6+
<div class="text-center flex flex-col items-center justify-center">
7+
<h1 class="!text-3xl font-semibold mb-8">Community meetups.</h1>
8+
<p class="md:px-[20%]">
99
Our first community meet up was in 2023 which we held together with SeevCash. Since then our community has
1010
gotten bigger, growing together with Leaf and all the tools in the ecosystem. Join our young but vibrant
1111
community and the Leaf team as we discuss our insights from the past year and what’s to come in the next

.vitepress/theme/components/Community/NewsLetterSubstack.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<template>
66
<section id="newsletter" class="NewsLetter">
77
<div class="container">
8-
<iframe src="https://leafphp.substack.com/embed" style="display: #041D24;" width="480" height="320" frameborder="0" scrolling="no"></iframe>
8+
<iframe src="https://leafphp.substack.com/embed" style="display: #041D24;" width="100%" height="320" frameborder="0" scrolling="no"></iframe>
99

1010
<p class="help">
1111
You can read our blog posts at

.vitepress/theme/components/Community/Speak.vue

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
<script setup lang="ts">
2+
import Button from '../shared/Button.vue';
3+
</script>
4+
15
<template>
2-
<section id="newsletter" class="speak flex-col flex:center-all">
6+
<section id="newsletter" class="speak flex flex-col justify-center items-center">
37
<div class="container">
4-
<div class="flex flex:center-all">
5-
<div class="flex flex:center-all border-radius:50 w:_5 h:_5 mb:_2" style="background: var(--vt-c-bg-soft);">
8+
<div class="flex justify-center items-center">
9+
<div class="flex justify-center items-center rounded-full w-12 h-12 mb-2"
10+
style="background: var(--vp-c-bg-soft);">
611
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 352 512" height="20px"
712
width="20px" xmlns="http://www.w3.org/2000/svg">
813
<path
@@ -16,11 +21,12 @@
1621
Want a Leaf core team member to speak at your next event? Invite us to create a memorable and engaging
1722
experience for your attendees.
1823
</p>
19-
<div class="flex flex:center-all">
20-
<a href="mailto:[email protected]?subject=Invitation to speak at our next event" rel="noopener" target="_blank"
21-
class="join-button mt:_3 w-xs:100 flex flex:center-all">
24+
25+
<div class="mt-5 text-center">
26+
<Button as="a" href="mailto:[email protected]?subject=Invitation to speak at our next event" rel="noopener"
27+
target="_blank" class="bg-white text-black m-auto">
2228
Reach out to us
23-
</a>
29+
</Button>
2430
</div>
2531
</div>
2632
</section>

.vitepress/theme/components/Community/WallOfFame.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import SponsorGroup from '../shared/SponsorGroup.vue';
66
<div class="flex justify-center item-center py-48">
77
<section class="flex flex-col justify-center items-center max-w-[1280px]">
88
<div class="text-center mb-10">
9-
<h1 class="!text-5xl font-bold mb-8">Wall of Fame</h1>
10-
<p class="px-[22%]">
9+
<h1 class="text-3xl md:!text-5xl font-bold mb-8">Wall of Fame</h1>
10+
<p class="p-2 md:px-[22%]">
1111
These are the heroes who have made Leaf what it is today. We are grateful for their contributions and support ❤️
1212
</p>
1313
</div>
1414

15-
<SponsorGroup group="code" class="w-full sm:!grid-cols-4 md:!grid-cols-6 lg:!grid-cols-8 xl:!grid-cols-10" />
15+
<SponsorGroup group="code" class="w-full sm:!grid-cols-4 md:!grid-cols-6 lg:!grid-cols-8 xl:!grid-cols-10 p-2" />
1616
</section>
1717
</div>
1818
</template>

.vitepress/theme/components/Community/Welcome.vue

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,14 @@ import Card from '../shared/Card.vue';
88
<section class="flex flex-col justify-center items-center container py-40">
99
<div class="text-center mb-12">
1010
<h1 class="flex justify-center text-center text-4xl font-bold mb-4">
11-
<vue-writer :array="['Hello, ', 'Hola, ', 'Bonjour, ', 'こんにちは, ', '你好, ', 'Olá, ']" /><span>welcome 👋</span>
11+
Keep in touch 💃
1212
</h1>
13-
<p class="max-w-[700px] mb-4">
14-
The community is the heart of Leaf. Unlike other frameworks, we let the community drive the development of Leaf.
15-
This includes RFCs, feature requests, bug reports, and code contributions. We welcome all contributions, no
16-
matter how
17-
small. We believe that the community is the backbone of any successful project. We are grateful for your support
18-
and contributions. Together, we can build a better framework for everyone. 🌱
19-
</p>
2013
<p>Join us on GitHub, Discord, Twitter or YouTube</p>
2114
</div>
2215

23-
<div class="grid grid-cols-4 gap-2 max-w-[850px]">
24-
<Card class="p-4 row-span-2 relative">
25-
<img src="/images/community/discord.png" class="rounded" alt="">
26-
<svg width="16" height="16" class="h-6 w-6 absolute right-6 top-6" viewBox="0 0 40 40" fill="none"
16+
<div class="grid sm:grid-cols-3 lg:grid-cols-5 lg:max-w-[1000px] gap-2">
17+
<Card class="p-4 relative">
18+
<svg width="16" height="16" class="h-6 w-6" viewBox="0 0 40 40" fill="none"
2719
xmlns="http://www.w3.org/2000/svg">
2820
<rect width="40" height="40" rx="10" fill="#5865F2"></rect>
2921
<mask id="mask0_4221_8593" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="8" y="8" width="24"
@@ -37,7 +29,7 @@ import Card from '../shared/Card.vue';
3729
</g>
3830
</svg>
3931

40-
<h3 class="font-bold mt-4">Leaf World 🍁 on Discord</h3>
32+
<h3 class="font-bold mt-4">Leaf on Discord</h3>
4133
<p class="text-sm">Join our Discord server to connect with the team and other users.</p>
4234
</Card>
4335
<Card class="p-4">
@@ -98,14 +90,14 @@ import Card from '../shared/Card.vue';
9890
<h3 class="font-bold mt-2">@leafphp on YouTube</h3>
9991
<p class="text-sm">Subscribe to our YouTube channel.</p>
10092
</Card>
101-
<Card class="p-4 col-span-2">
93+
<!-- <Card class="p-4 col-span-2">
10294
<img src="/logo-circle.png" alt="LeafPHP Logo" class="w-6 h-6 rounded-full">
10395
10496
<p class="text-sm mt-2">
10597
Contribute to Leaf, Hana or Naytive. We welcome all contributions, no matter how small. Your code can help
10698
make Leaf better for everyone.
10799
</p>
108-
</Card>
100+
</Card> -->
109101
</div>
110102
</section>
111103
</template>

.vitepress/theme/components/Home/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<section class="flex flex-col justify-center !py-24">
2+
<section class="hidden md:flex flex-col justify-center !py-24">
33
<img src="/logo-circle.png" class="w-14 h-14" alt="">
44
<div class="mt-6 grid grid-cols-5 md:gap-x-8 gap-y-12">
55
<div class="lg:col-span-2">

.vitepress/theme/components/Home/Hero.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Button from '../shared/Button.vue';
99
Elegant PHP <br>
1010
<span>for Modern Developers</span>
1111
</h1>
12-
<p class="text-center max-w-[600px]">
12+
<p class="text-center max-w-[600px] p-2 md:p-0 text-sm md:text-base">
1313
Leaf is a lightweight and user-friendly framework designed for quick and efficient development. It features a
1414
zero-config setup and an ecosystem of tools, making it ideal for building scalable apps with ease.
1515
</p>

.vitepress/theme/components/Home/Testimonials.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex justify-center item-center md:py-48 bg-[var(--vp-c-bg-secondary)]">
2+
<div class="hidden sm:flex justify-center item-center md:py-48 bg-[var(--vp-c-bg-secondary)]">
33
<section class="flex flex-col justify-center items-center">
44
<div class="text-center mb-16">
55
<h1 class="text-3xl md:!text-5xl px-[20%]">Loved by thousands of product people like you.</h1>

0 commit comments

Comments
 (0)