Skip to content

Commit

Permalink
add first article
Browse files Browse the repository at this point in the history
  • Loading branch information
fagnerpereira committed Oct 5, 2024
1 parent 3994880 commit e1916f5
Show file tree
Hide file tree
Showing 24 changed files with 803 additions and 708 deletions.
767 changes: 466 additions & 301 deletions frontend/styles/index.css

Large diffs are not rendered by default.

133 changes: 68 additions & 65 deletions frontend/styles/syntax-highlighting.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
Syntax Highlighting for Code Snippets
https://www.bridgetownrb.com/docs/liquid/tags#stylesheets-for-syntax-highlighting
Expand All @@ -9,69 +9,72 @@
*/

pre.highlight {
padding: 16px;
background-color: #F6F8FA;
.highlight pre {
font-family: 'Cascadia Code';
background-color: #272822;
font-size: medium;
}

.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #000000; font-weight: bold } /* Keyword */
.highlight .o { color: #000000; font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .hll { background-color: #272822; }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d01040 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nl { color: #990000; font-weight: bold } /* Name.Label */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d01040 } /* Literal.String.Backtick */
.highlight .sc { color: #d01040 } /* Literal.String.Char */
.highlight .sd { color: #d01040 } /* Literal.String.Doc */
.highlight .s2 { color: #d01040 } /* Literal.String.Double */
.highlight .se { color: #d01040 } /* Literal.String.Escape */
.highlight .sh { color: #d01040 } /* Literal.String.Heredoc */
.highlight .si { color: #d01040 } /* Literal.String.Interpol */
.highlight .sx { color: #d01040 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d01040 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */

.highlight .gh { } /* Generic Heading & Diff Header */
.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
.highlight .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */
.highlight .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
"postcss-preset-env": "^9.1.2",
"read-cache": "^1.0.0",
"tailwindcss": "^3.4.13"
},
"dependencies": {
"@tailwindcss/typography": "^0.5.15"
}
}
4 changes: 2 additions & 2 deletions src/_layouts/default.slim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
doctype html
html lang=site.locale class="bg-white"
html lang=site.locale class="bg-neutral-700"
head
= render "head", metadata: site.metadata, title: data.title

body class="#{data.layout} #{data.page_class} font-sans text-gray-900 antialiased"
body class="#{data.layout} #{data.page_class} font-sans text-neutral-200 antialiased"
div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8"
= render "navbar", metadata: site.metadata, resource: resource

Expand Down
5 changes: 2 additions & 3 deletions src/_layouts/post.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
layout: default
---

h1 = data.title

= content.html_safe
article class="prose prose-invert"
= content.html_safe
2 changes: 2 additions & 0 deletions src/_partials/_head.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ title

meta name="description" content=metadata.description

link href="https://fonts.cdnfonts.com/css/cascadia-code" rel="stylesheet"
link rel="stylesheet" href=asset_path(:css)

script src=asset_path(:js) defer="defer"
= live_reload_dev_js
12 changes: 6 additions & 6 deletions src/_partials/_navbar.slim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
nav class="py-4 border-b border-gray-200"
nav class="py-4 border-b border-neutral-700"
ul class="flex space-x-6"
/ li
/ a href=relative_url('/') class="text-neutral-200 hover:text-white" Home
/ li
/ a href=relative_url('/about') class="text-neutral-200 hover:text-white" About
li
a href=relative_url('/') class="text-gray-900 hover:text-gray-600" Home
li
a href=relative_url('/about') class="text-gray-900 hover:text-gray-600" About
li
a href=relative_url('/posts') class="text-gray-900 hover:text-gray-600" Posts
a href=relative_url('/posts') class="text-neutral-200 hover:text-white" Posts
26 changes: 0 additions & 26 deletions src/_posts/2024-10-05-welcome-to-bridgetown copy 10.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/_posts/2024-10-05-welcome-to-bridgetown copy 11.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/_posts/2024-10-05-welcome-to-bridgetown copy 2.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/_posts/2024-10-05-welcome-to-bridgetown copy 3.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/_posts/2024-10-05-welcome-to-bridgetown copy 4.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/_posts/2024-10-05-welcome-to-bridgetown copy 5.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/_posts/2024-10-05-welcome-to-bridgetown copy 6.md

This file was deleted.

Loading

0 comments on commit e1916f5

Please sign in to comment.