mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
initial commit
This commit is contained in:
commit
1beb9dd34c
281 changed files with 56773 additions and 0 deletions
23
resources/views/components/feed.blade.php
Normal file
23
resources/views/components/feed.blade.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
@props([
|
||||
'tips',
|
||||
])
|
||||
|
||||
<section role="feed" class="my-8">
|
||||
@foreach($tips as $tip)
|
||||
<article class="border-b-2 border-gray-200 py-16" x-data @click="window.location.href = '{{ route('tip.show', $tip) }}'">
|
||||
<h1 class="text-3xl font-medium">
|
||||
<a href="{{ route('tip.show', $tip) }}">🔥 {{ $tip->title }}</a>
|
||||
</h1>
|
||||
|
||||
<div class="mt-4 flex justify-center w-1/2 gap-1 flex-wrap mx-auto">
|
||||
@foreach($tip->images() as $image)
|
||||
<img alt="{{ $tip->title }}" src="{{ $image->small() }}">
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<section role="article" class="mt-8 text-xl prose mx-auto">
|
||||
@markdown{!! $tip->content !!}@endmarkdown
|
||||
</section>
|
||||
</article>
|
||||
@endforeach
|
||||
</section>
|
||||
22
resources/views/components/layout.blade.php
Normal file
22
resources/views/components/layout.blade.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Laravel</title>
|
||||
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
|
||||
<script type="module" src="{{ mix('js/app.js') }}"></script>
|
||||
<link href="https://fonts.rcvd.io/iA%20Writer/stylesheet.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body class="antialiased bg-white">
|
||||
<div class="w-full p-3 text-center min-h-screen flex justify-between flex-col">
|
||||
{{ $slot }}
|
||||
|
||||
<footer class="space-y-2 text-gray-700 text-sm">
|
||||
<p>Found an error? Contact us at <a href="mailto:hello@laravel-code.tips" class="link">support@laravel-code.tips</a>.</p>
|
||||
<p>Want to share a tip? Submit it <a href="https://airtable.com/shrBX2ZAfnuAXh3up" target="_blank" class="link">here</a>.</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue