Skip to content

Commit

Permalink
Merge pull request #131 from SwiftServerConf/add-2024-videos
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim authored Oct 2, 2024
2 parents 625d832 + 0d647a2 commit efe2763
Show file tree
Hide file tree
Showing 19 changed files with 2,348 additions and 71 deletions.
162 changes: 161 additions & 1 deletion Resources/2022/speakers/andrea-scuderi/index.html

Large diffs are not rendered by default.

153 changes: 152 additions & 1 deletion Resources/2022/speakers/andrew-barba/index.html

Large diffs are not rendered by default.

179 changes: 176 additions & 3 deletions Resources/2022/speakers/cory-benfield/index.html

Large diffs are not rendered by default.

165 changes: 164 additions & 1 deletion Resources/2022/speakers/dave-verwer/index.html

Large diffs are not rendered by default.

168 changes: 167 additions & 1 deletion Resources/2022/speakers/dorian-grolaux/index.html

Large diffs are not rendered by default.

168 changes: 167 additions & 1 deletion Resources/2022/speakers/ellen-shapiro/index.html

Large diffs are not rendered by default.

157 changes: 156 additions & 1 deletion Resources/2022/speakers/firas-safa/index.html

Large diffs are not rendered by default.

175 changes: 174 additions & 1 deletion Resources/2022/speakers/georg-tuparev/index.html

Large diffs are not rendered by default.

166 changes: 165 additions & 1 deletion Resources/2022/speakers/joannis-orlandos/index.html

Large diffs are not rendered by default.

174 changes: 173 additions & 1 deletion Resources/2022/speakers/johannes-weiss/index.html

Large diffs are not rendered by default.

186 changes: 185 additions & 1 deletion Resources/2022/speakers/matias-piipari/index.html

Large diffs are not rendered by default.

172 changes: 171 additions & 1 deletion Resources/2022/speakers/mikaela-caron/index.html

Large diffs are not rendered by default.

167 changes: 166 additions & 1 deletion Resources/2022/speakers/simon-pilkington/index.html

Large diffs are not rendered by default.

53 changes: 52 additions & 1 deletion Resources/2022/videos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,58 @@
<div class="container">
<h1 class="text-center text-white mb-4">Videos</h1>
<h4 class="text-center mb-5">Watch all the amazing content from the conference.</h4>
<ul>
<ul class="list">
<li>
<div class="card">
<div class="video">
<div class="embed-container">
<iframe src="https://www.youtube.com/embed/EUKSZiOaWKk" frameborder="0" allowfullscreen allow="autoplay; encrypted-media"></iframe>
</div>
</div>
<div class="description p-2">
<h3 class="h3">What's New In Foundation</h3>
<ul class="speaker-list">
<li>
<h4 class="f-weight-300">Tony Parker</h4>
</li>
</ul>
</div>
</div>
</li>
<li>
<div class="card">
<div class="video">
<div class="embed-container">
<iframe src="https://www.youtube.com/embed/mRvejHerk9g" frameborder="0" allowfullscreen allow="autoplay; encrypted-media"></iframe>
</div>
</div>
<div class="description p-2">
<h3 class="h3">Globally Distributed Server Side Swift</h3>
<ul class="speaker-list">
<li>
<h4 class="f-weight-300"><a href="/2022/speakers/andrew-barba/">Andrew Barba</a></h4>
</li>
</ul>
</div>
</div>
</li>
<li>
<div class="card">
<div class="video">
<div class="embed-container">
<iframe src="https://www.youtube.com/embed/IlvfhPOPyWM" frameborder="0" allowfullscreen allow="autoplay; encrypted-media"></iframe>
</div>
</div>
<div class="description p-2">
<h3 class="h3">How I Accidentally Ended Up Running The Largest Open-Source Vapor Website</h3>
<ul class="speaker-list">
<li>
<h4 class="f-weight-300"><a href="/2022/speakers/dave-verwer/">Dave Verwer</a></h4>
</li>
</ul>
</div>
</div>
</li>
<li>
<div class="card">
<div class="video">
Expand Down
2 changes: 1 addition & 1 deletion Resources/App/YearX/styles/Pages/videos.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

.videos .card {
width: 300px;
height: 300px;
height: 330px;
background-color: #ffffff;
color: black;
border-radius: 20px;
Expand Down
10 changes: 10 additions & 0 deletions Sources/Conference/Components/SpeakerDetail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ struct SpeakerDetail: Component {
if let talk = speaker.talks.first {
Node.hr()
H3("Talk Details")
if let youtubeVideoID = talk.youtubeVideoID {
Div {
Div {
IFrame(
url: "https://www.youtube.com/embed/\(youtubeVideoID)",
addBorder: false, allowFullScreen: true,
enabledFeatureNames: ["autoplay", "encrypted-media"])
}.class("embed-container")
}.class("video")
}
Div {
H4("Title").class("f-gradient")
H6(talk.title)
Expand Down
51 changes: 32 additions & 19 deletions Sources/Conference/Components/Videos.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,43 @@ struct Videos: Component {
Div {
Div {
Div {
H1("Conference Videos").class("text-center text-white mb-4")
H4("Videos will be uploaded after the conference").class("text-center")
/** Current year videos **/
H1("Videos").class("text-center text-white mb-4")
H4("Watch all the amazing content from the conference.").class(
"text-center mb-5")
Div {
for talk in AllTalks.talks.sorted(by: { $0.order < $1.order }) where talk.youtubeVideoID != nil {
Div {
Div {
Div {
IFrame(
url: "https://www.youtube.com/embed/\(talk.youtubeVideoID!)",
addBorder: false, allowFullScreen: true,
enabledFeatureNames: ["autoplay", "encrypted-media"])
}.class("embed-container")
}.class("video")
Div {
H3(talk.title).class("h3")
List {
for speaker in talk.speakers {
ListItem {
H4 {
Link(speaker.name, url: "/speakers/\(speaker.url)/")
}.class("f-weight-300")
}
}
}.class("speaker-list")
}.class("description p-2")
}.class("card")
}
}.class("list")
// H4("More videos coming soon...").class("text-center mb-5")

H4 {
Text("To see videos from previous editions ")
Link("choose a year", url: "/years")
Text(".")
}.class("text-center mt-4")

/** Current yearr videos **/
// H1("Videos").class("text-center text-white mb-4")
// H4("Watch all the amazing content from the conference.").class("text-center mb-5")
// List {
// Div {
// Div {
// Div {
// IFrame(url: "https://www.youtube.com/embed/eHgpKdvXino", addBorder: false, allowFullScreen: true, enabledFeatureNames: ["autoplay", "encrypted-media"])
// }.class("embed-container")
// }.class("video")
// Div {
// H3("Panel Discussion").class("h3")
// }.class("description p-2")
// }.class("card")
// }
// H4("More videos coming soon...").class("text-center mb-5")
}.class("container")
}.class("page-block no-height bg-blue text-white")
}.class("videos")
Expand Down
4 changes: 2 additions & 2 deletions Sources/Conference/Models/Speaker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct Speaker {
self.name = name
self.role = role
self.company = company
self.url = name.lowercased().replacingOccurrences(of: " ", with: "-")
self.url = name.lowercased().replacingOccurrences(of: " ", with: "-").replacingOccurrences(of: "ö", with: "o")
if let image {
self.image = image
} else {
Expand Down Expand Up @@ -149,7 +149,7 @@ struct AllSpeakers {
name: "Babeth Velghe",
role: "Student",
bio: "A student with a passion for coding, who recently delved into Swift programming. For her bachelor thesis, she explored the Swift OpenAPI Generator.",
talkIDs: [16]),
talkIDs: [6]),
Speaker(
name: "Franz Busch",
role: "Software Engineer",
Expand Down
Loading

0 comments on commit efe2763

Please sign in to comment.