Skip to content

Commit 194af86

Browse files
authored
✨ Added register button into NavigationBar (#111)
1 parent 16afc92 commit 194af86

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

Website/Sources/Components/MainNavigationBar.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ struct MainNavigationBar: HTML {
1818
}
1919
Link(String("FAQ", language: language), target: FAQ(language: language))
2020
.role(.light)
21+
22+
Span {
23+
Button(String("Register", language: language), systemImage: "ticket-perforated-fill")
24+
.buttonSize(.small)
25+
.role(.light)
26+
.fontWeight(.bold)
27+
.foregroundStyle(.bootstrapPurple)
28+
.data("luma-action", "checkout")
29+
.data("luma-event-id", "evt-WHT17EaVs2of1Gs")
30+
}
31+
.navigationBarVisibility(.always)
32+
2133
} logo: {
2234
LanguageSelector(path: { path(year, $0) }, currentLanguage: language)
2335
}

Website/Sources/Pages/Home.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ struct Home: StaticPage {
2323
@Dependency(DataClient.self) var dataClient
2424

2525
var body: some HTML {
26+
Script(file: URL(string: "https://embed.lu.ma/checkout-button.js")!).id("luma-checkout")
27+
2628
MainNavigationBar(
2729
path: Home.generatePath(for:language:),
2830
sections: HomeSectionType.navigationItems(for: year),

Website/Sources/Resources/Localizable.xcstrings

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,23 @@
795795
}
796796
}
797797
},
798+
"Register" : {
799+
"extractionState" : "manual",
800+
"localizations" : {
801+
"en" : {
802+
"stringUnit" : {
803+
"state" : "translated",
804+
"value" : "Register"
805+
}
806+
},
807+
"ja" : {
808+
"stringUnit" : {
809+
"state" : "translated",
810+
"value" : "参加登録"
811+
}
812+
}
813+
}
814+
},
798815
"Some countries and regions require an application for a tourist VISA in order to enter Japan.<br>Depending on the country of residence you selected when you purchased your ticket, we will ask you if you need assistance with VISA application documents.<br>To find out if you reside in a country that requires a VISA, please visit the <a href=\"https://www.mofa.go.jp/j_info/visit/visa/index.html\" target=\"_blank\">Ministry of Foreign Affairs website</a>." : {
799816
"extractionState" : "manual",
800817
"localizations" : {

0 commit comments

Comments
 (0)