Added brand color css classes and updated README.md

This commit is contained in:
Nikurasu 2022-05-01 02:14:53 +02:00
parent 7b1cb524f3
commit 14db2260aa
3 changed files with 26 additions and 6 deletions

View file

@ -24,7 +24,9 @@ It's very simple, follow these steps.
media plaform of your choice, but this feature is optional, the link will media plaform of your choice, but this feature is optional, the link will
be displayed in the themes color if unset. The currently supported platforms be displayed in the themes color if unset. The currently supported platforms
are: are:
- None, I will implement this feature in a future release - YouTube, Pinterest, Twitter, TikTok, Telegram, Linkedin, Mastodon, Tumblr,
Discord, Twitch, Instagram, Flickr, Deviantart, Spotify, Snapchat, Reddit,
Soundcloud, VK, Steam
- Place the link in the `link` property, this property is needed. - Place the link in the `link` property, this property is needed.
- You can give the link a different text if you want with the `text` property. - You can give the link a different text if you want with the `text` property.
This is also optional. This is also optional.
@ -37,7 +39,6 @@ It's very simple, follow these steps.
# TODO # TODO
- Different colors for different social media platforms
- More themes - More themes
--- ---

View file

@ -43,7 +43,7 @@ body {
width: 750px; width: 750px;
max-width: 90%; max-width: 90%;
align-items: center; align-items: center;
}
a { a {
$height: 3rem; $height: 3rem;
$transitionDuration: 0.25s; $transitionDuration: 0.25s;
@ -67,4 +67,23 @@ body {
color: $gradient2; color: $gradient2;
} }
} }
//@TODO Add colors for different Platforms
@each $name, $color in $brandcolors {
.#{$name} {
border-color: $color;
color: $color;
&:hover {
background-color: $color;
}
}
}
.link {
border-color: $g_black;
color: $g_black;
&:hover {
background-color: $g_black;
}
}
}

View file

@ -15,11 +15,11 @@
{{ strtoupper($link->platform) }} {{ strtoupper($link->platform) }}
</a> </a>
@elseif (isset($link['text']) && !isset($link['color'])) @elseif (isset($link['text']) && !isset($link['color']))
<a href="{{$link->link}}" class="styledefault"> <a href="{{$link->link}}">
{{ strtoupper($link->text) }} {{ strtoupper($link->text) }}
</a> </a>
@else @else
<a href="{{$link->link}}" class="sytledefault"> <a href="{{$link->link}}">
{{ strtoupper($link->platform) }} {{ strtoupper($link->platform) }}
</a> </a>
@endif @endif