Skip to content

Commit 55cc5fb

Browse files
committed
chore: create flora-branding package, use new branding
1 parent 2c910dc commit 55cc5fb

13 files changed

Lines changed: 38 additions & 281 deletions

File tree

apps/frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@tanstack/react-query": "^5.90.12",
4242
"@tanstack/react-query-devtools": "^5.91.1",
4343
"@uwu/flora-api-client": "workspace:*",
44+
"@uwu/flora-branding": "workspace:*",
4445
"class-variance-authority": "^0.7.1",
4546
"clsx": "^2.1.1",
4647
"date-fns": "^4.1.0",

apps/frontend/public/logo.png

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../packages/branding/logo.png

apps/frontend/public/logo.svg

Lines changed: 0 additions & 139 deletions
This file was deleted.

apps/frontend/public/logo.svg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../packages/branding/logo.svg

apps/frontend/src/components/sidebar/app-sidebar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Skeleton } from '@/components/ui/skeleton'
1313
import { useApp } from '@/contexts/AppContext'
1414
import { useRecentGuilds } from '@/hooks/use-recent-guilds'
1515
import { cn } from '@/lib/utils'
16+
import logoSvg from '@uwu/flora-branding/logo.svg'
1617
import { BookText, Database, FileCode2, ListChecks, Shield } from 'lucide-react'
1718
import { domAnimation, LazyMotion, m, useReducedMotion } from 'motion/react'
1819
import { match } from 'ts-pattern'
@@ -135,7 +136,7 @@ export function DashboardSidebar() {
135136
setLocation('/')
136137
}}
137138
>
138-
<img src='/logo.svg' alt='flora logo' className='h-8 w-8' />
139+
<img src={logoSvg} alt='flora logo' className='h-8 w-8' />
139140
{!isCollapsed && <span className='font-semibold text-black dark:text-white'>flora</span>}
140141
</button>
141142

apps/frontend/src/lib/seo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logoPng from '@uwu/flora-branding/logo.png'
12
import { Helmet } from 'react-helmet-async'
23

34
type SeoProps = {
@@ -32,7 +33,7 @@ function toCanonicalUrl(path?: string) {
3233
}
3334

3435
function toAbsoluteImageUrl(imagePath?: string) {
35-
if (!imagePath) return `${getSiteOrigin()}/logo.png`
36+
if (!imagePath) return logoPng
3637
if (imagePath.startsWith('http://') || imagePath.startsWith('https://')) return imagePath
3738
const path = imagePath.startsWith('/') ? imagePath : `/${imagePath}`
3839
return `${getSiteOrigin()}${path}`

apps/www/.vitepress/theme/components/IndexPage/NavBar.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
<script setup>
2+
import logoSvg from '@uwu/flora-branding/logo.svg'
3+
</script>
4+
15
<template>
26
<nav class="nav">
37
<div class="nav-inner">
48
<div class="nav-left">
5-
<img src="/logo.svg" alt="flora" class="nav-logo" />
9+
<img :src="logoSvg" alt="flora" class="nav-logo" />
610
<span class="nav-brand">flora</span>
711
</div>
812
<div class="nav-links">

apps/www/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"preview": "vitepress preview"
88
},
99
"dependencies": {
10+
"@uwu/flora-branding": "workspace:*",
1011
"@vueuse/core": "^14.2.1",
1112
"motion-v": "2.0.0",
1213
"pasito": "0.1.3",

apps/www/public/flora-logo.png

-153 KB
Binary file not shown.

apps/www/public/flora-logo.png

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../packages/branding/logo.png

0 commit comments

Comments
 (0)