Skip to content

Commit 2bcc2a1

Browse files
committed
feat(homepage): added homepage with latest release
1 parent 9e70cae commit 2bcc2a1

11 files changed

Lines changed: 202 additions & 58 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
class HomeController extends Controller
8+
{
9+
public function index()
10+
{
11+
$versionEntry = $this->getLatestVersionEntryFromChangelog();
12+
return view('welcome', compact('versionEntry'));
13+
}
14+
15+
protected function getLatestVersionEntryFromChangelog()
16+
{
17+
$changelogContent = file_get_contents(base_path('CHANGELOG.md'));
18+
$pieces = explode("# [", $changelogContent);
19+
return trim("# [Release " . $pieces[1]);
20+
}
21+
}

‎public/css/app.css‎

Lines changed: 118 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ video {
573573
.right-0 {
574574
right: 0px;
575575
}
576+
.col-span-2 {
577+
grid-column: span 2 / span 2;
578+
}
576579
.mx-auto {
577580
margin-left: auto;
578581
margin-right: auto;
@@ -583,9 +586,21 @@ video {
583586
.mt-12 {
584587
margin-top: 3rem;
585588
}
589+
.mt-6 {
590+
margin-top: 1.5rem;
591+
}
586592
.ml-2 {
587593
margin-left: 0.5rem;
588594
}
595+
.mt-4 {
596+
margin-top: 1rem;
597+
}
598+
.mb-2 {
599+
margin-bottom: 0.5rem;
600+
}
601+
.mb-3 {
602+
margin-bottom: 0.75rem;
603+
}
589604
.block {
590605
display: block;
591606
}
@@ -595,6 +610,9 @@ video {
595610
.inline-flex {
596611
display: inline-flex;
597612
}
613+
.table {
614+
display: table;
615+
}
598616
.hidden {
599617
display: none;
600618
}
@@ -616,6 +634,9 @@ video {
616634
.w-auto {
617635
width: auto;
618636
}
637+
.w-full {
638+
width: 100%;
639+
}
619640
.max-w-3xl {
620641
max-width: 48rem;
621642
}
@@ -625,6 +646,9 @@ video {
625646
.flex-shrink-0 {
626647
flex-shrink: 0;
627648
}
649+
.grid-cols-2 {
650+
grid-template-columns: repeat(2, minmax(0, 1fr));
651+
}
628652
.items-center {
629653
align-items: center;
630654
}
@@ -634,6 +658,9 @@ video {
634658
.justify-between {
635659
justify-content: space-between;
636660
}
661+
.gap-8 {
662+
gap: 2rem;
663+
}
637664
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
638665
--tw-space-x-reverse: 0;
639666
margin-right: calc(1rem * var(--tw-space-x-reverse));
@@ -644,21 +671,33 @@ video {
644671
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
645672
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
646673
}
674+
.rounded-lg {
675+
border-radius: 0.5rem;
676+
}
647677
.rounded-md {
648678
border-radius: 0.375rem;
649679
}
650-
.bg-gray-900 {
680+
.bg-indigo-700\/80 {
681+
background-color: rgb(67 56 202 / 0.8);
682+
}
683+
.bg-slate-800 {
651684
--tw-bg-opacity: 1;
652-
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
685+
background-color: rgb(30 41 59 / var(--tw-bg-opacity));
653686
}
654-
.bg-gray-700 {
687+
.bg-gray-900 {
655688
--tw-bg-opacity: 1;
656-
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
689+
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
657690
}
658691
.bg-zinc-900 {
659692
--tw-bg-opacity: 1;
660693
background-color: rgb(24 24 27 / var(--tw-bg-opacity));
661694
}
695+
.p-6 {
696+
padding: 1.5rem;
697+
}
698+
.p-8 {
699+
padding: 2rem;
700+
}
662701
.p-2 {
663702
padding: 0.5rem;
664703
}
@@ -670,9 +709,9 @@ video {
670709
padding-left: 1rem;
671710
padding-right: 1rem;
672711
}
673-
.py-10 {
674-
padding-top: 2.5rem;
675-
padding-bottom: 2.5rem;
712+
.py-1 {
713+
padding-top: 0.25rem;
714+
padding-bottom: 0.25rem;
676715
}
677716
.px-3 {
678717
padding-left: 0.75rem;
@@ -682,19 +721,11 @@ video {
682721
padding-top: 0.5rem;
683722
padding-bottom: 0.5rem;
684723
}
685-
.py-4 {
686-
padding-top: 1rem;
687-
padding-bottom: 1rem;
688-
}
689-
.py-1 {
690-
padding-top: 0.25rem;
691-
padding-bottom: 0.25rem;
692-
}
693724
.pt-4 {
694725
padding-top: 1rem;
695726
}
696-
.pt-16 {
697-
padding-top: 4rem;
727+
.pb-24 {
728+
padding-bottom: 6rem;
698729
}
699730
.pr-2 {
700731
padding-right: 0.5rem;
@@ -705,10 +736,20 @@ video {
705736
.pb-3 {
706737
padding-bottom: 0.75rem;
707738
}
739+
.pb-2 {
740+
padding-bottom: 0.5rem;
741+
}
742+
.text-right {
743+
text-align: right;
744+
}
708745
.text-5xl {
709746
font-size: 3rem;
710747
line-height: 1;
711748
}
749+
.text-3xl {
750+
font-size: 1.875rem;
751+
line-height: 2.25rem;
752+
}
712753
.text-xl {
713754
font-size: 1.25rem;
714755
line-height: 1.75rem;
@@ -721,16 +762,27 @@ video {
721762
font-size: 1rem;
722763
line-height: 1.5rem;
723764
}
765+
.text-2xl {
766+
font-size: 1.5rem;
767+
line-height: 2rem;
768+
}
724769
.font-bold {
725770
font-weight: 700;
726771
}
772+
.font-black {
773+
font-weight: 900;
774+
}
727775
.font-medium {
728776
font-weight: 500;
729777
}
730778
.text-gray-100 {
731779
--tw-text-opacity: 1;
732780
color: rgb(243 244 246 / var(--tw-text-opacity));
733781
}
782+
.text-gray-200 {
783+
--tw-text-opacity: 1;
784+
color: rgb(229 231 235 / var(--tw-text-opacity));
785+
}
734786
.text-gray-400 {
735787
--tw-text-opacity: 1;
736788
color: rgb(156 163 175 / var(--tw-text-opacity));
@@ -747,6 +799,10 @@ video {
747799
--tw-text-opacity: 1;
748800
color: rgb(209 213 219 / var(--tw-text-opacity));
749801
}
802+
.text-green-500 {
803+
--tw-text-opacity: 1;
804+
color: rgb(34 197 94 / var(--tw-text-opacity));
805+
}
750806
.antialiased {
751807
-webkit-font-smoothing: antialiased;
752808
-moz-osx-font-smoothing: grayscale;
@@ -756,18 +812,31 @@ video {
756812
display: none !important;
757813
}
758814

815+
.hero {
816+
background-image: url('/images/map.jpg');
817+
background-size: cover;
818+
background-position: center center;
819+
}
820+
759821
.changelog {
760-
padding-bottom: 6rem;
761822
--tw-text-opacity: 1;
762823
color: rgb(229 231 235 / var(--tw-text-opacity));
763824
}
764825

765826
.changelog h1,
766-
h2 {
827+
.changelog h2 {
767828
margin-top: 2rem;
768829
font-size: 1.5rem;
769830
line-height: 2rem;
770-
font-weight: 700;
831+
font-weight: 900;
832+
}
833+
834+
.changelog.changelog-slim h1,
835+
.changelog.changelog-slim h2 {
836+
margin-top: 0px;
837+
font-size: 1.5rem;
838+
line-height: 2rem;
839+
font-weight: 900;
771840
}
772841

773842
.changelog h3 {
@@ -794,11 +863,6 @@ h2 {
794863
color: rgb(255 255 255 / var(--tw-text-opacity));
795864
}
796865

797-
.hover\:underline:hover {
798-
-webkit-text-decoration-line: underline;
799-
text-decoration-line: underline;
800-
}
801-
802866
.focus\:outline-none:focus {
803867
outline: 2px solid transparent;
804868
outline-offset: 2px;
@@ -859,12 +923,41 @@ h2 {
859923

860924
@media (min-width: 768px) {
861925

926+
.md\:mb-0 {
927+
margin-bottom: 0px;
928+
}
929+
862930
.md\:inline-block {
863931
display: inline-block;
864932
}
865933

934+
.md\:grid {
935+
display: grid;
936+
}
937+
866938
.md\:py-10 {
867939
padding-top: 2.5rem;
868940
padding-bottom: 2.5rem;
869941
}
870942
}
943+
944+
@media (min-width: 1024px) {
945+
946+
.lg\:p-36 {
947+
padding: 9rem;
948+
}
949+
950+
.lg\:py-36 {
951+
padding-top: 9rem;
952+
padding-bottom: 9rem;
953+
}
954+
955+
.lg\:text-center {
956+
text-align: center;
957+
}
958+
959+
.lg\:text-5xl {
960+
font-size: 3rem;
961+
line-height: 1;
962+
}
963+
}

‎public/images/map.jpg‎

400 KB
Loading

‎public/mix-manifest.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"/js/app.js": "/js/app.js",
3-
"/css/app.css": "/css/app.css"
3+
"/css/app.css": "/css/app.css",
4+
"/images/hero-3d.jpg": "/images/hero-3d.jpg",
5+
"/images/map.jpg": "/images/map.jpg"
46
}

‎resources/assets/images/map.jpg‎

400 KB
Loading

‎resources/css/app.css‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,24 @@
66
display: none !important;
77
}
88

9+
.hero {
10+
background-image: url('/images/map.jpg');
11+
background-size: cover;
12+
background-position: center center;
13+
}
14+
915
.changelog {
10-
@apply text-gray-200 pb-24
16+
@apply text-gray-200
1117
}
1218

1319
.changelog h1,
14-
h2 {
15-
@apply text-2xl mt-8 font-bold
20+
.changelog h2 {
21+
@apply text-2xl mt-8 font-black
22+
}
23+
24+
.changelog.changelog-slim h1,
25+
.changelog.changelog-slim h2 {
26+
@apply text-2xl mt-0 font-black
1627
}
1728

1829
.changelog h3 {

‎resources/views/changelog.blade.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p class="max-w-3xl">Here is the list of latest changes to the MapMarker.io platform. These notes are compiled
88
automatically with every release so these will be up-to-date with the latest changes available. You can find
99
the source file in our Github repo.</p>
10-
<div class="changelog mt-12">
10+
<div class="changelog changelog-slim mt-12 pb-24">
1111
<x-markdown>{{ $changelogContent }}</x-markdown>
1212
</div>
1313
</div>

0 commit comments

Comments
 (0)