Se lee mejor ahora
This commit is contained in:
6
public/css/app.css
vendored
6
public/css/app.css
vendored
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
color: #212121;
|
color: #212121;
|
||||||
|
line-height: 1.6em;
|
||||||
|
font-size: 1.25em;
|
||||||
max-width: 80ch;
|
max-width: 80ch;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@@ -13,6 +15,10 @@ hr {
|
|||||||
border: 1px solid #f2f2f2;
|
border: 1px solid #f2f2f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #212121;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
7
public/js/app.js
vendored
7
public/js/app.js
vendored
@@ -93,14 +93,7 @@
|
|||||||
/*! no static exports found */
|
/*! no static exports found */
|
||||||
/***/ (function(module, exports) {
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
function classToggle() {
|
|
||||||
var navs = document.querySelectorAll('.navbar-items');
|
|
||||||
navs.forEach(function (nav) {
|
|
||||||
return nav.classList.toggle('navbar-toggleshow');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
document.querySelector('.navbar-link-toggle').addEventListener('click', classToggle);
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
|||||||
7
resources/js/app.js
vendored
7
resources/js/app.js
vendored
@@ -1,7 +0,0 @@
|
|||||||
function classToggle() {
|
|
||||||
const navs = document.querySelectorAll('.navbar-items')
|
|
||||||
|
|
||||||
navs.forEach(nav => nav.classList.toggle('navbar-toggleshow'));
|
|
||||||
}
|
|
||||||
|
|
||||||
document.querySelector('.navbar-link-toggle').addEventListener('click', classToggle);
|
|
||||||
|
|||||||
6
resources/sass/app.scss
vendored
6
resources/sass/app.scss
vendored
@@ -8,6 +8,8 @@ $color01: #0fa0ce;
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
color: $colorfg;
|
color: $colorfg;
|
||||||
|
line-height: 1.6em;
|
||||||
|
font-size: 1.25em;
|
||||||
max-width: 80ch;
|
max-width: 80ch;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@@ -17,6 +19,10 @@ hr {
|
|||||||
border: 1px solid $colorborder;
|
border: 1px solid $colorborder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $colorfg;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
border-bottom: 1px solid $colorborder;
|
border-bottom: 1px solid $colorborder;
|
||||||
|
|||||||
@@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<h1>Archive</h1>
|
||||||
<ul>
|
<ul>
|
||||||
@foreach($posts as $post)
|
@foreach($posts as $post)
|
||||||
<li class="post-title">
|
<li>
|
||||||
<a href="{{ route('blog.show', $post->id) }}">{{$post->title}}</a> <span>{{$post->created_at->diffForHumans()}}</span>
|
<a href="{{ route('blog.show', $post->id) }}">{{$post->title}}</a> <span>({{$post->created_at->format('Y-m-d')}})</span>
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user