Skip to content

Commit 5efcca3

Browse files
committed
chore: Improves show post page style
1 parent 9a3c32e commit 5efcca3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

assets/css/app.css

+4
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
.post-body h2 {
66
@apply text-2xl mt-8 mb-6 font-bold;
7+
}
8+
9+
.post-body p {
10+
@apply text-xl leading-7 my-4;
711
}

lib/brasil_em_dados_web/live/blog_live/index.html.heex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section class="text-gray-600 body-font">
1+
<section class="text-gray-600">
22
<div class="container px-5 mx-auto">
33
<div id="posts" class="flex flex-wrap -m-3">
44
<%= for post <- @posts do %>
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<article id="post" class="container mx-auto flex">
22
<div class="w-full px-5 md:w-8/12 mx-auto">
33
<div class="mt-8 mb-4">
4-
<h1 class="text-4xl font-bold mb-1">
4+
<h1 class="text-4xl font-bold mb-4">
55
<%= @post.title %>
66
</h1>
7-
<div class="text-sm opacity-75">
7+
<div class="text-sm opacity-75 mb-8">
88
<%= "#{@post.inserted_at.day}/#{@post.inserted_at.month}/#{@post.inserted_at.year}" %> · Roger Pinho
99
<%= if @post.tags != [] do %>
1010
<%= for tag <- @post.tags do %>
1111
<%= live_redirect class: "inline-block py-1 px-2 rounded bg-#{tag.color}-50 uppercase text-#{tag.color}-500 text-xs font-medium tracking-widest", to: Routes.blog_tag_path(@socket, :index, tag.name) do %><%= tag.name %><% end %>
1212
<% end %>
1313
<% end %>
1414
</div>
15-
<div class="post-body text-lg leading-7 mb-5">
15+
<div class="post-body mb-5">
1616
<%= raw(@post.body_html) %>
1717
</div>
1818
</div>
19-
</div>
19+
</div>
2020
</article>

0 commit comments

Comments
 (0)