Skip to content

Commit

Permalink
Added BlueSkyHandle for social
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Nov 9, 2024
1 parent 7e360df commit 65b6dfe
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 56 deletions.
4 changes: 4 additions & 0 deletions src/LinkDotNet.Blog.Domain/Social.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ public sealed record Social
public string? YoutubeAccountUrl { get; init; }

public bool HasYoutubeAccount => !string.IsNullOrEmpty(YoutubeAccountUrl);

public string? BlueSkyHandle { get; init; }

public bool HasBlueSkyHandle => !string.IsNullOrEmpty(BlueSkyHandle);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
@code {
private List<SocialAccount> AllSocialAccounts =>
[
// Icons have to be defined in the icons.css
// Icons have to be defined in the icons.css or basic.css as a class
new("linkedin", Social.HasLinkedinAccount, Social.LinkedInAccountUrl, "LinkedIn", "linkedin"),
new("github", Social.HasGithubAccount, Social.GithubAccountUrl, "Github", "github"),
new("twitter", Social.HasTwitterAccount, Social.TwitterAccountUrl, "Twitter", "twitter"),
new("youtube", Social.HasYoutubeAccount, Social.YoutubeAccountUrl, "Youtube", "youtube")
new("youtube", Social.HasYoutubeAccount, Social.YoutubeAccountUrl, "Youtube", "youtube"),
new("bluesky", Social.HasBlueSkyHandle, Social.BlueSkyHandle, "Bluesky", "bluesky"),
];

[Parameter, EditorRequired]
Expand Down
3 changes: 2 additions & 1 deletion src/LinkDotNet.Blog.Web/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"GithubAccountUrl": "",
"LinkedInAccountUrl": "",
"TwitterAccountUrl": "",
"YoutubeAccountUrl": ""
"YoutubeAccountUrl": "",
"BlueSkyHandle": "steven-giesel.com",
},
"Introduction": {
"Description": "A small introduction to your **blog**. Can be in markdown",
Expand Down
98 changes: 70 additions & 28 deletions src/LinkDotNet.Blog.Web/wwwroot/css/fonts/Blog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,50 @@
"metadata": {
"name": "Blog",
"lastOpened": 0,
"created": 1719313968604
"created": 1731145998745
},
"iconSets": [
{
"selection": [
{
"order": 86,
"id": 0,
"name": "bluesky",
"prevSize": 32,
"code": 59650,
"tempChar": ""
}
],
"id": 5,
"metadata": {
"name": "Custom",
"importSize": {
"width": 24,
"height": 24
}
},
"height": 1024,
"prevSize": 32,
"icons": [
{
"id": 0,
"paths": [
"M512 460.8c-46.379-90.197-172.629-258.261-290.048-341.12-112.469-79.403-155.349-65.664-183.467-52.907-32.555 14.635-38.485 64.64-38.485 93.995 0 29.44 16.128 241.067 26.624 276.437 34.773 116.736 158.421 156.16 272.341 143.531 5.803-0.853 11.733-1.664 17.707-2.389-5.888 0.939-11.776 1.707-17.707 2.389-166.912 24.747-315.179 85.547-120.747 301.995 213.888 221.44 293.12-47.488 333.781-183.808 40.661 136.32 87.467 395.563 329.941 183.808 182.059-183.808 50.005-277.248-116.907-301.995-7.811-0.854-13.863-1.696-19.867-2.682l2.16 0.293c5.973 0.725 11.904 1.536 17.707 2.389 113.92 12.672 237.568-26.795 272.341-143.531 10.496-35.328 26.624-247.040 26.624-276.395 0-29.44-5.931-79.403-38.485-94.123-28.117-12.715-70.997-26.453-183.467 52.907-117.419 82.987-243.669 251.051-290.048 341.205z"
],
"attrs": [
{}
],
"isMulticolor": false,
"isMulticolor2": false,
"grid": 0,
"tags": [
"bluesky"
]
}
],
"invisible": false,
"colorThemes": []
},
{
"selection": [
{
Expand All @@ -14,7 +55,7 @@
"id": 0,
"prevSize": 32,
"code": 59648,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "pencil, write",
Expand All @@ -23,7 +64,7 @@
"id": 1,
"prevSize": 32,
"code": 59653,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "books, library",
Expand All @@ -32,7 +73,7 @@
"id": 2,
"prevSize": 32,
"code": 59680,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "profile, file2",
Expand All @@ -41,7 +82,7 @@
"id": 3,
"prevSize": 32,
"code": 59683,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "copy, duplicate",
Expand All @@ -50,7 +91,7 @@
"id": 4,
"prevSize": 32,
"code": 59692,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "price-tags",
Expand All @@ -59,7 +100,7 @@
"id": 5,
"prevSize": 32,
"code": 59702,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "clock2, time3",
Expand All @@ -68,7 +109,7 @@
"id": 6,
"prevSize": 32,
"code": 59727,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "calendar, date",
Expand All @@ -77,7 +118,7 @@
"id": 7,
"prevSize": 32,
"code": 59731,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "user-tie, user5",
Expand All @@ -86,7 +127,7 @@
"id": 8,
"prevSize": 32,
"code": 59766,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "search, magnifier",
Expand All @@ -95,7 +136,7 @@
"id": 9,
"prevSize": 32,
"code": 59782,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "lock, secure",
Expand All @@ -104,7 +145,7 @@
"id": 10,
"prevSize": 32,
"code": 59791,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "unlocked, lock-open",
Expand All @@ -113,7 +154,7 @@
"id": 11,
"prevSize": 32,
"code": 59792,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "lab, beta",
Expand All @@ -122,7 +163,7 @@
"id": 12,
"prevSize": 32,
"code": 59818,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "bin2, trashcan2",
Expand All @@ -131,7 +172,7 @@
"id": 13,
"prevSize": 32,
"code": 59821,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "contrast",
Expand All @@ -140,7 +181,7 @@
"id": 14,
"prevSize": 32,
"code": 59861,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "plus, add",
Expand All @@ -149,7 +190,7 @@
"id": 15,
"prevSize": 32,
"code": 59914,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "circle-right, right5",
Expand All @@ -158,7 +199,7 @@
"id": 16,
"prevSize": 32,
"code": 59970,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "share2, social",
Expand All @@ -167,7 +208,7 @@
"id": 17,
"prevSize": 32,
"code": 60034,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "twitter, brand16",
Expand All @@ -176,7 +217,7 @@
"id": 18,
"prevSize": 32,
"code": 60054,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "feed3, rss2",
Expand All @@ -185,7 +226,7 @@
"id": 19,
"prevSize": 32,
"code": 60060,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "github, brand40",
Expand All @@ -194,7 +235,7 @@
"id": 20,
"prevSize": 32,
"code": 60080,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "linkedin, brand64",
Expand All @@ -203,15 +244,15 @@
"id": 21,
"prevSize": 32,
"code": 60105,
"tempChar": ""
"tempChar": ""
},
{
"order": 68,
"id": 22,
"name": "list, todo, bullet, menu, options",
"prevSize": 32,
"code": 59649,
"tempChar": ""
"tempChar": ""
}
],
"id": 4,
Expand Down Expand Up @@ -982,7 +1023,7 @@
"order": 84,
"prevSize": 32,
"code": 59707,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "coin-euro, money2",
Expand Down Expand Up @@ -3109,7 +3150,7 @@
"order": 85,
"prevSize": 32,
"code": 60061,
"tempChar": ""
"tempChar": ""
},
{
"ligatures": "youtube2, brand22",
Expand Down Expand Up @@ -13277,7 +13318,6 @@
]
}
],
"uid": -1,
"preferences": {
"showGlyphs": true,
"showQuickUse": true,
Expand Down Expand Up @@ -13316,5 +13356,7 @@
"historySize": 50,
"showCodes": true,
"gridSize": 16
}
},
"uid": -1,
"time": 1731146188893
}
Binary file modified src/LinkDotNet.Blog.Web/wwwroot/css/fonts/icons.woff
Binary file not shown.
Binary file modified src/LinkDotNet.Blog.Web/wwwroot/css/fonts/icons.woff2
Binary file not shown.
3 changes: 3 additions & 0 deletions src/LinkDotNet.Blog.Web/wwwroot/css/icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,6 @@ i {
.youtube:before {
content: "\ea9d";
}
.bluesky:before {
content: "\e902";
}
Loading

0 comments on commit 65b6dfe

Please sign in to comment.