Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tony #128

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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"]),
]
}
Loading