Clean up result component markup

This commit is contained in:
2024-10-21 21:37:28 +02:00
parent b8f4c31bb7
commit 3a602c27d5
2 changed files with 1 additions and 20 deletions

View File

@@ -25,7 +25,7 @@
.month {
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
font-size: 20px;
margin-bottom: 20px;
@@ -35,23 +35,6 @@
font-weight: 600;
margin-left: 10px;
}
.nav {
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
color: #0a3d62;
width: 40px;
height: 40px;
border-radius: 40px;
transition-duration: .2s;
position: relative;
&:hover {
background: #eee;
}
}
}
.days {

View File

@@ -5,11 +5,9 @@
<%= for month <- @months do %>
<div class="calendar">
<div class="month">
<a href="#" class="nav"><i class="fas fa-angle-left"></i></a>
<div>
<%= Calendar.strftime(month, "%B") %> <span class="year"><%= month.year %></span>
</div>
<a href="#" class="nav"><i class="fas fa-angle-right"></i></a>
</div>
<div class="days">
<span>Mon</span>