-
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.
- Loading branch information
1 parent
4b92f2c
commit 758e301
Showing
3 changed files
with
189 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
<div class="pt-40"> | ||
<%@user_blog_posts.each do |user_blog| %> | ||
<h1> <%= user_blog.title %> </h1> | ||
<% end %> | ||
<section class="bg-gray-50 dark:bg-slate-800 py-28"> | ||
<div class="px-4 mx-auto h-screen w-screen md:px-16"> | ||
<h2 class="mb-8 text-2xl font-bold text-gray-900 dark:text-white text-center md:text-start">My Blogs</h2> | ||
<div class="grid gap-12 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-4"> | ||
<% @user_blog_posts.each do |blog_post| %> | ||
<article class="max-w-xs"> | ||
<a href="#"> | ||
<img src="https://flowbite.s3.amazonaws.com/blocks/marketing-ui/article/blog-1.png" class="mb-5 rounded-lg" alt="Image 1"> | ||
</a> | ||
<h2 class="mb-2 text-xl font-bold leading-tight text-gray-900 dark:text-white"> | ||
<a href="#"><%= blog_post.title %></a> | ||
</h2> | ||
<p class="mb-4 text-gray-500 dark:text-gray-400"><%= blog_post.body %></p> | ||
<a href="/blog/:id" class="inline-flex items-center font-medium underline underline-offset-4 text-primary-600 dark:text-primary-500 hover:no-underline"> | ||
Read in 2 minutes | ||
</a> | ||
</article> | ||
<% end %> | ||
</div> | ||
</div> |
Oops, something went wrong.