Add random quotes
This commit is contained in:
parent
e3f67fec07
commit
c148b6237a
8 changed files with 1041 additions and 78 deletions
3
resources/views/components/never-said.blade.php
Normal file
3
resources/views/components/never-said.blade.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<p class="quote">
|
||||
<strong>{{ $quote["name"] }}:</strong> "{{ $quote["quote"] }}"<br>
|
||||
</p>
|
||||
6
resources/views/components/toh-quote.blade.php
Normal file
6
resources/views/components/toh-quote.blade.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<p class="quote">
|
||||
@foreach($quote["lines"] as $line)
|
||||
<strong>{{ $line["character"] }}:</strong> "{{ $line["line"] }}"<br>
|
||||
@endforeach
|
||||
<small>({{ $quote["attribution"] }})</small>
|
||||
</p>
|
||||
|
|
@ -28,10 +28,7 @@
|
|||
<div class="section">
|
||||
<h2>Random Quote</h2>
|
||||
<hr>
|
||||
<p class="quote">
|
||||
<script type="text/javascript" src="{{ asset("/js/randomQuote.js") }}"></script>
|
||||
<noscript>Oops! You need JavaScript enabled to view this content.</noscript>
|
||||
</p>
|
||||
<x-toh-quote/>
|
||||
</div>
|
||||
<div class="section">
|
||||
<h2>Contact</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue