Skip to content

Commit 89d9311

Browse files
committed
Add dynamic anchors to events
1 parent 49b402a commit 89d9311

2 files changed

Lines changed: 26 additions & 11 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.dyn-anchor-heading {
22
a.dyn-anchor-link {
3-
font-size: 14pt;
3+
font-size: 12pt;
44
color: gray;
5-
margin-bottom: 5px;
65
vertical-align: middle;
7-
opacity: 0;
6+
margin-left: 5px;
7+
display: none;
88
&:hover {
9-
color: darken(gray, 20%);
9+
color: darken(gray, 30%);
1010
}
1111
&.show-it {
12-
opacity: 1;
12+
display: inline-block;
1313
}
1414
}
1515
}

apps/events/templates/events/event.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ <h1 class="title is-1">{{ event.name }}</h1>
7171

7272
<section id="speakers" class="section speakers">
7373
<div class="container">
74-
<h1 class="title section-title">Ponentes</h1>
74+
<h1 class="title section-title dyn-anchor-heading">
75+
Ponentes
76+
<a class="dyn-anchor-link" href="#speakers"><i class="fas fa-link"></i></a>
77+
</h1>
7578
<div class="columns is-multiline is-mobile is-centered">
7679
{% for speaker in event.get_non_org_speakers %}
7780

@@ -105,8 +108,11 @@ <h2 class="speaker-name">{{ speaker.name }} {{ speaker.surname }}</h2>
105108

106109
<section id="schedule" class="section schedule has-background-white">
107110
<div class="container">
108-
<h1 class="title section-title">
109-
<p>Agenda</p>
111+
<h1 class="title section-title dyn-anchor-heading">
112+
<p>
113+
Agenda
114+
<a class="dyn-anchor-link" href="#schedule"><i class="fas fa-link"></i></a>
115+
</p>
110116
<p class="section-detail"><i class="far fa-calendar-alt"></i> {{ event.start_date|as_date }}</p>
111117
{% if event.schedule_for_display and not event.closed_schedule %}
112118
<span class="tag is-warning is-medium not-closed-schedule">
@@ -140,7 +146,10 @@ <h1 class="title section-title">
140146

141147
<section id="venue" class="section venue">
142148
<div class="container">
143-
<h1 class="title section-title">Localización</h1>
149+
<h1 class="title section-title dyn-anchor-heading">
150+
Localización
151+
<a class="dyn-anchor-link" href="#venue"><i class="fas fa-link"></i></a>
152+
</h1>
144153
<div>
145154
<div class="columns is-multiline">
146155
{% if event.venue %}
@@ -207,7 +216,10 @@ <h1 class="title section-title">Localización</h1>
207216

208217
<section id="sponsors" class="section sponsors has-background-white">
209218
<div class="container">
210-
<h1 class="title section-title">Entidades</h1>
219+
<h1 class="title section-title dyn-anchor-heading">
220+
Entidades
221+
<a class="dyn-anchor-link" href="#sponsors"><i class="fas fa-link"></i></a>
222+
</h1>
211223
{% for role, categories in event.memberships_for_display.items %}
212224
<h1 class="role-title title is-4 has-text-centered">{{ role.display_name }}</h1>
213225
{% for category, organizations in categories.items %}
@@ -237,7 +249,10 @@ <h2 class="category-title subtitle is-5 has-text-centered">{{ category.display_n
237249

238250
<section id="past-events" class="section past-events">
239251
<div class="container">
240-
<h1 class="title section-title">Eventos pasados</h1>
252+
<h1 class="title section-title dyn-anchor-heading">
253+
Eventos pasados
254+
<a class="dyn-anchor-link" href="#past-events"><i class="fas fa-link"></i></a>
255+
</h1>
241256
<div class="columns is-centered">
242257
{% for past_event in past_events %}
243258
<div class="column has-text-centered">

0 commit comments

Comments
 (0)