Skip to content

Commit

Permalink
l s (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
adnjoo authored Oct 24, 2024
1 parent 1699afc commit 0ba18eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/views/blog/_blog_post.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<div class="bg-gray-100 border-4 border-black shadow-none hover:shadow-xl hover:translate-x-1 hover:translate-y-1 transition-all duration-300">
<div class="bg-gray-100 border-4 border-black shadow-xl">

<% if post[:image].present? %>
<%= link_to blog_post_path(post[:slug]) do %>
<img src="<%= post[:image] %>" alt="<%= post[:title] %>" class="w-full h-48 object-cover border-b-4 border-black">
<div class="overflow-hidden border-b-4 border-black">
<img src="<%= post[:image] %>" alt="<%= post[:title] %>" class="w-full h-48 object-cover hover:scale-110 transition-transform duration-500">
</div>
<% end %>
<% end %>

Expand Down
4 changes: 2 additions & 2 deletions app/views/posts/introducing-dueltasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Set a deadline, choose a challenger, and stay accountable with real stakes.

DuelTasks' penalty system adds **accountability** to keep you on track.

By using the [science of loss aversion](/blog/loss-aversion), we can get tasks done faster.
By using the <a href="/blog/loss-aversion" target="_blank">science of loss aversion</a>, we can get tasks done faster.

## Get Started

[Sign up for the DuelTasks waitlist](https://forms.gle/6sFw9P3nqfKd575F7) and we'll let you know soon when it's available.
<a href="https://forms.gle/6sFw9P3nqfKd575F7" target="_blank">Sign up for the DuelTasks waitlist</a> and we'll let you know soon when it's available! 🍕

---

Expand Down
4 changes: 4 additions & 0 deletions app/views/posts/loss-aversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ You can visualize this with the following graph:
<img src="/blog/loss_aversion.png" class="max-w-sm">

The curve shows that losses feel more painful than the equivalent amount of gains feel pleasurable.

## Get Started

<a href="https://forms.gle/6sFw9P3nqfKd575F7" target="_blank">Sign up for the DuelTasks waitlist</a> and we'll let you know soon when it's available! 🍕

0 comments on commit 0ba18eb

Please sign in to comment.