Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Resources/Views/Admin/home.leaf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#extend("base"):
#export("title", "SwiftLeeds")
#export("title", event.event)

#export("content"):
<header class="header navbar navbar-expand-lg navbar-dark bg-dark border-bottom border-light shadow-sm fixed-top">
<div class="container px-3">
<a href="/" class="navbar-brand">
<img src="/img/logo_horizontal_dark.svg" width="120" alt="SwiftLeeds">
<img src="/img/logo_horizontal_dark.svg" width="120" alt="#(event.event)">
</a>
</div>
</header>
Expand Down
4 changes: 2 additions & 2 deletions Resources/Views/Authentication/login.leaf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#extend("base"):
#export("title", "SwiftLeeds")
#export("title", "Admin")

#export("content"):
#extend("Shared/_header")

<section class="bg-dark py-4">
<div class="container pb-2 py-lg-5">
<h1 class="text-center my-4 text-white">Login with your SwiftLeeds account</h1>
<h1 class="text-center my-4 text-white">Login with your admin account</h1>
</div>
</section>

Expand Down
4 changes: 2 additions & 2 deletions Resources/Views/Authentication/register.leaf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#extend("base"):
#export("title", "SwiftLeeds")
#export("title", "Admin")

#export("content"):
#extend("Shared/_header")

<section class="bg-dark py-4">
<div class="container pb-2 py-lg-5">
<h1 class="text-center my-4 text-white">Create your SwiftLeeds account</h1>
<h1 class="text-center my-4 text-white">Create your admin account</h1>
</div>
</section>

Expand Down
8 changes: 4 additions & 4 deletions Resources/Views/CFP/_cfp.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<div class="container pb-2 py-lg-5">
<div class="row">
<div class="col-lg-6">
<h1 class="display-2 mb-0 text-white my-4">Speak at <span class="text-primary">SwiftLeeds #(eventYear)</span></h1>
<h1 class="display-2 mb-0 text-white my-4">Speak at <span class="text-primary">#(event.event) #(eventYear)</span></h1>
</div>
<div class="col-lg-6 col-xl-5 offset-xl-1 pt-3 pt-sm-4 pt-lg-3">
<p class="fs-xl pb-4 mb-1 mb-md-2 mb-xl-3">Each year, SwiftLeeds operates a Call for Papers (CfP), which allows you to submit your talk to present on the big stage.</p>
<p class="fs-xl pb-4 mb-1 mb-md-2 mb-xl-3">Each year, #(event.event) operates a Call for Papers (CfP), which allows you to submit your talk to present on the big stage.</p>
<p class="fs-xl pb-4 mb-1 mb-md-2 mb-xl-3">No matter your experience, colour, race, or gender, we invite everyone to apply.</p>
</div>
</div>
Expand Down Expand Up @@ -66,7 +66,7 @@
<div class="align-self-center ps-lg-0 ps-md-4">
<h2 class="h1 mb-lg-4 mb-3">We want to hear from you!</h2>
<p class="fs-lg">Many potential speakers, especially those from under-represented groups or those who have never spoken at a conference, may rule themselves out unnecessarily.</p>
<p class="fs-lg">We want to hear from everybody in the Swift community and urge you to submit a proposal. Our team at SwiftLeeds review all talks anonymously.</p>
<p class="fs-lg">We want to hear from everybody in the #if(event.event == "KotlinLeeds"):Kotlin#else:Swift#endif community and urge you to submit a proposal. Our team at #(event.event) review all talks anonymously.</p>
<p class="fs-lg">All our speakers join us for the entire year. This means we offer full speaker training and any support you require throughout the process, from reviewing slides to helping with speaker nerves.</p>
</div>
</div>
Expand All @@ -75,7 +75,7 @@
<div class="col-12">
<div class="align-self-center ps-lg-0 ps-md-4">
<h2 class="h1 mb-lg-4 mb-3">What makes a good submission?</h2>
<p class="fs-lg">The SwiftLeeds team review all talks anonymously and relies heavily on the title and description of your submission to understand whether it's a good fit for the community. With only 1&nbsp;in&nbsp;10 submissions being accepted, here's how you can stand out:</p>
<p class="fs-lg">The #(event.event) team review all talks anonymously and relies heavily on the title and description of your submission to understand whether it's a good fit for the community. With only 1&nbsp;in&nbsp;10 submissions being accepted, here's how you can stand out:</p>
<ul>
<li class="fs-lg">Please let us know what attendees will take away from the talk. What are they going to learn? Perhaps, consider using the 5s W framework (What, Why, Who, Where and When).</li>
<li class="fs-lg">Although we don't specify how much content you can give us during the submission, we think 2-3 paragraphs is the ideal. A single-sentence submission is not enough content for us to fully understand much about the talk, but similarly, too much content can be hard to digest during the review, so keep it somewhere in the middle.</li>
Expand Down
7 changes: 7 additions & 0 deletions Resources/Views/Home/_cfp.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@
<i class="bx bx-check-circle text-primary d-flex pe-1 me-2" style="margin-top: 0.375rem"></i>
Talks can range from 15 to 45 minutes
</li>
#if(event.event == "KotlinLeeds"):
<li class="d-flex fs-xl">
<i class="bx bx-check-circle text-primary d-flex pe-1 me-2" style="margin-top: 0.375rem"></i>
Topics from Kotlin, Android, indie development and everything inbetween
</li>
#else:
<li class="d-flex fs-xl">
<i class="bx bx-check-circle text-primary d-flex pe-1 me-2" style="margin-top: 0.375rem"></i>
Topics from iOS, Swift, indie development and everything inbetween
</li>
#endif
</ul>
</div>

Expand Down
2 changes: 1 addition & 1 deletion Resources/Views/Home/_hero.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- Text -->
<div class="col-xl-5 col-md-6 pt-lg-5 text-center text-md-start mb-4 mb-md-0">
<h2 class="h3 text-primary">#if(event.date):#(event.dateFormatted) #endif#(event.year)</h2>
<h1 class="display-4 pb-2 pb-sm-3">A <span class="text-primary">Unique</span>#if(event.year >= 2023): 2 Day#endif Swift Conference in the Heart of Leeds</h1>
<h1 class="display-4 pb-2 pb-sm-3">A <span class="text-primary">Unique</span>#if(event.year >= 2023): 2 Day#endif #if(event.event == "KotlinLeeds"):Kotlin#else:Swift#endif Conference in the Heart of Leeds</h1>

<div class="d-flex justify-content-center justify-content-lg-start text-start mb-5">
<i class="bx bx-map fs-4 text-primary me-2"></i>
Expand Down
7 changes: 7 additions & 0 deletions Resources/Views/Home/_info.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
<div class="text-center text-lg-start">
<h2 class="h1 mb-4 themed-header">About</h2>
</div>

#if(event.event == "KotlinLeeds"):
<p>Founded by <a href="https://twitter.com/Adam9Rush" target="_blank">Adam Rush</a> in 2019, SwiftLeeds set out to bring a modern, inclusive conference to the north of the UK. In 2026, we look to bring expand this to the Kotlin community.</p>
<p>Ran by just a handful of community volunteers, KotlinLeeds is entirely non-profit with every penny going into delivering the best experience possible.</p>
<p class="pb-2 pb-lg-4 pb-xl-5 mb-3">In-person conferences are the best way to meet like-minded people who enjoy building apps with Kotlin. You can also learn from the best people in the industry and chat about all things Kotlin.</p>
#else:
<p>Founded by <a href="https://twitter.com/Adam9Rush" target="_blank">Adam Rush</a> in 2019, SwiftLeeds has set out to bring a modern, inclusive conference to the north of the UK.</p>
<p>Ran by just a handful of community volunteers, SwiftLeeds is entirely non-profit with every penny going into delivering the best experience possible.</p>
<p class="pb-2 pb-lg-4 pb-xl-5 mb-3">In-person conferences are the best way to meet like-minded people who enjoy building apps with Swift. You can also learn from the best people in the industry and chat about all things Swift.</p>
#endif
</div>
<div class="col-xl-6 col-lg-7 offset-xl-1 position-relative">

Expand Down
4 changes: 2 additions & 2 deletions Resources/Views/Home/_team.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<div class="row pt-xl-3">
<div class="col-md-5 text-center text-md-start pb-5">
<h1 class="mb-4 themed-header">By the Community</h1>
<p class="fs-lg pb-lg-3 mb-4">SwiftLeeds is ran entirely by the community, for the community, with a number of volunteers building out our various systems and ensuring you have the best time possible.</p>
<p class="fs-lg pb-lg-3 mb-4">#(event.event) is ran entirely by the community, for the community, with a number of volunteers building out our various systems and ensuring you have the best time possible.</p>

<a href="/team" class="btn btn-primary shadow-primary btn-lg">More About Us</a>
</div>
<div class="col-xl-6 col-md-7 offset-xl-1 pb-4 pb-sm-3 pb-lg-0 mb-4 mb-sm-5 mb-lg-0">
<img src="/img/team.jpg" class="rounded-3 shadow-sm" alt="SwiftLeeds Team">
<img src="/img/team.jpg" class="rounded-3 shadow-sm" alt="#(event.event) Team">
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Views/Home/_venue_playhouse.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Getting to SwiftLeeds</h5>
<h5 class="modal-title">Getting to #(event.event)</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Expand Down
2 changes: 1 addition & 1 deletion Resources/Views/Home/home.leaf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#extend("base"):
#export("title", "SwiftLeeds")
#export("title", event.event)

#export("content"):
#extend("Shared/_header")
Expand Down
2 changes: 1 addition & 1 deletion Resources/Views/Hub/home.leaf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#extend("base"):
#export("title", "SwiftLeeds")
#export("title", event.event)

#export("content"):

Expand Down
2 changes: 1 addition & 1 deletion Resources/Views/Purchase/_hub.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="row py-5 my-md-2 my-lg-3">
<div class="col-lg-5 col-xl-4 mb-5 mb-lg-0">
<div class="text-center text-lg-start pe-lg-5 pe-xl-0">
<h2 class="h1 pb-3 pb-lg-5">Get the most out of SwiftLeeds with our <span class="text-primary">ticket hub</span>!</h2>
<h2 class="h1 pb-3 pb-lg-5">Get the most out of #(event.event) with our <span class="text-primary">ticket hub</span>!</h2>
<a href="/ticket" class="btn btn-lg btn-primary w-100 w-sm-auto">
Login with your ticket
<i class="bx bx-right-arrow-alt lead ms-2 me-n1"></i>
Expand Down
6 changes: 3 additions & 3 deletions Resources/Views/Secondary/conduct.leaf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#extend("base"):
#export("title", "SwiftLeeds")
#export("title", event.event)

#export("content"):
#extend("Shared/_header")
Expand All @@ -13,7 +13,7 @@
<section class="container mb-5 pt-4 pb-2 py-mg-4">
<div class="row justify-content-center">
<div class="col-lg-9">
<p>SwiftLeeds is a conference built by the community for the community and we take pride in our conference being a safe place for everyone. We take this very seriously and we expect everyone attending our conference to abide by these rules.</p>
<p>#(event.event) is a conference built by the community for the community and we take pride in our conference being a safe place for everyone. We take this very seriously and we expect everyone attending our conference to abide by these rules.</p>

<p>All attendees, speakers, sponsors and volunteers at our conference are required to agree to the following code of conduct. Organisers will enforce this code throughout the event. We expect cooperation from all participants to help ensure a safe environment for everybody.</p>

Expand All @@ -31,7 +31,7 @@

<p>We expect participants to follow these rules at conference and workshop venues and conference-related social events.</p>

<p>If you have any questions please contact us on: <a href="mailto:[email protected]">[email protected]</a></p>
<p>If you have any questions please contact us on: #if(event.event == "KotlinLeeds"):<a href="mailto:info@kotlinleeds.com">[email protected]</a>#else:<a href="mailto:info@swiftleeds.co.uk">[email protected]</a>#endif</p>
</div>
</div>
</section>
Expand Down
6 changes: 3 additions & 3 deletions Resources/Views/Shared/_footer.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<h3 class="h5 pb-1 pb-sm-2 pb-lg-3">Contact us</h3>
<ul class="nav flex-column mb-3">
<li>
<a href="mailto:[email protected]" class="nav-link fs-lg fw-normal px-0 py-1">
<a href="mailto:#if(event.event == "KotlinLeeds"):info@kotlinleeds.com#else:info@swiftleeds.co.uk#endif" class="nav-link fs-lg fw-normal px-0 py-1">
<i class="bx bx-envelope fs-4 me-2"></i>
[email protected]
#if(event.event == "KotlinLeeds"):info@kotlinleeds.com#else:info@swiftleeds.co.uk#endif
</a>
</li>
</ul>
Expand Down Expand Up @@ -62,7 +62,7 @@
</div>
</div>
<p class="nav d-block fs-sm pt-5 mb-0 text-light opacity-60">
#copyright(2021, "SwiftLeeds")
#copyright(2021, event.event)
</p>
</div>
</footer>
6 changes: 3 additions & 3 deletions Resources/Views/Team/_team.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="container position-relative zindex-2 pt-5" data-bs-theme="dark">

<div class="mt-4 mb-lg-5 mb-4 py-3">
<h1 class="display-4 mb-0">We are SwiftLeeds Volunteers</h1>
<h1 class="display-4 mb-0">We are #(event.event) Volunteers</h1>
</div>

<!-- Gallery -->
Expand All @@ -25,7 +25,7 @@
<section class="container mb-5 pt-md-1 pt-lg-4 pt-xl-5">
<div class="mt-4 py-2 pb-sm-3 pb-md-4 pb-lg-5 mx-auto text-center">
<h2 class="h1 mb-4">For the community, by the community.</h2>
<p class="mb-2">Each one of our volunteers come from a background of Swift development, and have come together to put on the best possible conference.</p>
<p class="mb-2">Each one of our volunteers come from a background of mobile development, and have come together to put on the best possible conference.</p>
<p>They're here to answer your questions, keep you safe, and make sure you have a fantastic time.</p>
</div>
</section>
Expand Down Expand Up @@ -84,7 +84,7 @@
Want to get involved?<br>
Get in touch!
</h2>
<p>From the mobile app, website, tooling and more, we rely on our volunteers to help build out the systems which make SwiftLeeds possible.</p>
<p>From the mobile app, website, tooling and more, we rely on our volunteers to help build out the systems which make #(event.event) possible.</p>
</div>
</div>
<div class="col-lg-7 offset-xl-1">
Expand Down
2 changes: 1 addition & 1 deletion Resources/Views/Ticket/ticketLogin.leaf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#extend("base"):
#export("title", "SwiftLeeds")
#export("title", conference)

#export("content"):
#extend("Shared/_header")
Expand Down
10 changes: 7 additions & 3 deletions Resources/Views/base.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<meta name="author" content="SwiftLeeds"/>
<meta name="author" content="#(event.event)"/>

#if(event.event == "SwiftLeeds"):
<meta name="apple-itunes-app" content="app-id=1595490143, app-clip-bundle-id=uk.co.swiftleeds.SwiftLeeds.Clip, app-clip-display=card"/>
#endif

<meta property="og:image" content="/img/logo.png" />

<link rel="stylesheet" media="screen" href="/vendor/boxicons/css/boxicons.min.css"/>
Expand Down Expand Up @@ -40,7 +44,7 @@
<!-- Footer -->
#extend("Shared/_footer")

<script defer data-domain="swiftleeds.co.uk" src="https://plausible.io/js/plausible.js"></script>
<script defer data-domain="#if(event.event == "KotlinLeeds"):kotlinleeds.co.uk#else:swiftleeds.co.uk#endif" src="https://plausible.io/js/plausible.js"></script>

<!-- Back to top button -->
<a href="#top" class="btn-scroll-top" data-scroll>
Expand Down Expand Up @@ -102,7 +106,7 @@
<script type="application/javascript">
const config = {
name: "#(event.name)",
description: "Join us for this year's SwiftLeeds!",
description: "Join us for this year's #(event.event)!",
startDate: "#date(event.date, "yyyy-MM-dd")",
startTime: "08:30",
location: "#(event.location)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ struct EventRouteController: RouteCollection {
event.isCurrent = isCurrent
event.showSchedule = input.showSchedule ?? false
event.checkinKey = input.checkinKey ?? event.checkinKey

event.conference = request.application.conference.rawValue

eventID = try event.requireID()

try await event.update(on: request.db)
Expand All @@ -72,7 +73,8 @@ struct EventRouteController: RouteCollection {
location: input.location,
isCurrent: isCurrent
)


event.conference = request.application.conference.rawValue
eventID = try event.requireID()

try await event.create(on: request.db)
Expand All @@ -84,6 +86,7 @@ struct EventRouteController: RouteCollection {
.query(on: request.db)
.set(\.$isCurrent, to: false)
.filter(\.$id != eventID)
.filter(\.$conference != request.application.conference.rawValue)
.update()
}

Expand Down
Loading