Skip to content

Commit d569858

Browse files
authored
Create anchor tags in the landing page (#62)
* Fix duplicated organizers id anchor. It should have been for sponsors * Add anchor tags for the different sponsors * Fix the anchor tag for the events, organization, and faq
1 parent 9a9e30e commit d569858

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/components/navbar/navbar.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export const menuitems = [
1515
{
1616
title: "header.about",
1717
children: [
18-
{ title: "header.about_conference", path: "#event" },
19-
{ title: "header.about_faq", path: "#faq" },
20-
{ title: "header.about_organization", path: "#organization" },
18+
{ title: "header.about_conference", path: "/#event" },
19+
{ title: "header.about_faq", path: "/#faq" },
20+
{ title: "header.about_organization", path: "/#organization" },
2121
],
2222
},
2323
{

src/components/sponsors_gallery.astro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ const media_partners = [
102102
103103
---
104104

105-
<div class="relative mx-auto max-w-5xl px-6 lg:px-8 mt-10" id="organization">
105+
<div class="relative mx-auto max-w-5xl px-6 lg:px-8 mt-10" id="sponsors">
106106
<div class="mx-auto max-w-2xl lg:text-center">
107107
<h2 class="text-base font-semibold leading-7 text-pink">{t("sponsors_gallery.title")}</h2>
108108
<p class="mt-2 mb-10 text-3xl font-bold tracking-tight text-black dark:text-white sm:text-4xl">{t("sponsors_gallery.subtitle")}</p>
109109
</div>
110110

111111
<!-- Champion -->
112112
{ champions.length ?
113-
<h2 class="font-semibold text-yellow-200 dark:text-red-200 text-2xl">Champions Sponsors</h2>
113+
<h2 class="font-semibold text-yellow-200 dark:text-red-200 text-2xl" id="champions-sponsors">Champions Sponsors</h2>
114114
<div class="mx-auto my-2 max-w-2xl sm:my-5 lg:my-8 lg:max-w-none">
115115
<dl class="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-1">
116116
{
@@ -129,7 +129,7 @@ const media_partners = [
129129

130130
<!-- Supporters -->
131131
{ supporters.length > 0 ?
132-
<h2 class="font-semibold dark:text-white text-3xl mt-20">Supporters</h2>
132+
<h2 class="font-semibold dark:text-white text-3xl mt-20" id="supporters-sponsors">Supporters</h2>
133133
<div class="mx-auto my-2 max-w-2xl sm:my-5 lg:my-8 lg:max-w-none">
134134
<dl class="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-2">
135135
{
@@ -148,7 +148,7 @@ const media_partners = [
148148

149149
<!-- Connectors -->
150150
{ connectors.length > 0 ?
151-
<h2 class="font-semibold dark:text-white text-3xl mt-20">Connectors</h2>
151+
<h2 class="font-semibold dark:text-white text-3xl mt-20" id="connectors-sponsors">Connectors</h2>
152152
<div class="mx-auto my-2 max-w-2xl sm:my-5 lg:my-8 lg:max-w-none">
153153
<dl class="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-3">
154154
{
@@ -167,7 +167,7 @@ const media_partners = [
167167

168168
<!-- Boosters -->
169169
{ boosters.length > 0 ?
170-
<h2 class="font-semibold dark:text-white text-3xl mt-20">Boosters</h2>
170+
<h2 class="font-semibold dark:text-white text-3xl mt-20" id="boosters-sponsors">Boosters</h2>
171171
<div class="mx-auto my-2 max-w-2xl sm:my-5 lg:my-8 lg:max-w-none">
172172
<dl class="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-4">
173173
{
@@ -186,7 +186,7 @@ const media_partners = [
186186

187187
<!-- Partners -->
188188
{ partners.length > 0 ?
189-
<h2 class="font-semibold dark:text-white text-3xl mt-20">Partners</h2>
189+
<h2 class="font-semibold dark:text-white text-3xl mt-20" id="partners-sponsors">Partners</h2>
190190
<div class="mx-auto my-2 max-w-2xl sm:my-5 lg:my-8 lg:max-w-none">
191191
<dl class="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-5">
192192
{
@@ -205,7 +205,7 @@ const media_partners = [
205205

206206
<!-- Individuals -->
207207
{ individuals.length ?
208-
<h2 class="font-semibold dark:text-white text-2xl mt-20">Individuals Sponsors</h2>
208+
<h2 class="font-semibold dark:text-white text-2xl mt-20" id="individuals-sponsors">Individuals Sponsors</h2>
209209
<div class="mx-auto my-2 max-w-2xl sm:my-5 lg:my-8 lg:max-w-none">
210210
<dl class="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-3">
211211
{
@@ -224,7 +224,7 @@ const media_partners = [
224224

225225
<!-- Media Partners -->
226226
{ media_partners.length ?
227-
<h2 class="font-semibold dark:text-white text-3xl mt-20">Media Partners</h2>
227+
<h2 class="font-semibold dark:text-white text-3xl mt-20" id="media-partners">Media Partners</h2>
228228
<div class="mx-auto my-2 max-w-2xl sm:my-5 lg:my-8 lg:max-w-none">
229229
<dl class="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-5">
230230
{

0 commit comments

Comments
 (0)