Add the About page

This commit is contained in:
Timothée Jaussoin 2023-07-07 15:22:56 +00:00
parent c1e3f56e5d
commit 86983f3f9b
8 changed files with 50 additions and 5 deletions

View file

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AboutController extends Controller
{
public function about(Request $request)
{
return view('about');
}
}

View file

@ -225,6 +225,7 @@ ul.tabs li.current {
header nav {
padding: 3rem 1rem;
display: flex;
min-height: 6rem;
}
header nav a {
@ -476,7 +477,6 @@ h3 {
font-size: 1.75rem;
color: var(--second-6);
padding: 0.5rem 0;
margin-top: 1.25rem;
}
h4 {

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -0,0 +1,18 @@
@extends('layouts.main', ['welcome' => true])
@section('content')
<div style="max-width: 40rem; width: 100%; padding: 1rem;">
<img style="float: right; margin-top: 1rem;" src="/img/logo_linphone.png">
<h2>About</h2>
<hr />
<p><a href="https://linphone.org/">https://linphone.org</a></p>
<p><a href="{{ config('app.terms_of_use_url') }}">Terms and Conditions</a> and <a
href="{{ config('app.privacy_policy_url') }}">Privacy policy</a></p>
<p>GNU General Public Licence v3.0 (Licence)</p>
<p>{{ config('instance.copyright') }}</p>
</div>
@endsection

View file

@ -1,6 +1,8 @@
@extends('layouts.main')
@extends('layouts.main', ['welcome' => true])
@section('content')
{{-- This view is only a wrapper for the markdown page --}}
{!! $documentation !!}
<div>
{{-- This view is only a wrapper for the markdown page --}}
{!! $documentation !!}
</div>
@endsection

View file

@ -460,6 +460,14 @@ JSON parameters:
<span class="badge badge-warning">Admin</span>
Delete a contacts list.
### `POST /contacts_lists/{contacts_list_id}/contacts/{contact_id}`
<span class="badge badge-warning">Admin</span>
Add a contact to the contacts list.
### `DELETE /contacts_lists/{contacts_list_id}/contacts/{contact_id}`
<span class="badge badge-warning">Admin</span>
Remove a contact from the contacts list.
### `POST /accounts/{id}/contacts_lists/{contacts_list_id}`
<span class="badge badge-warning">Admin</span>
Add a contacts list to the account.

View file

@ -30,6 +30,9 @@
<a id="menu" class="on_mobile" href="#" onclick="document.body.classList.toggle('show_menu')"></a>
@endif
<a class="oppose" href="{{ route('about') }}">
<i class="material-icons">info</i><span class="on_desktop">About</span>
</a>
@if (auth()->user())
<a class="oppose" href="{{ route('account.dashboard') }}">
<i class="material-icons">account_circle</i><span class="on_desktop">{{ auth()->user()->identifier }}</span>

View file

@ -37,6 +37,7 @@ use Illuminate\Support\Facades\Route;
Route::redirect('/', '/login')->name('account.home');
Route::get('documentation', 'Account\AccountController@documentation')->name('account.documentation');
Route::get('about', 'AboutController@about')->name('about');
if (config('app.web_panel')) {
Route::get('login', 'Account\AuthenticateController@login')->name('account.login');