Skip to content

Commit

Permalink
Merge pull request #141 from dbarzin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dbarzin authored Sep 26, 2024
2 parents a9183ab + 15395c5 commit 540aa7a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/Http/Controllers/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ public function get(int $id)
'403 Forbidden'
);

// get path
$path = storage_path('docs/' . $id);

// check file exists
abort_if(!file_exists($path), Response::HTTP_NOT_FOUND, '404 Not Found');

// get file content
$file_contents = file_get_contents($path);

return response($file_contents)
Expand Down
Binary file added public/images/deming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 26 additions & 2 deletions resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,32 @@
<link rel="stylesheet" href="/css/all.css" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<script src="/js/all.js"></script>

<style>
body {
background-image: url('/images/deming.png');
background-size: 800px 800px;
background-position: center;
background-repeat: no-repeat;
}
.login-form {
background-color: rgba(255, 255, 255, 0.5) !important;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.form-control {
background-color: rgba(255, 255, 255, 0.7) !important;
border: 1px solid rgba(0, 0, 0, 0.2);
}
.form-control:focus {
background-color: rgba(255, 255, 255, 0.9) !important;
}
</style>
</head>

<body class="d-flex flex-justify-center flex-align-center bg-default">
Expand All @@ -22,8 +48,6 @@ class="login-form bg-white p-6 mx-auto border fg-black win-shadow"
data-on-error-form="invalidForm"
data-on-validate-form="validateForm">
@csrf
<span class="mif-lock mif-4x place-right ani-shake fg-cyan" style="margin-top: -10px;"></span>
<h2 class="text-medium m-0 pl-7" style="line-height: 52px">Deming</h2>
<div class="mb-4">{{ trans("cruds.login.connection") }}</div>
<div class="form-group">
<input type="text" data-role="input" class="form-control @error('login') is-invalid @enderror @error('email') is-invalid @enderror" data-prepend="<span class='mif-user'></span>" name="login" value="{{ old('login') }}" id="login" required>
Expand Down

0 comments on commit 540aa7a

Please sign in to comment.