summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-07-05 14:23:16 +0200
committerAhmed Abdelhalim <[email protected]>2021-07-05 14:23:16 +0200
commit79c1ee1c608ce5761973d3353ad0da802d3f9645 (patch)
tree2e739893fa5ed3d509b779c1a67a81036454658a
parent04acecca6f8024767cda4579dfd25b2742cd0208 (diff)
Refactor writing/projects sections and make them 1 type
-rw-r--r--app/assets/index.html24
-rw-r--r--app/print.styl1
-rw-r--r--app/stylesheets/print/projects.styl11
-rw-r--r--app/stylesheets/print/writing.styl12
-rw-r--r--app/stylesheets/web/projects.styl3
-rw-r--r--app/stylesheets/web/writing.styl18
-rw-r--r--app/web.styl1
7 files changed, 16 insertions, 54 deletions
diff --git a/app/assets/index.html b/app/assets/index.html
index 89a3beb..c55e982 100644
--- a/app/assets/index.html
+++ b/app/assets/index.html
@@ -205,13 +205,13 @@
</article>
</article>
- <article class="writing">
- <h1 class="writing__header section-header">Writing</h1>
- <article>
- <h2 class="writing__title">
+ <article class="projects">
+ <h1 class="projects_header section-header">Writing</h1>
+ <article class="project">
+ <h2 class="project__title">
The Publish/Subscribe Pattern on Rails
</h2>
- <p class="writing__content">
+ <p class="project__content">
A
<a href="https://www.toptal.com/ruby-on-rails/the-publish-subscribe-pattern-on-rails">
Toptal published blog post
@@ -219,11 +219,11 @@
on implementing the <abbr title="Publish-Subscribe">Pub/Sub</abbr> pattern in practice in Rails apps.
</p>
</article>
- <article>
- <h2 class="writing__title">
+ <article class="project">
+ <h2 class="project__title">
Clean Code and the Art of Exception Handling
</h2>
- <p class="writing__content">
+ <p class="project__content">
A
<a href="https://www.toptal.com/abap/clean-code-and-the-art-of-exception-handling">
Toptal published blog post
@@ -235,7 +235,7 @@
<article class="projects">
<h1 class="projects__header section-header">Projects</h1>
- <article>
+ <article class="project">
<h2 class="project__title">
<a href="https://git.sr.ht/~a14m/game-of-life">
Conway's Game of Life
@@ -248,7 +248,7 @@
git-ish workflow.
</p>
</article>
- <article>
+ <article class="project">
<h2 class="project__title">
<a href="https://git.sr.ht/~a14m/OTW">
Over The Wire Solutions
@@ -259,7 +259,7 @@
documented in a README files
</p>
</article>
- <article>
+ <article class="project">
<h2 class="project__title">
<a href="https://git.sr.ht/~a14m/HTB">
Hack The Box Solutions
@@ -270,7 +270,7 @@
documented in a README files (learning security analysis)
</p>
</article>
- <article>
+ <article class="project">
<h2 class="project__title">
<a href="https://git.sr.ht/~a14m/a14m.srht.site">
a14m.srht.site
diff --git a/app/print.styl b/app/print.styl
index c1feba7..389c493 100644
--- a/app/print.styl
+++ b/app/print.styl
@@ -16,7 +16,6 @@ body {
@require "stylesheets/print/summary.styl"
@require "stylesheets/print/skills.styl"
@require "stylesheets/print/work.styl"
-@require "stylesheets/print/writing.styl"
@require "stylesheets/print/projects.styl"
@require "stylesheets/print/education.styl"
diff --git a/app/stylesheets/print/projects.styl b/app/stylesheets/print/projects.styl
index 96f4309..8ab284c 100644
--- a/app/stylesheets/print/projects.styl
+++ b/app/stylesheets/print/projects.styl
@@ -1,12 +1,3 @@
-.projects {
+.project {
page-break-inside: avoid
}
-
-.projects__header {
-}
-
-.project__title {
-}
-
-.project__content {
-}
diff --git a/app/stylesheets/print/writing.styl b/app/stylesheets/print/writing.styl
deleted file mode 100644
index 2f36735..0000000
--- a/app/stylesheets/print/writing.styl
+++ /dev/null
@@ -1,12 +0,0 @@
-.writing {
- page-break-inside: avoid
-}
-
-.writing__header {
-}
-
-.writing__title {
-}
-
-.writing__content {
-}
diff --git a/app/stylesheets/web/projects.styl b/app/stylesheets/web/projects.styl
index 6e8441a..f3889af 100644
--- a/app/stylesheets/web/projects.styl
+++ b/app/stylesheets/web/projects.styl
@@ -4,6 +4,9 @@
.projects__header {
}
+.project {
+}
+
.project__title {
margin-bottom: 0
font-size: 1.1em
diff --git a/app/stylesheets/web/writing.styl b/app/stylesheets/web/writing.styl
deleted file mode 100644
index 3cbf52a..0000000
--- a/app/stylesheets/web/writing.styl
+++ /dev/null
@@ -1,18 +0,0 @@
-.writing {
-}
-
-.writing__header {
-}
-
-.writing__title {
- margin-bottom: 0
- font-size: 1.1em
-
-}
-
-.writing__content {
- margin-left: 1.2em
- margin-right: 1.2em
- margin-top: 0.3em
- margin-bottom: 1.5em
-}
diff --git a/app/web.styl b/app/web.styl
index 203ef9e..3352eb5 100644
--- a/app/web.styl
+++ b/app/web.styl
@@ -60,6 +60,5 @@ a:link, a:visited, a:hover, a:active {
@require "stylesheets/web/summary.styl"
@require "stylesheets/web/skills.styl"
@require "stylesheets/web/work.styl"
-@require "stylesheets/web/writing.styl"
@require "stylesheets/web/projects.styl"
@require "stylesheets/web/education.styl"