v0.5.14b -Added Css
This commit is contained in:
parent
9841cbd24e
commit
15962e4114
|
@ -57,11 +57,43 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</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>
|
<main>
|
||||||
@foreach(\App\News::query()->orderBy("created_at", "desc")->get() as $new)
|
@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">
|
<div class="card">
|
||||||
<h2 class="sde-blue mt-0 mb-0 text-center" style="margin-bottom: 8px; ">{{ $new->name }}</h2>
|
<div class="header">
|
||||||
{!! $new->content !!}
|
<p><b>{{ $new->name }}</b></p>
|
||||||
|
<h1>Æggeløb</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<p>{!! $new->content !!}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@if(count(\App\News::query()->orderBy("created_at", "desc")->get()) == 0)
|
@if(count(\App\News::query()->orderBy("created_at", "desc")->get()) == 0)
|
||||||
|
|
Loading…
Reference in New Issue