Skip to content

Commit 15f4613

Browse files
committed
feat(homepage): speedup by removing slow image
1 parent 58dfe04 commit 15f4613

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

app/Http/Controllers/HomeController.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,7 @@ class HomeController extends Controller
66
{
77
public function index()
88
{
9-
$versionEntry = $this->getLatestVersionEntryFromChangelog();
10-
11-
return view('welcome', compact('versionEntry'));
12-
}
13-
14-
protected function getLatestVersionEntryFromChangelog()
15-
{
16-
$changelogContent = file_get_contents(base_path('CHANGELOG.md'));
17-
$pieces = explode('# [', $changelogContent);
18-
19-
return trim('# [Release '.$pieces[1]);
9+
return view('welcome');
2010
}
2111

2212
public function license()

public/css/app.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,9 @@ select {
13291329
--tw-bg-opacity: 1;
13301330
background-color: rgb(24 24 27 / var(--tw-bg-opacity));
13311331
}
1332+
.bg-slate-700\/80 {
1333+
background-color: rgb(51 65 85 / 0.8);
1334+
}
13321335
.p-6 {
13331336
padding: 1.5rem;
13341337
}
@@ -1693,6 +1696,11 @@ select {
16931696
padding-bottom: 9rem;
16941697
}
16951698

1699+
.lg\:py-24 {
1700+
padding-top: 6rem;
1701+
padding-bottom: 6rem;
1702+
}
1703+
16961704
.lg\:text-center {
16971705
text-align: center;
16981706
}

resources/views/welcome.blade.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
<div class="md:grid grid-cols-3 gap-8">
77
<div class="col-span-3">
8-
<div class="rounded-lg mb-8 md:mb-0 hero">
9-
<div class="rounded-lg lg:text-center bg-indigo-700/80 p-6 lg:py-36">
8+
<div class="rounded-lg mb-8 md:mb-0">
9+
<div class="rounded-lg lg:text-center bg-slate-700/80 p-6 lg:py-24">
1010
<h1 class="text-3xl lg:text-5xl font-bold">
1111
Generate complex map markers on the fly.
1212
</h1>
@@ -70,13 +70,6 @@ class="no-underline -mb-4 mt-4 inline-block px-4 py-2 border border-transparent
7070
Get Started
7171
</a>
7272
</div>
73-
<div class="col-span-2">
74-
<div class="bg-slate-800 p-8 rounded-lg mt-4 mb-8 md:mb-0">
75-
<div class="changelog changelog-slim">
76-
<x-markdown>{{ $versionEntry }}</x-markdown>
77-
</div>
78-
</div>
79-
</div>
8073
</div>
8174
</div>
8275
@endsection

0 commit comments

Comments
 (0)