Skip to content

Commit

Permalink
feat(changelog): added route
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonnx committed Jun 25, 2022
1 parent 5dc1b81 commit 0085223
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 7 deletions.
13 changes: 13 additions & 0 deletions app/Http/Controllers/ChangelogController.php
@@ -0,0 +1,13 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class ChangelogController extends Controller
{
public function index()
{
return view('changelog');
}
}
23 changes: 21 additions & 2 deletions public/css/app.css
Expand Up @@ -674,6 +674,10 @@ video {
padding-left: 1rem;
padding-right: 1rem;
}
.py-10 {
padding-top: 2.5rem;
padding-bottom: 2.5rem;
}
.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
Expand All @@ -694,6 +698,12 @@ video {
.pb-3 {
padding-bottom: 0.75rem;
}
.pt-32 {
padding-top: 8rem;
}
.pt-4 {
padding-top: 1rem;
}
.text-5xl {
font-size: 3rem;
line-height: 1;
Expand All @@ -720,6 +730,10 @@ video {
--tw-text-opacity: 1;
color: rgb(156 163 175 / var(--tw-text-opacity));
}
.text-gray-50 {
--tw-text-opacity: 1;
color: rgb(249 250 251 / var(--tw-text-opacity));
}
.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
Expand All @@ -728,9 +742,9 @@ video {
--tw-text-opacity: 1;
color: rgb(209 213 219 / var(--tw-text-opacity));
}
.text-gray-50 {
.text-gray-100 {
--tw-text-opacity: 1;
color: rgb(249 250 251 / var(--tw-text-opacity));
color: rgb(243 244 246 / var(--tw-text-opacity));
}
.antialiased {
-webkit-font-smoothing: antialiased;
Expand All @@ -751,6 +765,11 @@ video {
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.hover\:underline:hover {
-webkit-text-decoration-line: underline;
text-decoration-line: underline;
}

.focus\:outline-none:focus {
outline: 2px solid transparent;
outline-offset: 2px;
Expand Down
10 changes: 10 additions & 0 deletions resources/views/changelog.blade.php
@@ -0,0 +1,10 @@
@extends('layouts.app-nav')

@section('content')
<div class="container mx-auto px-2 text-gray-100">
<div class="pt-4">
<h1 class="font-bold text-5xl mb-8">Changelog</h1>

</div>
</div>
@endsection
8 changes: 5 additions & 3 deletions resources/views/layouts/app-nav.blade.php
Expand Up @@ -2,8 +2,8 @@

@section('nav')
<!-- This example requires Tailwind CSS v2.0+ -->
<nav class="bg-zinc-900 fixed top-0 left-0 right-0" x-data="{ mobileMenuOpen: false }">
<div class="container mx-auto px-4">
<nav x-data="{ mobileMenuOpen: false }">
<div class="container mx-auto px-4 py-10">
<div class="relative flex items-center justify-between h-16">
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
<!-- Mobile menu button-->
Expand Down Expand Up @@ -49,7 +49,9 @@ class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md tex
</div>
<div
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">
{{ config('app.version') }}
<a href="/changelog" class="hover:text-white hover:underline">
{{ config('app.version') }}
</a>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/app.blade.php
Expand Up @@ -8,9 +8,9 @@
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>

<body class="antialiased bg-gray-300">
<body class="antialiased bg-zinc-900">
@section('nav') @show
<div class="min-h-screen pt-16">
<div class="min-h-screen">
@section('content') @show
</div>
<script type="text/javascript" src="{{ asset('js/app.js') }}"></script>
Expand Down
3 changes: 3 additions & 0 deletions routes/web.php
@@ -1,5 +1,6 @@
<?php

use App\Http\Controllers\ChangelogController;
use Illuminate\Support\Facades\Route;

/*
Expand All @@ -17,6 +18,8 @@
return view('welcome');
});

Route::get('/changelog', [ChangelogController::class, 'index']);

/*
|--------------------------------------------------------------------------
| Map Marker Routes
Expand Down

0 comments on commit 0085223

Please sign in to comment.