Skip to content

Commit 19051ef

Browse files
authored
Add LTCUS book (#10)
- add Learn To Code Using Swift book - enhance promo boxes - add dedicated books page
1 parent 8c002a4 commit 19051ef

File tree

10 files changed

+136
-12
lines changed

10 files changed

+136
-12
lines changed

contents/[home]/assets/style.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.promo-box {
2+
border: 3px solid #ffaa00;
3+
color: #000;
4+
padding: 16px;
5+
margin-bottom: 32px;
6+
text-align: center;
7+
}
8+
.promo-box a, .promo-box a:hover {
9+
color: #000 !important;
10+
}
11+
12+
@media (prefers-color-scheme: dark) {
13+
.promo-box {
14+
color: #fff;
15+
}
16+
.promo-box a, .promo-box a:hover {
17+
color: #fff !important;
18+
}
19+
}

contents/[home]/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ views:
66
html: blog.home
77
---
88

9+
<div class="promo-box">
10+
<a href="https://theswiftdev.gumroad.com/l/learn-to-code-using-swift">
11+
<img src="/assets/learn-to-code-using-swift/cover.jpeg" width="128px"><br><br>
12+
<strong>Available on Gumroad — grab your copy today for just $49.</strong>
13+
</a>
14+
</div>
15+
916
# The.Swift.Dev.
1017

1118
Articles about application development using the Swift programming language.
19+

contents/books/index.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: "Books"
3+
description: "Learn To Code Using Swift & Practical Server Side Swift"
4+
---
5+
6+
# Books
7+
8+
You can find my books listed below, each available for purchase on Gumroad.
9+
Explore the details and download sample chapters to get started.
10+
11+
---
12+
13+
@Grid(
14+
desktop: 2,
15+
tablet: 2,
16+
mobile: 1
17+
) {
18+
@Column {
19+
![Learn To Code Using Swift](/assets/learn-to-code-using-swift/cover.jpeg)
20+
}
21+
@Column {
22+
<br>
23+
24+
<h2>Learn To Code <br>Using Swift</h2>
25+
26+
Learn To Code Using Swift is a programming book for absolute beginners, born from a fresh approach. It promises beginner-friendly explanations even for complex topics and provides up-to-date Swift knowledge. The book builds progressively from the basics to advanced concepts without expecting any prior programming experience — it clearly explains every idea, definition, and code snippet. It also teaches algorithmic thinking and reasoning skills necessary to thrive even in the age of LLMs. Theory and practice go hand in hand, with more than 350 exercises included to build confidence and solid foundations. Most of the modern Swift language features are covered, making this book a great base for anyone regardless of specific platform or interest.
27+
28+
[Download sample](/assets/learn-to-code-using-swift/sample.pdf)
29+
30+
<a href="https://theswiftdev.gumroad.com/l/learn-to-code-using-swift" class="cta" target="_blank">Available on Gumroad</a>
31+
32+
Last update:
33+
**29th of August, 2025**
34+
}
35+
}
36+
37+
<br>
38+
<hr>
39+
<br>
40+
41+
@Grid(
42+
desktop: 2,
43+
tablet: 2,
44+
mobile: 1
45+
) {
46+
@Column {
47+
![Practical Server Side Swift](/assets/practical-server-side-swift/cover.png)
48+
}
49+
@Column {
50+
<br>
51+
52+
<h2>Practical <br>Server Side Swift</h2>
53+
54+
Swift on the server is an amazing new opportunity to build fast, safe and scalable backend apps. Write your very first web-based application by using your favorite programming language. Learn how to build a modular blog engine using the latest version of the Vapor 4 framework. This book will help you to design and create modern APIs that'll allow you to share code between the server side and iOS. Start becoming a full-stack Swift developer.
55+
56+
[Download sample](/assets/practical-server-side-swift/sample.pdf)
57+
58+
<a href="https://theswiftdev.gumroad.com/l/practical-server-side-swift" class="cta" target="_blank">Available on Gumroad</a>
59+
60+
Last update:
61+
**3rd of April, 2023**
62+
}
63+
}
64+
65+
385 KB
Loading
6.41 MB
Binary file not shown.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "Learn To Code Using Swift"
3+
description: "The absolute beginner's programming book. Learn to code using the Swift programming language."
4+
---
5+
6+
@Grid(
7+
desktop: 2,
8+
tablet: 2,
9+
mobile: 1
10+
) {
11+
@Column {
12+
![Learn To Code Using Swift](./assets/cover.jpeg)
13+
}
14+
@Column {
15+
<br>
16+
17+
# Learn To Code <br>Using Swift
18+
19+
Learn To Code Using Swift is a programming book for absolute beginners, born from a fresh approach. It promises beginner-friendly explanations even for complex topics and provides up-to-date Swift knowledge. The book builds progressively from the basics to advanced concepts without expecting any prior programming experience — it clearly explains every idea, definition, and code snippet. It also teaches algorithmic thinking and reasoning skills necessary to thrive even in the age of LLMs. Theory and practice go hand in hand, with more than 350 exercises included to build confidence and solid foundations. Most of the modern Swift language features are covered, making this book a great base for anyone regardless of specific platform or interest.
20+
21+
[Download sample](/assets/learn-to-code-using-swift/sample.pdf)
22+
23+
<a href="https://theswiftdev.gumroad.com/l/learn-to-code-using-swift" class="cta" target="_blank">Available on Gumroad</a>
24+
25+
}
26+
}
27+
28+

site.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ name: "The.Swift.Dev."
22
language: "en-US"
33
description: "Articles about application development using the Swift programming language."
44
navigation:
5+
- label: "Books"
6+
url: "/books/"
57
- label: "Posts"
68
url: "/page/1/"
79
- label: "Tags"
810
url: "/tags/"
911
- label: "Authors"
1012
url: "/authors/"
11-
- label: "My Book"
12-
url: "/practical-server-side-swift/"
13+

templates/default/assets/css/style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ img.large {
149149
}
150150
.book {
151151
text-align: center;
152-
border: 3px solid var(--link-color);
152+
border: 3px solid #ffaa00;
153153
margin: 32px 0;
154154
padding: 32px;
155155
}
@@ -158,11 +158,12 @@ img.large {
158158
}
159159
.cta {
160160
padding: 8px 16px;
161-
color: var(--white-color) !important;
162-
background: var(--link-color);
161+
color: #000 !important;
162+
background: #ffaa00;
163+
font-weight: bold;
163164
}
164165
.cta:hover {
165-
background: var(--link-color-hover);
166+
background: #ffaa00;
166167
}
167168

168169
@media screen and (min-width: 900px) {

templates/default/template.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: "theswiftdev.com website"
22
description: "Public website of theswiftdev.com"
33
url: "https://github.com/theswiftdev/blog"
4-
version: "1.0.0-beta.5"
4+
version: "1.0.0-beta.6"
55
generatorVersions:
66
- "1.0.0-beta.5"
7+
- "1.0.0-beta.6"
8+
- "1.0.0-rc.1"
79

810
demo:
911
url: "https://theswiftdev.com/"

templates/default/views/blog/post/default.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@
6262

6363
<div>
6464
<div class="book">
65-
<a href="https://theswiftdev.gumroad.com/l/practical-server-side-swift" target="_blank">
66-
<img src="{{baseUrl}}/book/practical-server-side-swift-cover.png" alt="Practical Server Side Swift cover image">
65+
<a href="https://theswiftdev.gumroad.com/l/learn-to-code-using-swift" target="_blank">
66+
<img src="{{baseUrl}}/assets/learn-to-code-using-swift/cover.jpeg" alt="Learn To Code Using Swift cover image">
6767
</a>
6868
<h3>
69-
<a href="https://theswiftdev.gumroad.com/l/practical-server-side-swift" target="_blank">Get the Practical Server Side Swift book</a>
69+
<a href="https://theswiftdev.gumroad.com/l/learn-to-code-using-swift" target="_blank">Get the Learn To Code Using Swift book</a>
7070
</h3>
71-
<p>Swift on the server is an amazing new opportunity to build fast, safe and scalable backend apps. Write your very first web-based application by using your favorite programming language. Learn how to build a modular blog engine using the latest version of the Vapor 4 framework. This book will help you to design and create modern APIs that'll allow you to share code between the server side and iOS. Start becoming a full-stack Swift developer.</p>
72-
<a class="cta" href="https://theswiftdev.gumroad.com/l/practical-server-side-swift" target="_blank">Available on Gumroad</a>
71+
<p>Learn To Code Using Swift is a programming book for absolute beginners, born from a fresh approach. It promises beginner-friendly explanations even for complex topics and provides up-to-date Swift knowledge. The book builds progressively from the basics to advanced concepts without expecting any prior programming experience — it clearly explains every idea, definition, and code snippet. It also teaches algorithmic thinking and reasoning skills necessary to thrive even in the age of LLMs. Theory and practice go hand in hand, with more than 350 exercises included to build confidence and solid foundations. Most of the modern Swift language features are covered, making this book a great base for anyone regardless of specific platform or interest.</p>
72+
<a class="cta" href="https://theswiftdev.gumroad.com/l/learn-to-code-using-swift" target="_blank">Available on Gumroad</a>
7373
</div>
7474

7575
{{> partials.outline }}

0 commit comments

Comments
 (0)