Add Nova branding
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
const defaultThemeColour = "#220735"
|
||||
const defaultHost = "https://pixeldrain.com"
|
||||
const defaultHost = "https://nova.storage"
|
||||
|
||||
type ogData struct {
|
||||
MetaPropRules []ogProp
|
||||
@@ -28,15 +28,15 @@ func (og *ogData) addLink(k, v string) { og.LinkRules = append(og.LinkRules, ogP
|
||||
|
||||
func generateOGData(name, filetype, pageurl, fileurl, thumbnailurl, themecolour string) (og ogData) {
|
||||
og.addProp("og:title", name)
|
||||
og.addProp("og:site_name", "pixeldrain")
|
||||
og.addProp("og:description", "This file has been shared with you on pixeldrain")
|
||||
og.addProp("og:site_name", "Nova.storage")
|
||||
og.addProp("og:description", "This file has been shared with you on Nova")
|
||||
og.addProp("og:url", pageurl)
|
||||
og.addProp("description", "This file has been shared with you on pixeldrain")
|
||||
og.addName("description", "This file has been shared with you on pixeldrain")
|
||||
og.addName("keywords", "pixeldrain,shared,sharing,upload,file,free")
|
||||
og.addProp("description", "This file has been shared with you on Nova")
|
||||
og.addName("description", "This file has been shared with you on Nova")
|
||||
og.addName("keywords", "shared,sharing,upload,file")
|
||||
og.addName("twitter:title", name)
|
||||
og.addName("twitter:site", "@Fornax96")
|
||||
og.addName("twitter:domain", "pixeldrain.com")
|
||||
og.addName("twitter:domain", "nova.storage")
|
||||
og.addName("theme-color", themecolour)
|
||||
|
||||
if strings.HasPrefix(filetype, "image") {
|
||||
|
||||
@@ -48,6 +48,8 @@ func userStyle(style string, hue int) template.CSS {
|
||||
switch style {
|
||||
default:
|
||||
fallthrough
|
||||
case "nova":
|
||||
def = novaStyle
|
||||
case "adwaita":
|
||||
def = adwaitaDarkStyle
|
||||
light = adwaitaLightStyle
|
||||
@@ -323,6 +325,21 @@ var classicStyle = styleSheet{
|
||||
CardColor: HSL{0, 0, .16},
|
||||
}
|
||||
|
||||
var novaStyle = styleSheet{
|
||||
Input: HSL{94, 1, .1},
|
||||
InputHover: HSL{94, 1, .15},
|
||||
InputText: HSL{0, 0, .9},
|
||||
InputDisabledText: HSL{0, 0, .4},
|
||||
Highlight: HSL{94, .70, .45},
|
||||
HighlightText: HSL{0, 0, 0},
|
||||
Danger: HSL{339, .65, .31},
|
||||
|
||||
BackgroundColor: HSL{94, 1, .02},
|
||||
BodyColor: HSL{94, 1, .04},
|
||||
BodyText: HSL{94, 1, .9},
|
||||
CardColor: HSL{94, 1, .06},
|
||||
}
|
||||
|
||||
var maroonStyle = styleSheet{
|
||||
Input: HSL{0, .8, .20}, // hsl(0, 87%, 40%)
|
||||
InputHover: HSL{0, .8, .25},
|
||||
|
||||
Reference in New Issue
Block a user