Skip to content

Commit 0085223

Browse files
committed
feat(changelog): added route
1 parent 5dc1b81 commit 0085223

6 files changed

Lines changed: 54 additions & 7 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
class ChangelogController extends Controller
8+
{
9+
public function index()
10+
{
11+
return view('changelog');
12+
}
13+
}

public/css/app.css

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,10 @@ video {
674674
padding-left: 1rem;
675675
padding-right: 1rem;
676676
}
677+
.py-10 {
678+
padding-top: 2.5rem;
679+
padding-bottom: 2.5rem;
680+
}
677681
.px-3 {
678682
padding-left: 0.75rem;
679683
padding-right: 0.75rem;
@@ -694,6 +698,12 @@ video {
694698
.pb-3 {
695699
padding-bottom: 0.75rem;
696700
}
701+
.pt-32 {
702+
padding-top: 8rem;
703+
}
704+
.pt-4 {
705+
padding-top: 1rem;
706+
}
697707
.text-5xl {
698708
font-size: 3rem;
699709
line-height: 1;
@@ -720,6 +730,10 @@ video {
720730
--tw-text-opacity: 1;
721731
color: rgb(156 163 175 / var(--tw-text-opacity));
722732
}
733+
.text-gray-50 {
734+
--tw-text-opacity: 1;
735+
color: rgb(249 250 251 / var(--tw-text-opacity));
736+
}
723737
.text-white {
724738
--tw-text-opacity: 1;
725739
color: rgb(255 255 255 / var(--tw-text-opacity));
@@ -728,9 +742,9 @@ video {
728742
--tw-text-opacity: 1;
729743
color: rgb(209 213 219 / var(--tw-text-opacity));
730744
}
731-
.text-gray-50 {
745+
.text-gray-100 {
732746
--tw-text-opacity: 1;
733-
color: rgb(249 250 251 / var(--tw-text-opacity));
747+
color: rgb(243 244 246 / var(--tw-text-opacity));
734748
}
735749
.antialiased {
736750
-webkit-font-smoothing: antialiased;
@@ -751,6 +765,11 @@ video {
751765
color: rgb(255 255 255 / var(--tw-text-opacity));
752766
}
753767

768+
.hover\:underline:hover {
769+
-webkit-text-decoration-line: underline;
770+
text-decoration-line: underline;
771+
}
772+
754773
.focus\:outline-none:focus {
755774
outline: 2px solid transparent;
756775
outline-offset: 2px;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@extends('layouts.app-nav')
2+
3+
@section('content')
4+
<div class="container mx-auto px-2 text-gray-100">
5+
<div class="pt-4">
6+
<h1 class="font-bold text-5xl mb-8">Changelog</h1>
7+
8+
</div>
9+
</div>
10+
@endsection

resources/views/layouts/app-nav.blade.php

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

33
@section('nav')
44
<!-- This example requires Tailwind CSS v2.0+ -->
5-
<nav class="bg-zinc-900 fixed top-0 left-0 right-0" x-data="{ mobileMenuOpen: false }">
6-
<div class="container mx-auto px-4">
5+
<nav x-data="{ mobileMenuOpen: false }">
6+
<div class="container mx-auto px-4 py-10">
77
<div class="relative flex items-center justify-between h-16">
88
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
99
<!-- Mobile menu button-->
@@ -49,7 +49,9 @@ class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md tex
4949
</div>
5050
<div
5151
class="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0 text-gray-400 font-bold">
52-
{{ config('app.version') }}
52+
<a href="/changelog" class="hover:text-white hover:underline">
53+
{{ config('app.version') }}
54+
</a>
5355
</div>
5456
</div>
5557
</div>

resources/views/layouts/app.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
99
</head>
1010

11-
<body class="antialiased bg-gray-300">
11+
<body class="antialiased bg-zinc-900">
1212
@section('nav') @show
13-
<div class="min-h-screen pt-16">
13+
<div class="min-h-screen">
1414
@section('content') @show
1515
</div>
1616
<script type="text/javascript" src="{{ asset('js/app.js') }}"></script>

routes/web.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use App\Http\Controllers\ChangelogController;
34
use Illuminate\Support\Facades\Route;
45

56
/*
@@ -17,6 +18,8 @@
1718
return view('welcome');
1819
});
1920

21+
Route::get('/changelog', [ChangelogController::class, 'index']);
22+
2023
/*
2124
|--------------------------------------------------------------------------
2225
| Map Marker Routes

0 commit comments

Comments
 (0)