aboutsummaryrefslogtreecommitdiff
path: root/data.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-14 14:58:05 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-14 14:58:05 +0100
commitfce56f5088e27c0865d3a2d03936039e1a21059a (patch)
treef96f915d21a15a5f6accec7bc0459a06c0aa2025 /data.go
parent83a7fc5cf8eda929eef75305ec8435ecd228d2f4 (diff)
feat(style): harmonize button color
Diffstat (limited to 'data.go')
-rw-r--r--data.go16
1 files changed, 2 insertions, 14 deletions
diff --git a/data.go b/data.go
index c5c98c3..06ac7e2 100644
--- a/data.go
+++ b/data.go
@@ -50,12 +50,8 @@ type ButtonColor struct {
}
type Link struct {
- Link string `json:"link"`
- Content string `json:"content"`
- Color string `json:"color"`
- TextColor string `json:"text_color"`
- ColorHover string `json:"color_hover"`
- TextColorHover string `json:"text_color_hover"`
+ Link string `json:"link"`
+ Content string `json:"content"`
}
type Legal struct {
@@ -91,11 +87,3 @@ func (b *ButtonColor) GetTextColor() template.CSS {
func (b *ButtonColor) GetBackground() template.CSS {
return template.CSS("--background: " + b.Background + ";--background-hover: " + b.BackgroundHover + ";")
}
-
-func (l *Link) GetLinkColor() template.CSS {
- return template.CSS("--text-color: " + l.TextColor + ";--text-color-hover: " + l.TextColorHover + ";")
-}
-
-func (l *Link) GetBackground() template.CSS {
- return template.CSS("--background: " + l.Color + ";--background-hover: " + l.ColorHover + ";")
-}