-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed seeded data, all blogs showing on home page
- Loading branch information
Christian Martinez
committed
Jul 25, 2023
1 parent
cc6900d
commit 3477783
Showing
4 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,53 @@ | ||
<p>This is the homepage</p> | ||
<div class='bg-white pb-24 sm:py-32'> | ||
<div class='mx-auto max-w-7xl px-6 lg:px-8'> | ||
<div class='mx-auto max-w-2xl lg:mx-0'> | ||
<h2 | ||
class='text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl' | ||
>Latest blogs</h2> | ||
<p class='mt-2 text-lg leading-8 text-gray-600'>Browse through recent | ||
blogs created by people from around the world</p> | ||
</div> | ||
<div | ||
class='mx-auto mt-10 grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 border-t border-gray-200 pt-10 sm:mt-16 sm:pt-16 lg:mx-0 lg:max-w-none lg:grid-cols-3' | ||
> | ||
{{#each allPosts}} | ||
<article class='flex max-w-xl flex-col items-start justify-between'> | ||
<div class='flex items-center gap-x-4 text-xs'> | ||
<time | ||
datetime='2020-03-16' | ||
class='text-gray-500' | ||
>{{this.created_at}}</time> | ||
<a | ||
href='#' | ||
class='relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100' | ||
>Blog</a> | ||
</div> | ||
<div class='group relative'> | ||
<h3 | ||
class='mt-3 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-600' | ||
> | ||
<a href='#'> | ||
<span class='absolute inset-0'></span> | ||
{{this.title}} | ||
</a> | ||
</h3> | ||
<p | ||
class='mt-5 text-sm leading-6 text-gray-600' | ||
>{{this.post_text}}</p> | ||
</div> | ||
<div class='relative mt-8 flex items-center gap-x-4'> | ||
<div class='text-sm leading-6'> | ||
<p class='font-semibold text-gray-900'> | ||
<a href='#'> | ||
<span class='absolute inset-0'></span> | ||
- | ||
{{this.user.full_name}} | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
</article> | ||
{{/each}} | ||
</div> | ||
</div> | ||
</div> |