Skip to content

Commit

Permalink
Merge pull request #128 from SwiftServerConf/add-tony
Browse files Browse the repository at this point in the history
add tony
  • Loading branch information
0xTim authored Sep 23, 2024
2 parents 388473c + d863a5f commit 299a1b2
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 13 deletions.
Binary file added Resources/App/Images/speakers/tony-parker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 19 additions & 11 deletions Sources/Conference/Components/Schedule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct Schedule: Component {
}
TableRow {
TableCell("09:50 - 10:40").class("text-center font-weight-bold")
TableCell("Keynote")
createTalkRow(speakers: [AllSpeakers.speakers[16]])
}
TableRow {
TableCell("10:40 - 11:30").class("text-center font-weight-bold")
Expand Down Expand Up @@ -189,25 +189,29 @@ struct Schedule: Component {
let speaker = AllSpeakers.speakers.first { $0.name == speakerName }!
return createTalkRow(speaker: speaker)
}
func createTalkRow(speaker: Speaker) -> TableCell {

func createTalkRow(speakers: [Speaker]) -> TableCell {
TableCell {
Div {
Div {
Span {
Link(url: "/speakers/\(speaker.url)") {
Image(url: speaker.image, description: speaker.name)
}
}.class("avatar")
for speaker in speakers {
Span {
Link(url: "/speakers/\(speaker.url)") {
Image(url: speaker.image, description: speaker.name)
}
}.class("avatar")
}
}.class("avatars")
Div {
List {
ListItem {
Link(speaker.name, url: "/speakers/\(speaker.url)").class("speakers-list-speaker-name")
for speaker in speakers {
ListItem {
Link(speaker.name, url: "/speakers/\(speaker.url)").class("speakers-list-speaker-name")
}
}
}.class("speaker-list")
Node.br()
if let talk = speaker.talks.first {
if let talk = speakers.first?.talks.first {
Node.a(
.attribute(named: "href"),
.attribute(named: "data-toggle", value: "modal"),
Expand All @@ -220,4 +224,8 @@ struct Schedule: Component {
}.class("talk")
}
}

func createTalkRow(speaker: Speaker) -> TableCell {
createTalkRow(speakers: [speaker])
}
}
4 changes: 2 additions & 2 deletions Sources/Conference/Components/Speakers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ struct Speakers: Component {
H4("We host a diverse selection of inspiring speakers.")
.class("text-center mb-5")
SpeakerList<Conference>(speakers: AllSpeakers.speakers)
H4("More speakers to be announced soon!")
.class("text-center mb-5")
// H4("More speakers to be announced soon!")
// .class("text-center mb-5")
}.class("container")
}.class("bg-blue text-white mt-5")
// Div {
Expand Down
6 changes: 6 additions & 0 deletions Sources/Conference/Models/Speaker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ struct AllSpeakers {
company: "Apple",
bio: "Euan builds cloud services and infrastructure using Swift at Apple. He enjoys working with containers, virtual machines, networks and interesting programming languages. Previously, Euan helped maintain Docker Swarm’s overlay networking and HTTP ingress and contributed to XenServer’s open-source XenAPI control plane, the Xen hypervisor and OpenStack.",
talkIDs: [15]),
Speaker(
name: "Tony Parker",
role: "Manager",
company: "Apple",
bio: "Tony Parker is a manager on the Swift team at Apple, where his responsibilities include the Swift Standard Library, Foundation, and other low level Swift packages. He started working on Foundation 17 years ago, and has seen it through countless releases, ports, and transitions. He is passionate about great API design and helping other developers to create their best apps.",
talkIDs: [19]),
]
}

Expand Down
5 changes: 5 additions & 0 deletions Sources/Conference/Models/Talk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,10 @@ struct AllTalks {
title: "Just Save a File, It's Easy, Right?!",
description: "Upload a photo and download a photo, it's a quick feature right? We'll go through the journey of uploading and downloading a photo to a Vapor app hosted on Heroku. Easy peasy. But is it? We'll discover the pitfalls and what we can do to improve a feature that should be simple.",
speakerNames: ["Mikaela Caron"]),
Talk(
id: 19,
title: "Keynote",
description: "A special keynote",
speakerNames: ["Tony Parker"]),
]
}

0 comments on commit 299a1b2

Please sign in to comment.