diff --git a/contents/[home]/assets/style.css b/contents/[home]/assets/style.css new file mode 100644 index 0000000..075ce4f --- /dev/null +++ b/contents/[home]/assets/style.css @@ -0,0 +1,19 @@ +.promo-box { + border: 3px solid #ffaa00; + color: #000; + padding: 16px; + margin-bottom: 32px; + text-align: center; +} +.promo-box a, .promo-box a:hover { + color: #000 !important; +} + +@media (prefers-color-scheme: dark) { + .promo-box { + color: #fff; + } + .promo-box a, .promo-box a:hover { + color: #fff !important; +} +} \ No newline at end of file diff --git a/contents/[home]/index.md b/contents/[home]/index.md index 7068e81..b53a37d 100644 --- a/contents/[home]/index.md +++ b/contents/[home]/index.md @@ -6,6 +6,14 @@ views: html: blog.home --- +
+ +

+ Available on Gumroad — grab your copy today for just $49. +
+
+ # The.Swift.Dev. Articles about application development using the Swift programming language. + diff --git a/contents/books/index.md b/contents/books/index.md new file mode 100644 index 0000000..a15c224 --- /dev/null +++ b/contents/books/index.md @@ -0,0 +1,65 @@ +--- +title: "Books" +description: "Learn To Code Using Swift & Practical Server Side Swift" +--- + +# Books + +You can find my books listed below, each available for purchase on Gumroad. +Explore the details and download sample chapters to get started. + +--- + +@Grid( + desktop: 2, + tablet: 2, + mobile: 1 +) { + @Column { + ![Learn To Code Using Swift](/assets/learn-to-code-using-swift/cover.jpeg) + } + @Column { +
+ +

Learn To Code
Using Swift

+ + 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. + + [Download sample](/assets/learn-to-code-using-swift/sample.pdf) + + Available on Gumroad + + Last update: + **29th of August, 2025** + } +} + +
+
+
+ +@Grid( + desktop: 2, + tablet: 2, + mobile: 1 +) { + @Column { + ![Practical Server Side Swift](/assets/practical-server-side-swift/cover.png) + } + @Column { +
+ +

Practical
Server Side Swift

+ + 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. + + [Download sample](/assets/practical-server-side-swift/sample.pdf) + + Available on Gumroad + + Last update: + **3rd of April, 2023** + } +} + + diff --git a/contents/learn-to-code-using-swift/assets/cover.jpeg b/contents/learn-to-code-using-swift/assets/cover.jpeg new file mode 100644 index 0000000..67d0ea0 Binary files /dev/null and b/contents/learn-to-code-using-swift/assets/cover.jpeg differ diff --git a/contents/learn-to-code-using-swift/assets/sample.pdf b/contents/learn-to-code-using-swift/assets/sample.pdf new file mode 100644 index 0000000..277b377 Binary files /dev/null and b/contents/learn-to-code-using-swift/assets/sample.pdf differ diff --git a/contents/learn-to-code-using-swift/index.md b/contents/learn-to-code-using-swift/index.md new file mode 100644 index 0000000..4856c28 --- /dev/null +++ b/contents/learn-to-code-using-swift/index.md @@ -0,0 +1,28 @@ +--- +title: "Learn To Code Using Swift" +description: "The absolute beginner's programming book. Learn to code using the Swift programming language." +--- + +@Grid( + desktop: 2, + tablet: 2, + mobile: 1 +) { + @Column { + ![Learn To Code Using Swift](./assets/cover.jpeg) + } + @Column { +
+ + # Learn To Code
Using Swift + + 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. + + [Download sample](/assets/learn-to-code-using-swift/sample.pdf) + + Available on Gumroad + + } +} + + diff --git a/site.yml b/site.yml index 22feac0..badc182 100644 --- a/site.yml +++ b/site.yml @@ -2,11 +2,12 @@ name: "The.Swift.Dev." language: "en-US" description: "Articles about application development using the Swift programming language." navigation: + - label: "Books" + url: "/books/" - label: "Posts" url: "/page/1/" - label: "Tags" url: "/tags/" - label: "Authors" url: "/authors/" - - label: "My Book" - url: "/practical-server-side-swift/" \ No newline at end of file + \ No newline at end of file diff --git a/templates/default/assets/css/style.css b/templates/default/assets/css/style.css index dee8dce..8e9cbb8 100644 --- a/templates/default/assets/css/style.css +++ b/templates/default/assets/css/style.css @@ -149,7 +149,7 @@ img.large { } .book { text-align: center; - border: 3px solid var(--link-color); + border: 3px solid #ffaa00; margin: 32px 0; padding: 32px; } @@ -158,11 +158,12 @@ img.large { } .cta { padding: 8px 16px; - color: var(--white-color) !important; - background: var(--link-color); + color: #000 !important; + background: #ffaa00; + font-weight: bold; } .cta:hover { - background: var(--link-color-hover); + background: #ffaa00; } @media screen and (min-width: 900px) { diff --git a/templates/default/template.yml b/templates/default/template.yml index a82a6d0..4e47a37 100644 --- a/templates/default/template.yml +++ b/templates/default/template.yml @@ -1,9 +1,11 @@ name: "theswiftdev.com website" description: "Public website of theswiftdev.com" url: "https://github.com/theswiftdev/blog" -version: "1.0.0-beta.5" +version: "1.0.0-beta.6" generatorVersions: - "1.0.0-beta.5" + - "1.0.0-beta.6" + - "1.0.0-rc.1" demo: url: "https://theswiftdev.com/" diff --git a/templates/default/views/blog/post/default.mustache b/templates/default/views/blog/post/default.mustache index f1f93d7..ae25340 100644 --- a/templates/default/views/blog/post/default.mustache +++ b/templates/default/views/blog/post/default.mustache @@ -62,14 +62,14 @@
- - Practical Server Side Swift cover image + + Learn To Code Using Swift cover image

- Get the Practical Server Side Swift book + Get the Learn To Code Using Swift book

-

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.

- Available on Gumroad +

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.

+ Available on Gumroad
{{> partials.outline }}