Files
sonr/pkg/webapp/models/cdn.go
T

102 lines
4.9 KiB
Go
Raw Normal View History

package models
import "fmt"
2024-11-04 10:42:35 -05:00
// ╭───────────────────────────────────────────────────────────╮
// │ Avatar Image Components │
// ╰───────────────────────────────────────────────────────────╯
type Avatar string
const (
Avatar0xDesigner Avatar = "0xdesigner.jpg"
AvatarAccountless Avatar = "accountless.jpg"
2024-11-04 10:42:35 -05:00
AvatarAlexRecouso Avatar = "alexrecouso.jpg"
AvatarChjango Avatar = "chjango.jpg"
AvatarGwart Avatar = "gwart.jpg"
AvatarHTMXOrg Avatar = "htmx_org.jpg"
AvatarJelenaNoble Avatar = "jelena_noble.jpg"
AvatarSonr Avatar = "sonr.svg"
AvatarTanishqXYZ Avatar = "tanishqxyz.jpg"
AvatarUnusualWhales Avatar = "unusual_whales.png"
AvatarWinnieLaux Avatar = "winnielaux_.jpg"
)
func (a Avatar) Src() string {
return fmt.Sprintf("https://cdn.sonr.id/img/avatars/%s", string(a))
}
// ╭───────────────────────────────────────────────────────────╮
// │ General Illustrations │
// ╰───────────────────────────────────────────────────────────╯
type Illustration string
const (
BlockchainExplorer Illustration = "blockchain-explorer"
BlockchainStructure Illustration = "blockchain-structure"
CrossChainBridge Illustration = "cross-chain-bridge"
CrossChainTransfer Illustration = "cross-chain-transfer"
CryptoAirdrop Illustration = "crypto-airdrop"
CryptoCard Illustration = "crypto-card"
CryptoExchange Illustration = "crypto-exchange"
CryptoMining Illustration = "crypto-mining"
CryptoPayments Illustration = "crypto-payments"
CryptoSecurity Illustration = "crypto-security"
CryptoStaking Illustration = "crypto-staking"
CryptoYield Illustration = "crypto-yield"
CurrencyConversion Illustration = "currency-conversion"
DecentralizedNetwork Illustration = "decentralized-network"
DecentralizedWebNode Illustration = "decentralized-web-node"
DefiDashboard Illustration = "defi-dashboard"
GovernanceToken Illustration = "governance-token"
HardwareWallet Illustration = "hardware-wallet"
InitialCoinOffering Illustration = "initial-coin-offering"
LiquidityPool Illustration = "liquidity-pool"
MarketAnalysis Illustration = "market-analysis"
MarketVolatility Illustration = "market-volatility"
MultiCoinWallet Illustration = "multi-coin-wallet"
NetworkLatency Illustration = "network-latency"
PortfolioBalance Illustration = "portfolio-balance"
PrivateKey Illustration = "private-key"
ProofOfStake Illustration = "proof-of-stake"
TokenFractioning Illustration = "token-fractioning"
TokenMinting Illustration = "token-minting"
TokenSwap Illustration = "token-swap"
)
func (i Illustration) Src() string {
return fmt.Sprintf("https://cdn.sonr.id/img/illustrations/%s.svg", string(i))
}
// ╭───────────────────────────────────────────────────────────╮
// │ Empty State Illustrations │
// ╰───────────────────────────────────────────────────────────╯
type ErrorIllustration string
const (
ErrorIllustration404 ErrorIllustration = "404"
ErrorIllustrationEmptyCart ErrorIllustration = "empty-cart"
ErrorIllustrationEmptyMessages ErrorIllustration = "empty-messages"
ErrorIllustrationEmptyNotifications ErrorIllustration = "empty-notifications"
ErrorIllustrationEmptySearch ErrorIllustration = "empty-search"
ErrorIllustrationFileNotFound ErrorIllustration = "file-not-found"
ErrorIllustratinInternalError ErrorIllustration = "internal-error"
ErrorIllustrationNoConnection ErrorIllustration = "no-connection"
ErrorIllustrationOrderNotFound ErrorIllustration = "order-not-found"
ErrorIllustrationPaymentFailed ErrorIllustration = "payment-failed"
)
func (e ErrorIllustration) SrcDefault() string {
return fmt.Sprintf("https://cdn.sonr.id/img/empty-state/default/%s.svg", string(e))
}
func (e ErrorIllustration) SrcMono() string {
return fmt.Sprintf("https://cdn.sonr.id/img/empty-state/mono/%s.svg", string(e))
}
func (e ErrorIllustration) SrcRetro() string {
return fmt.Sprintf("https://cdn.sonr.id/img/empty-state/retro/%s.svg", string(e))
}