From 4a6af04f4965b56fca0a17c2b593579032d3f9ee Mon Sep 17 00:00:00 2001 From: Hunter Turcin <huntertur@gmail.com> Date: Wed, 11 Dec 2024 18:27:26 -0600 Subject: [PATCH 1/2] Add Weasyl as a predefined site --- assets/linkstack/css/brands.css | 10 ++++++++++ assets/linkstack/icons/weasyl.svg | 1 + config/button-names.php | 1 + database/seeders/ButtonSeeder.php | 8 ++++++++ 4 files changed, 20 insertions(+) create mode 100644 assets/linkstack/icons/weasyl.svg diff --git a/assets/linkstack/css/brands.css b/assets/linkstack/css/brands.css index aa0309a4d..3e935f276 100644 --- a/assets/linkstack/css/brands.css +++ b/assets/linkstack/css/brands.css @@ -1248,6 +1248,16 @@ button.button-scribd{ filter: brightness(90%); } +/* Weasyl */ +.button.button-weasyl { + color: #FFFFFF; + background-color: #121A1D; +} +.button.button-weasyl:hover, +.button.button-weasyl:focus { + filter: brightness(90%); +} + /* WhatsApp */ .button.button-whatsapp { color: #ffffff; diff --git a/assets/linkstack/icons/weasyl.svg b/assets/linkstack/icons/weasyl.svg new file mode 100644 index 000000000..a3cb953e2 --- /dev/null +++ b/assets/linkstack/icons/weasyl.svg @@ -0,0 +1 @@ +<?xml version="1.0"?><svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m5.63 5.6c-1.43-2.26-1.47-3.8-1.47-3.8l-1.37 0.833s-0.0414 2.14 2.04 3.62c-6.65 1.19-6.27 8.02 0.157 7.75 0.737-0.0317-0.806 0.981 1.29 0.582 3.8-0.73 6.2-2.08 8.25-4.3 0.947-1.02-0.521-0.589 0.0764-1.37 5.4-7.07-6.42-11.2-8.97-3.31z" fill="#970000"/><path d="m2.58 7.5 1.75-0.673 2.82 4.45 0.0521-6.88 1.07-0.331 3.74 5.82 0.0342-6.77 1.91-0.563-0.279 7.6-2.38 1.88-2.66-4.18-0.0109 5.47-1.94 0.623z" fill="#fff"/></svg> diff --git a/config/button-names.php b/config/button-names.php index d450baa94..e7e1ceb2e 100644 --- a/config/button-names.php +++ b/config/button-names.php @@ -30,6 +30,7 @@ 'tiktok' => 'TikTok', 'trakt' => 'Trakt', 'vrchat' => 'VRChat', + 'weasyl' => 'Weasyl', 'whatsapp' => 'WhatsApp', 'wordpress' => 'WordPress', 'youtube' => 'YouTube', diff --git a/database/seeders/ButtonSeeder.php b/database/seeders/ButtonSeeder.php index 0d726d82d..c16e8b462 100755 --- a/database/seeders/ButtonSeeder.php +++ b/database/seeders/ButtonSeeder.php @@ -953,6 +953,14 @@ public function run() "group" => "default", "mb" => false, ], + + [ + "name" => "weasyl", + "alt" => "Weasyl", + "exclude" => false, + "group" => "default", + "mb" => false, + ], ]; Button::insert($buttons); From c456fd182743160bff07930ca665179e52a82afb Mon Sep 17 00:00:00 2001 From: Hunter Turcin <huntertur@gmail.com> Date: Tue, 24 Dec 2024 15:52:21 -0600 Subject: [PATCH 2/2] Remove Weasyl entry from config/button-names.php --- config/button-names.php | 1 - 1 file changed, 1 deletion(-) diff --git a/config/button-names.php b/config/button-names.php index e7e1ceb2e..d450baa94 100644 --- a/config/button-names.php +++ b/config/button-names.php @@ -30,7 +30,6 @@ 'tiktok' => 'TikTok', 'trakt' => 'Trakt', 'vrchat' => 'VRChat', - 'weasyl' => 'Weasyl', 'whatsapp' => 'WhatsApp', 'wordpress' => 'WordPress', 'youtube' => 'YouTube',