Skip to content

Commit

Permalink
Add demo banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Einenlum committed Jan 24, 2024
1 parent ee1ae71 commit d6d9188
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/application-logo.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="pt-6 sm:pb-8 sm:pt-12 md:py-12 mx-auto text-center fill-current">
<a href="{{ route('home') }}" class="block text-center mx-auto">
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="w-20 h-20 sm:w-32 sm:h-32 mx-auto text-center text-gray-500 dark:text-gray-400"
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="w-20 h-20 sm:w-32 sm:h-32 mx-auto text-center text-firstcolor-900 dark:text-gray-400"
viewBox="0 0 422.666 422.666" xml:space="preserve">
<g>
<path d="M210.712,276.293l82.19-112.294c0.83-1.134,1.004-2.62,0.459-3.915s-1.729-2.209-3.121-2.408l-90.313-12.902
Expand Down
4 changes: 4 additions & 0 deletions resources/views/components/demo-banner.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="bg-firstcolor-900 text-center py-4 text-white">
<p>This is a demo website. Data is reset every hour.</p>
<p class="mt-2"><span class="i-lucide-github"></span> Github repository is <a href="https://github.com/Einenlum/pinball-friends" class="font-bold text-secondcolor-400 hover:text-secondcolor-600 transition">here</a>.</p>
</div>
4 changes: 4 additions & 0 deletions resources/views/layouts/guest.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body class="font-cursive text-gray-900 antialiased bg-gray-100 dark:bg-nightmainbg-dark">
@env('demo')
<x-demo-banner />
@endenv

<x-application-logo />

<div class="mx-auto w-full min-h-screen sm:min-h-0 mt-6 px-6 pt-4 pb-12 sm:pb-24 sm:mb-8 sm:w-4/5 md:w-3/4 lg:w-1/2 bg-white dark:bg-nightmainbg shadow-md sm:rounded-lg bg-gradient-to-b from-gray-100 to-transparent from-0% via-white via-10% sm:bg-none dark:bg-none">
Expand Down

0 comments on commit d6d9188

Please sign in to comment.