-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
2 changed files
with
14 additions
and
9 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,17 +1,16 @@ | ||
<div class="shadow-md"> | ||
<div class="p-6 bg-[#FAE115] font-bold uppercase lg:text-3xl md:text-3xl text-2xl flex justify-between truncate ..."> | ||
<p>NEWS | <%= @news.header_news %></p> | ||
<div class="p-6 bg-[#FAE115] font-bold uppercase lg:text-3xl md:text-3xl text-2xl flex justify-between "> | ||
<p class="md:w-full w-[90%] truncate ...">NEWS | <%= @news.header_news %></p> | ||
</div> | ||
<div class="sm:w-[200px] md:w-[60%] lg:max-w-full xl:max-w-full mx-auto mt-[6px]"> | ||
<div> | ||
<div class="w-[90%]"> | ||
<%= render "news/image_show" %> | ||
</div> | ||
<% if @news.type_of_news === "Match" %> | ||
<h2 class="text-2xl font-bold mt-4 mr-3 m-4"><%= @news.type_of_news %></h2> | ||
|
||
<h2 class="text-2xl font-bold mt-4 mr-3 m-4 flex justify-between uppercase"><%= @news.type_of_news %> <p class="text-xs mt-2 "><%= @news.created_at.strftime("%d.%m.%Y") %></p> | ||
</h2> | ||
|
||
<h3 class="text-xl font-semibold m-4"><%= @news.header_news %></h3> | ||
<p class="text-lg mt-2 p-4"><%= raw @news.body %></p> | ||
<p class="text-semibold text-white mt-2 bg-[#D9D9D9]"><%= @news.created_at.strftime("%d.%m.%Y") %></p> | ||
<% end %> | ||
</div> | ||
</div> |