v0.5.14b -Added Css
This commit is contained in:
parent
9841cbd24e
commit
15962e4114
|
@ -57,11 +57,43 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
div.card {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 30px;
|
||||
width: auto;
|
||||
heigt: auto;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
}
|
||||
|
||||
div.header {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
padding: 1px;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div.container {
|
||||
padding: 5px;
|
||||
text-align: justify;
|
||||
line-height: 1.5;
|
||||
}
|
||||
</style>
|
||||
|
||||
<main>
|
||||
@foreach(\App\News::query()->orderBy("created_at", "desc")->get() as $new)
|
||||
<div style="border: 4px solid rgba(0,0,0, 0.2); border-radius: 4px; padding: 4px; margin-top: 1.5rem">
|
||||
<h2 class="sde-blue mt-0 mb-0 text-center" style="margin-bottom: 8px; ">{{ $new->name }}</h2>
|
||||
{!! $new->content !!}
|
||||
<div class="card">
|
||||
<div class="header">
|
||||
<p><b>{{ $new->name }}</b></p>
|
||||
<h1>Æggeløb</h1>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<p>{!! $new->content !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@if(count(\App\News::query()->orderBy("created_at", "desc")->get()) == 0)
|
||||
|
|
Loading…
Reference in New Issue