feat: Agregada pagina about
Se creo una pagina about, esta sera creada manualmente, sin conexion a base de datos porque no es una pagina que valla a cambiar constantemente
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"/js/admin.js": "/js/admin.js?id=634ede2c6c16b7d4ff99",
|
"/js/admin.js": "/js/admin.js?id=4013ff04f592ec37fe1b",
|
||||||
"/js/app.js": "/js/app.js?id=17a7ca520b20b88679c7",
|
"/js/app.js": "/js/app.js?id=c14484df94f169da3c60",
|
||||||
"/css/app.css": "/css/app.css?id=8abda035b8d9cdfce4ba",
|
"/css/app.css": "/css/app.css?id=8abda035b8d9cdfce4ba",
|
||||||
"/css/prism.css": "/css/prism.css?id=e372f069621187846b44"
|
"/css/prism.css": "/css/prism.css?id=e372f069621187846b44"
|
||||||
}
|
}
|
||||||
|
|||||||
7
resources/js/app.js
vendored
7
resources/js/app.js
vendored
@@ -21,6 +21,10 @@ function is_setups_route() {
|
|||||||
return window.location.pathname == "/setups";
|
return window.location.pathname == "/setups";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function is_about_route() {
|
||||||
|
return window.location.pathname == "/about";
|
||||||
|
}
|
||||||
|
|
||||||
function highlight_route() {
|
function highlight_route() {
|
||||||
if(is_blog_route()){
|
if(is_blog_route()){
|
||||||
document.getElementById("blog-link").classList.add("menu-highlight");
|
document.getElementById("blog-link").classList.add("menu-highlight");
|
||||||
@@ -30,7 +34,10 @@ function highlight_route() {
|
|||||||
document.getElementById("projects-link").classList.add("menu-highlight");
|
document.getElementById("projects-link").classList.add("menu-highlight");
|
||||||
}else if(is_projects_route()){
|
}else if(is_projects_route()){
|
||||||
document.getElementById("setup-link").classList.add("menu-highlight");
|
document.getElementById("setup-link").classList.add("menu-highlight");
|
||||||
|
}else if(is_about_route()){
|
||||||
|
document.getElementById("about-link").classList.add("menu-highlight");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function make_images_clickeable() {
|
function make_images_clickeable() {
|
||||||
|
|||||||
25
resources/views/about.blade.php
Normal file
25
resources/views/about.blade.php
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
@extends('base')
|
||||||
|
|
||||||
|
@php
|
||||||
|
$parse = new Parsedown();
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@section('meta-description')
|
||||||
|
<meta name="autor" content="Daniel Cortés"/>
|
||||||
|
<meta name="description" content="Hola, soy Daniel Cortés, estudio Ingenieria Informatica, me gusta programar y aprender constantemente sobre el tema">
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('title')
|
||||||
|
<title>About - Daniel Cortes</title>
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
<h1 class="post-title">About</h1>
|
||||||
|
</header>
|
||||||
|
<p>
|
||||||
|
Oh no
|
||||||
|
</p>
|
||||||
|
</article>
|
||||||
|
@endsection
|
||||||
@@ -29,6 +29,9 @@
|
|||||||
<li class="menu-item">
|
<li class="menu-item">
|
||||||
<a class="menu-link" id="setup-link" href="{{route('setups.index')}}">Setups</a>
|
<a class="menu-link" id="setup-link" href="{{route('setups.index')}}">Setups</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="menu-item">
|
||||||
|
<a class="menu-link" id="about-link" href="{{route('about')}}">About</a>
|
||||||
|
</li>
|
||||||
@auth
|
@auth
|
||||||
<li class="menu-item">
|
<li class="menu-item">
|
||||||
<a class="menu-link special-link" href="{{route('admin')}}">Admin</a>
|
<a class="menu-link special-link" href="{{route('admin')}}">Admin</a>
|
||||||
|
|||||||
@@ -4,11 +4,13 @@ Route::get('/login', 'LoginController@showLoginForm')->name('login');
|
|||||||
Route::post('/login', 'LoginController@login');
|
Route::post('/login', 'LoginController@login');
|
||||||
|
|
||||||
Route::get('/now', 'NowController@index')->name('now.index');
|
Route::get('/now', 'NowController@index')->name('now.index');
|
||||||
|
|
||||||
Route::get('/projects', 'ProjectController@index')->name('project.index');
|
Route::get('/projects', 'ProjectController@index')->name('project.index');
|
||||||
|
|
||||||
Route::get('/setups', 'SetupController@index')->name('setups.index');
|
Route::get('/setups', 'SetupController@index')->name('setups.index');
|
||||||
|
|
||||||
|
Route::get('/about', function () {
|
||||||
|
return view('about');
|
||||||
|
})->name('about');
|
||||||
|
|
||||||
Route::prefix('blog')->group(function() {
|
Route::prefix('blog')->group(function() {
|
||||||
Route::get('/', 'BlogController@index')->name('blog.index');
|
Route::get('/', 'BlogController@index')->name('blog.index');
|
||||||
Route::get('archive', 'BlogController@archive')->name('blog.archive');
|
Route::get('archive', 'BlogController@archive')->name('blog.archive');
|
||||||
|
|||||||
Reference in New Issue
Block a user