Skip to content

Commit b07ce69

Browse files
committed
feat: updated homepage to modern looks
1 parent 394e789 commit b07ce69

18 files changed

+202
-139
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Laravelte Logo](public/img/laravelte-logo-full.png "text")
22

33
<p align="center">
4-
<a href="https://github.com/lexxyungcarter/laravelte/actions"><img src="https://github.com/lexxyungcarter/laravelte/workflows/tests/badge.svg" alt="Build Status"></a>
4+
![workflow](https://github.com/SyntaxLexx/laravelte/actions/workflows/deploy-ci.yml/badge.svg)
55
</p>
66

77
![Screenshot 1](public/img/laravelte-screenshot-1.jpg)

app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function share(Request $request): array
4949
},
5050
'siteLogo' => config('app.logo'),
5151
'siteName' => config('app.name'),
52+
'systemVersion' => config('system.version'),
5253
'locale' => Session::get('locale') ?? App::getLocale(),
5354
]);
5455

config/system.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use App\Models\User;
44

5-
$appVersion = '1.0.0';
5+
$appVersion = '0.0.2';
66

77
return [
88
// App Version

public/img/gumroad-button.jpg

10.2 KB
Loading

public/img/laravelte-dashboard.jpg

255 KB
Loading

public/img/laravelte-screenshot-1.jpg

302 KB
Loading

public/img/laravelte-screenshot-2.jpg

390 KB
Loading

public/img/laravelte-screenshot-3.jpg

471 KB
Loading

resources/css/app.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,11 @@ table .actions {
167167
.dark ::-webkit-scrollbar-thumb {
168168
background: #6e4695;
169169
}
170+
171+
.seva-fields.formkit-fields .formkit-field {
172+
flex:2 !important;
173+
margin-right:20px !important;
174+
}
175+
.seva-fields.formkit-fields .formkit-submit {
176+
flex: 1 !important;
177+
}

resources/ts/Components/Footer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
<div class="mt-12 border-t border-warm-gray-700 pt-8">
165165
<p class="text-base text-warm-gray-400 xl:text-center">
166166
&copy; {new Date().getFullYear()}
167-
{$page.props.siteName}. All rights reserved. Backed up by
167+
{$page.props.siteName}. All rights reserved. Backed by
168168
<a href="https://acelords.com" target="_blank">AceLords</a>
169169
</p>
170170
</div>

resources/ts/Components/Hero.svelte

Lines changed: 31 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script>
22
import { page } from '@inertiajs/svelte'
33
import { FancyButton, Icon } from '.'
4+
import SubscribeForm from './SubscribeForm.svelte'
45
</script>
56

67
<div class="pt-8 overflow-hidden sm:pt-12 lg:relative lg:py-48">
@@ -18,7 +19,7 @@
1819
What's new
1920
</span>
2021
<span class="inline-flex items-center text-sm font-medium text-primary-500 space-x-1">
21-
<span>Just shipped version 0.1.0</span>
22+
<span>Just shipped version {$page.props.systemVersion}</span>
2223
<!-- Heroicon name: solid/chevron-right -->
2324
<svg
2425
class="h-5 w-5"
@@ -38,109 +39,45 @@
3839
</div>
3940
<div class="mt-6 sm:max-w-xl">
4041
<h1 class="text-4xl font-extrabold text-gray-900 tracking-tight sm:text-5xl">
41-
Issue management for growing teams
42+
Laravel Webpp for Quality Applications
4243
</h1>
4344
<p class="mt-6 text-xl text-gray-500">
44-
Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo.
45+
We decided to open-source parts of our cash-cow projects, to showcase one way of how a sample
46+
small-to-medium sized project is built.
4547
</p>
4648
</div>
47-
<form action="#" class="mt-12 sm:max-w-lg sm:w-full sm:flex">
48-
<div class="min-w-0 flex-1">
49-
<label for="hero-email" class="sr-only">Email address</label>
50-
<input
51-
id="hero-email"
52-
type="email"
53-
class="block w-full border border-primary-300 rounded-md px-5 py-3 text-base text-gray-900 placeholder-gray-500 shadow-sm focus:border-tertiary-500 focus:ring-tertiary-500"
54-
placeholder="Enter your email"
55-
/>
56-
</div>
57-
<div class="mt-4 sm:mt-0 sm:ml-3">
58-
<button
59-
type="submit"
60-
class="block w-full rounded-md border border-transparent px-5 py-3 bg-tertiary-600 text-base font-medium text-white shadow hover:bg-tertiary-600 focus:outline-none focus:ring-2 focus:ring-tertiary-500 focus:ring-offset-2 sm:px-10"
61-
>Notify me</button
62-
>
63-
</div>
64-
</form>
49+
<div class="mt-5">
50+
<p class="text-xs mb-3">Subsribe to get the latest updates</p>
51+
<SubscribeForm />
52+
</div>
6553
<div class="mt-6">
6654
<div class="inline-flex items-center divide-x divide-primary-300">
6755
<div class="flex-shrink-0 flex pr-5">
68-
<!-- Heroicon name: solid/star -->
69-
<svg
70-
class="h-5 w-5 text-yellow-400"
71-
xmlns="http://www.w3.org/2000/svg"
72-
viewBox="0 0 20 20"
73-
fill="currentColor"
74-
aria-hidden="true"
75-
>
76-
<path
77-
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
78-
/>
79-
</svg>
80-
<!-- Heroicon name: solid/star -->
81-
<svg
82-
class="h-5 w-5 text-yellow-400"
83-
xmlns="http://www.w3.org/2000/svg"
84-
viewBox="0 0 20 20"
85-
fill="currentColor"
86-
aria-hidden="true"
87-
>
88-
<path
89-
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
90-
/>
91-
</svg>
92-
<!-- Heroicon name: solid/star -->
93-
<svg
94-
class="h-5 w-5 text-yellow-400"
95-
xmlns="http://www.w3.org/2000/svg"
96-
viewBox="0 0 20 20"
97-
fill="currentColor"
98-
aria-hidden="true"
99-
>
100-
<path
101-
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
102-
/>
103-
</svg>
104-
<!-- Heroicon name: solid/star -->
105-
<svg
106-
class="h-5 w-5 text-yellow-400"
107-
xmlns="http://www.w3.org/2000/svg"
108-
viewBox="0 0 20 20"
109-
fill="currentColor"
110-
aria-hidden="true"
111-
>
112-
<path
113-
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
114-
/>
115-
</svg>
116-
<!-- Heroicon name: solid/star -->
117-
<svg
118-
class="h-5 w-5 text-yellow-400"
119-
xmlns="http://www.w3.org/2000/svg"
120-
viewBox="0 0 20 20"
121-
fill="currentColor"
122-
aria-hidden="true"
123-
>
124-
<path
125-
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
126-
/>
127-
</svg>
56+
{#each Array(5).fill(5) as i}
57+
<Icon name="star" classes="text-yellow-400" />
58+
{/each}
12859
</div>
12960
<div class="min-w-0 flex-1 pl-5 py-1 text-sm text-gray-500 sm:py-3">
13061
<span class="font-medium text-gray-900">Rated 5 stars</span> by over
131-
<span class="font-medium text-tertiary-500">500 beta users</span>
62+
<span class="font-medium text-tertiary-500">20 beta users</span>
13263
</div>
13364
</div>
13465
</div>
13566
<br />
136-
<div class="lg:float-right lg:pr-10">
67+
<div class="w-full flex lg:justify-end lg:pr-10">
13768
<a href="https://github.com/SyntaxLexx/laravelte" class="no-underline" target="_blank">
13869
<FancyButton size="lg">
13970
View on Github
14071
<Icon name="link-external" />
14172
</FancyButton>
14273
</a>
14374
</div>
75+
<p class="mt-12 text-xl text-gray-500">
76+
This version is currently running on <span class="font-bold"
77+
>Laravel v{$page.props.laravelVersion}</span
78+
>
79+
paired with <span class="font-bold">PHP v{$page.props.phpVersion}</span>
80+
</p>
14481
</div>
14582
</div>
14683
</div>
@@ -149,7 +86,7 @@
14986
<div class="py-12 sm:relative sm:mt-12 sm:py-16 lg:absolute lg:inset-y-0 lg:right-0 lg:w-1/2">
15087
<div class="hidden sm:block">
15188
<div
152-
class="absolute inset-y-0 left-1/2 w-screen bg-gray-50 rounded-l-3xl lg:left-80 lg:right-0 lg:w-full"
89+
class="absolute inset-y-0 left-1/2 w-screen bg-primary-100 dark:bg-primary-800 rounded-l-3xl lg:left-80 lg:right-0 lg:w-full"
15390
/>
15491
<svg
15592
class="absolute top-8 right-1/2 -mr-3 lg:m-0 lg:left-0"
@@ -167,7 +104,14 @@
167104
height="20"
168105
patternUnits="userSpaceOnUse"
169106
>
170-
<rect x="0" y="0" width="4" height="4" class="text-gray-200" fill="currentColor" />
107+
<rect
108+
x="0"
109+
y="0"
110+
width="4"
111+
height="4"
112+
class="text-primary-400 dark:text-primary-500"
113+
fill="currentColor"
114+
/>
171115
</pattern>
172116
</defs>
173117
<rect width="404" height="392" fill="url(#837c3e70-6c3a-44e6-8854-cc48c737b659)" />
@@ -176,8 +120,8 @@
176120
<div class="relative pl-4 -mr-40 sm:mx-auto sm:max-w-3xl sm:px-0 lg:max-w-none lg:h-full lg:pl-12">
177121
<img
178122
class="w-full rounded-md shadow-xl ring-1 ring-black ring-opacity-5 lg:h-full lg:w-auto lg:max-w-none"
179-
src="https://tailwindui.com/img/component-images/task-app-rose.jpg"
180-
alt="img"
123+
src="/img/laravelte-dashboard.jpg"
124+
alt="dashboard"
181125
/>
182126
</div>
183127
</div>

resources/ts/Components/Icon.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
return 'bx bx-error-circle'
1717
case 'check':
1818
return 'bx bx-check'
19+
case 'star':
20+
return 'bx bxs-star'
21+
case 'star-empty':
22+
return 'bx bx-star'
1923
}
2024
2125
return `bx bx-${name}`
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<script lang="ts">
2+
import type { Testimonial } from '@/types'
3+
import { inertia, page } from '@inertiajs/svelte'
4+
5+
const testimonials: Testimonial[] = [
6+
{
7+
id: 1,
8+
names: 'Bee',
9+
content:
10+
"Our developers were able to go from 0-90% within a week by using their products. Couldn't be happier!",
11+
position: 'Entrepreneur',
12+
company: 'Good Reads',
13+
is_approved: true,
14+
created_at: new Date(),
15+
},
16+
{
17+
id: 2,
18+
names: 'David',
19+
content:
20+
'I cannot stess enough how quickly I am able to spin up projects for my clients by using Laravel coupled with a TS-backed svelte! Trully a life-saver!',
21+
position: 'Software Developer',
22+
company: 'Freelance',
23+
is_approved: true,
24+
created_at: new Date(),
25+
},
26+
{
27+
id: 3,
28+
names: 'Marverik',
29+
content: 'I am always looking forward to what next AceLords will release. ',
30+
position: 'Product Manager',
31+
company: 'Salomon Tech Tips',
32+
is_approved: true,
33+
created_at: new Date(),
34+
},
35+
]
36+
</script>
37+
38+
<div class="bg-primary-50 dark:bg-primary-900 relative overflow-hidden">
39+
<!-- Decorative background image and gradient -->
40+
<div aria-hidden="true" class="absolute inset-0">
41+
<div class="absolute inset-0 max-w-7xl mx-auto overflow-hidden xl:px-8">
42+
<img
43+
src="https://tailwindui.com/img/ecommerce-images/home-page-02-sale-full-width.jpg"
44+
alt=""
45+
class="w-full h-full object-center object-cover"
46+
/>
47+
</div>
48+
<div class="absolute inset-0 bg-primary-50 dark:bg-primary-900 bg-opacity-75 dark:bg-opacity-75" />
49+
<div
50+
class="absolute inset-0 bg-gradient-to-t from-primary-50 via-primary-50 dark:from-primary-800 dark:via-primary-900"
51+
/>
52+
</div>
53+
54+
<!-- Callout -->
55+
<section
56+
aria-labelledby="sale-heading"
57+
class="relative max-w-7xl mx-auto pt-32 px-4 flex flex-col items-center text-center sm:px-6 lg:px-8"
58+
>
59+
<div class="max-w-2xl mx-auto lg:max-w-none">
60+
<h2 id="sale-heading" class="text-4xl font-extrabold tracking-tight text-gray-900 sm:text-5xl lg:text-6xl">
61+
Get Lifetime Access to our <br />Premium Version
62+
</h2>
63+
<p class="mt-4 max-w-xl mx-auto text-xl text-gray-600 dark:text-primary-100">
64+
Get access to our premium version of {$page.props.siteName}:
65+
</p>
66+
<ul class="text-gray-600 dark:text-primary-200 mt-2">
67+
<li>Improved SEO management</li>
68+
<li>Horizon, logs, multi-site domain support</li>
69+
<li>Forgot password, reset password, 2-FA auth with Google|Github|Facebook</li>
70+
<li>Admin - Manage users</li>
71+
<li>Admin - Manage and update .env files straight from the dashboard</li>
72+
<li>Admin - Manage messages</li>
73+
<li>Admin - Manage notifications</li>
74+
<li>Admin - Manage more advances settings</li>
75+
<li>Users - Manage messages</li>
76+
<li>Users - Manage notifications</li>
77+
</ul>
78+
<a href="#" use:inertia class="mt-6 inline-block w-full sm:w-auto">
79+
<img src="/img/gumroad-button.jpg" alt="purchase on gumroad" />
80+
</a>
81+
</div>
82+
</section>
83+
84+
<!-- Testimonials -->
85+
<section
86+
aria-labelledby="testimonial-heading"
87+
class="relative max-w-7xl mx-auto pt-24 px-4 sm:px-6 lg:pt-32 lg:px-8 pb-12"
88+
>
89+
<div class="max-w-2xl mx-auto lg:max-w-none">
90+
<h2 id="testimonial-heading" class="text-2xl font-extrabold tracking-tight text-gray-900">
91+
What are people saying?
92+
</h2>
93+
94+
<div class="mt-16 space-y-16 lg:space-y-0 lg:grid lg:grid-cols-3 lg:gap-x-8">
95+
{#each testimonials as item}
96+
<blockquote class="sm:flex lg:block">
97+
<svg
98+
width="24"
99+
height="18"
100+
viewBox="0 0 24 18"
101+
xmlns="http://www.w3.org/2000/svg"
102+
aria-hidden="true"
103+
class="flex-shrink-0 text-gray-300 dark:text-primary-600"
104+
>
105+
<path
106+
d="M0 18h8.7v-5.555c-.024-3.906 1.113-6.841 2.892-9.68L6.452 0C3.188 2.644-.026 7.86 0 12.469V18zm12.408 0h8.7v-5.555C21.083 8.539 22.22 5.604 24 2.765L18.859 0c-3.263 2.644-6.476 7.86-6.451 12.469V18z"
107+
fill="currentColor"
108+
/>
109+
</svg>
110+
<div class="mt-8 sm:mt-0 sm:ml-6 lg:mt-10 lg:ml-0">
111+
<p class="text-lg text-gray-600 dark:text-primary-300">
112+
{item.content}
113+
</p>
114+
<cite class="mt-4 block font-semibold not-italic text-gray-900 dark:text-primary-200">
115+
{item.names}, {item.country ?? ''}
116+
</cite>
117+
</div>
118+
</blockquote>
119+
{/each}
120+
</div>
121+
</div>
122+
</section>
123+
</div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
import { onMount } from 'svelte'
3+
4+
let ready = false
5+
6+
onMount(() => {
7+
ready = true
8+
})
9+
</script>
10+
11+
{#if ready}
12+
<script async data-uid="a6ac2b78a7" src="https://cheerful-trailblazer-4399.ck.page/a6ac2b78a7/index.js"></script>
13+
{/if}

resources/ts/Layouts/AppLayout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
</li>
153153
{:else}
154154
<li>
155-
<a href="/login" class="nav-item">Login</a>
155+
<a href="/login" use:inertia class="nav-item">Login</a>
156156
</li>
157157
{/if}
158158
</ul>

0 commit comments

Comments
 (0)