From 9fa88ab910919f79ade4355b3daffd5aaec1ca58 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 13 Oct 2023 16:31:18 -0400 Subject: Added some self links --- app/assets/images/tag_blue.png | Bin 0 -> 586 bytes app/assets/images/tag_green.png | Bin 0 -> 613 bytes app/assets/images/tag_orange.png | Bin 0 -> 586 bytes app/assets/images/tag_pink.png | Bin 0 -> 579 bytes app/assets/images/tag_purple.png | Bin 0 -> 599 bytes app/assets/images/tag_red.png | Bin 0 -> 592 bytes app/assets/images/tag_yellow.png | Bin 0 -> 586 bytes app/assets/stylesheets/main/layout.scss | 8 ++++++++ app/helpers/application_helper.rb | 8 ++++++++ app/views/layouts/application.html.haml | 8 ++++++++ 10 files changed, 24 insertions(+) create mode 100755 app/assets/images/tag_blue.png create mode 100755 app/assets/images/tag_green.png create mode 100755 app/assets/images/tag_orange.png create mode 100755 app/assets/images/tag_pink.png create mode 100755 app/assets/images/tag_purple.png create mode 100755 app/assets/images/tag_red.png create mode 100755 app/assets/images/tag_yellow.png (limited to 'app') diff --git a/app/assets/images/tag_blue.png b/app/assets/images/tag_blue.png new file mode 100755 index 0000000..9757fc6 Binary files /dev/null and b/app/assets/images/tag_blue.png differ diff --git a/app/assets/images/tag_green.png b/app/assets/images/tag_green.png new file mode 100755 index 0000000..83ec984 Binary files /dev/null and b/app/assets/images/tag_green.png differ diff --git a/app/assets/images/tag_orange.png b/app/assets/images/tag_orange.png new file mode 100755 index 0000000..454a59f Binary files /dev/null and b/app/assets/images/tag_orange.png differ diff --git a/app/assets/images/tag_pink.png b/app/assets/images/tag_pink.png new file mode 100755 index 0000000..76e2296 Binary files /dev/null and b/app/assets/images/tag_pink.png differ diff --git a/app/assets/images/tag_purple.png b/app/assets/images/tag_purple.png new file mode 100755 index 0000000..ebaf0e8 Binary files /dev/null and b/app/assets/images/tag_purple.png differ diff --git a/app/assets/images/tag_red.png b/app/assets/images/tag_red.png new file mode 100755 index 0000000..6ebb37d Binary files /dev/null and b/app/assets/images/tag_red.png differ diff --git a/app/assets/images/tag_yellow.png b/app/assets/images/tag_yellow.png new file mode 100755 index 0000000..83d1292 Binary files /dev/null and b/app/assets/images/tag_yellow.png differ diff --git a/app/assets/stylesheets/main/layout.scss b/app/assets/stylesheets/main/layout.scss index 281d820..5f5d0e6 100644 --- a/app/assets/stylesheets/main/layout.scss +++ b/app/assets/stylesheets/main/layout.scss @@ -207,3 +207,11 @@ blockquote.bubble.bottom::after { h2.centered { text-align: center; } + +.fun-links { + a { + font-size: 1.1em; + vertical-align: super; + text-decoration: none; + } +} diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 14d56cf..f883e71 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -30,4 +30,12 @@ module ApplicationHelper Redcarpet::Markdown.new(HTML.new(html_options), options).render(text).html_safe end + def links_sidebar + [ + { title: "Projects", url: "https://code.fourisland.com/" }, + { title: "Mastodon", url: "https://beppo.online/@starlight", extra: { rel: "me" } }, + { title: "Fanfiction", url: "https://archiveofourown.org/users/StarlightSystem" } + ] + end + end diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 2f0d949..91a7c76 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -23,6 +23,14 @@ %p B.S. in CS, Carnegie Mellon 2017 %cite.bubble Hatkirby on Four Island + .sidebar-module.fun-links + .bubble.rounded + %h2 My stuff + %ul + - links_sidebar().each do |link| + %li + = image_tag "tag_#{cycle("blue", "green", "orange", "pink", "purple", "red", "yellow")}" + = link_to link[:title], link[:url], link.include?(:extra) ? link[:extra] : {} .sidebar-module .bubble.rounded %h2 Meta -- cgit 1.4.1