5
common/resources/views/install/components/install-button.blade.php
Executable file
5
common/resources/views/install/components/install-button.blade.php
Executable file
@@ -0,0 +1,5 @@
|
||||
@if($attributes->has('href'))
|
||||
<a href="{{ $attributes->get('href') }}" type="submit" class="mt-24 block w-max py-8 px-16 bg-primary font-semibold text-on-primary rounded shadow active:bg-primary-dark focus:ring">{{$slot}}</a>
|
||||
@else
|
||||
<button type="submit" class="mt-24 block w-max py-8 px-16 bg-primary font-semibold text-on-primary rounded shadow active:bg-primary-dark focus:ring">{{$slot}}</button>
|
||||
@endif
|
||||
23
common/resources/views/install/components/install-layout.blade.php
Executable file
23
common/resources/views/install/components/install-layout.blade.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
$cssVariables = collect(config('common.themes.light'))
|
||||
->mapWithKeys(fn($value, $key) => [$key => $value])
|
||||
->map(fn($value, $key) => "$key: $value;")
|
||||
->implode('');
|
||||
$buttonClass =
|
||||
'py-8 px-16 bg-primary font-semibold text-on-primary rounded shadow active:bg-primary-dark focus:ring';
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html style="{{$cssVariables}}">
|
||||
<head>
|
||||
<title>Install</title>
|
||||
@vite('resources/client/main.css')
|
||||
</head>
|
||||
<body class="bg-alt flex flex-col items-center justify-center text-main">
|
||||
<img src="{{ file_exists(public_path('images/logo-dark.png')) ? asset('images/logo-dark.png') : asset('images/logo-dark.svg') }}" alt="Logo" class="h-40 mb-34" />
|
||||
<div class="w-780 p-24 rounded-md bg shadow border">
|
||||
{{$slot}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user