Skip to content

Commit 1c0c4cf

Browse files
Add Scala Days 2025 promotion button to the front page
1 parent 9e42bab commit 1c0c4cf

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

_layouts/frontpage.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
<i class="fa fa-bars"></i>
3131
</div>
3232
<ul class="navigation-menu">
33+
<li class="navigation-menu-item navigation-menu-item--scala-days">
34+
<a href="https://scaladays.org" class="scala-days-button">Scala Days 2025</a>
35+
</li>
3336
{% for navItem in site.data.nav-header %}
3437
<li class="navigation-menu-item">
3538
<a href="{{navItem.url}}">{{navItem.title}}</a>

_sass/layout/navigation.scss

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,30 @@
5151
text-decoration: none;
5252
}
5353
}
54+
55+
&.navigation-menu-item--scala-days {
56+
a {
57+
background: #ff6b35;
58+
color: #fff;
59+
padding: 8px 20px;
60+
border-radius: 25px;
61+
font-weight: bold;
62+
transition: all 0.3s ease;
63+
box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
64+
65+
&:hover {
66+
background: #e55a2b;
67+
transform: translateY(-1px);
68+
box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
69+
text-decoration: none;
70+
}
71+
72+
&:active {
73+
transform: translateY(0);
74+
box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
75+
}
76+
}
77+
}
5478
}
5579
}
5680
}
@@ -78,6 +102,32 @@
78102
padding: 10px 0;
79103
display: block;
80104
}
105+
106+
.navigation-menu-item--scala-days {
107+
a {
108+
background: #ff6b35;
109+
color: #fff;
110+
padding: 10px 20px;
111+
border-radius: 25px;
112+
font-weight: bold;
113+
text-transform: uppercase;
114+
display: inline-block;
115+
transition: all 0.3s ease;
116+
box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
117+
118+
&:hover {
119+
background: #e55a2b;
120+
transform: translateY(-1px);
121+
box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
122+
text-decoration: none;
123+
}
124+
125+
&:active {
126+
transform: translateY(0);
127+
box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
128+
}
129+
}
130+
}
81131
}
82132
}
83133
}

0 commit comments

Comments
 (0)