File tree Expand file tree Collapse file tree 12 files changed +91
-20
lines changed
Expand file tree Collapse file tree 12 files changed +91
-20
lines changed Original file line number Diff line number Diff line change 1+ ## 📝 About your SVG:
2+
3+ - ** Title** :
4+ - ** Category** :
5+ - ** Website URL** :
6+ - ** Description** :
7+
8+ ## 📷 Screenshots:
9+
10+ ✨ Add screenshots of the logo.
11+
12+ ## ✅ Checklist
13+
14+ - [ ] I have permission to use this logo.
15+ - [ ] The .svg URL I have provided is optimized for web use.
16+ - [ ] The .svg size is less than ** 20kb** .
Original file line number Diff line number Diff line change 1010 Discover
1111 </a>
1212 <span> ✦ </span>
13- <a href="https://github.com/pheralb/svgl/issues/new?assignees=pheralb &labels=request&projects=&template=request-svg-.md &title=%5BRequest% 5D%3A">
13+ <a href="https://github.com/pheralb/svgl/issues/new?assignees=&labels=request&projects=&template=request-svg.yml &title=%5B%F0%9F%94%94+Request+SVG% 5D%3A+ ">
1414 Request logo
1515 </a>
1616 <span> ✦ </span>
@@ -138,6 +138,19 @@ pnpm install
138138}
139139```
140140
141+ - ** Add brand guidelines** :
142+
143+ ``` json
144+ {
145+ "title" : " Title" ,
146+ "category" : " Category" ,
147+ "route" : " /library/your_logo.svg" ,
148+ "wordmark" : " /library/your_logo_wordmark.svg" ,
149+ "brandUrl" : " https://assets.website.com/brand-guidelines" ,
150+ "url" : " Website"
151+ }
152+ ```
153+
141154> [ !NOTE]
142155>
143156> - The list of categories is here: [ ` src/types/categories.ts ` ] ( https://github.com/pheralb/svgl/blob/main/src/types/categories.ts ) . You can add a new category if you need it.
Original file line number Diff line number Diff line change 7272 src : url ('/fonts/GeistMonoVariableVF.woff2' ) format ('woff2' );
7373 font-display : swap;
7474}
75+
76+ html .dark .shiki ,
77+ html .dark .shiki span {
78+ color : var (--shiki-dark ) !important ;
79+ background-color : transparent !important ;
80+ font-style : var (--shiki-dark-font-style ) !important ;
81+ font-weight : var (--shiki-dark-font-weight ) !important ;
82+ text-decoration : var (--shiki-dark-text-decoration ) !important ;
83+ }
Original file line number Diff line number Diff line change 309309 </section >
310310 </Tabs .Content >
311311 </Tabs .Root >
312+ <div
313+ class =" mt-1 flex w-full items-center text-center text-[12px] text-neutral-600 dark:text-neutral-400"
314+ >
315+ <p >
316+ Remember to request permission from the creators for the use of the SVG. Modification is not
317+ allowed.
318+ </p >
319+ </div >
312320 </Popover .Content >
313321</Popover .Root >
Original file line number Diff line number Diff line change 1313 Sparkles ,
1414 EllipsisIcon ,
1515 TagIcon ,
16- XIcon
16+ XIcon ,
17+ PaletteIcon
1718 } from ' lucide-svelte' ;
1819
1920 // Components & styles:
5758 let maxVisibleCategories = 1 ;
5859 let moreTagsOptions = false ;
5960
60- // Global Images Styles:
61+ // Global Styles:
6162 const globalImageStyles = ' mb-4 mt-2 h-10 select-none pointer-events-none' ;
63+ const btnStyles =
64+ ' flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40' ;
6265 </script >
6366
6467<div
175178 : svgInfo .route
176179 );
177180 }}
178- class =" flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40 "
181+ class ={ btnStyles }
179182 >
180183 <ChevronsRight size ={iconSize } strokeWidth ={iconStroke } />
181184 </button >
200203 title =" Website"
201204 target =" _blank"
202205 rel =" noopener noreferrer"
203- class =" flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40 "
206+ class ={ btnStyles }
204207 >
205208 <LinkIcon size ={iconSize } strokeWidth ={iconStroke } />
206209 </a >
210213 on:click ={() => {
211214 wordmarkSvg = ! wordmarkSvg ;
212215 }}
213- class =" flex items-center space-x-2 rounded-md p-2 duration-100 hover:bg-neutral-200 dark:hover:bg-neutral-700/40 "
216+ class ={ btnStyles }
214217 >
215218 {#if wordmarkSvg }
216219 <Sparkles size ={iconSize } strokeWidth ={iconStroke } />
219222 {/if }
220223 </button >
221224 {/if }
225+ {#if svgInfo .brandUrl !== undefined }
226+ <a
227+ href ={svgInfo .brandUrl }
228+ title =" Brand Assets"
229+ target =" _blank"
230+ rel =" noopener noreferrer"
231+ class ={btnStyles }
232+ >
233+ <PaletteIcon size ={iconSize } strokeWidth ={iconStroke } />
234+ </a >
235+ {/if }
222236 </div >
223237</div >
Original file line number Diff line number Diff line change 55 import { cn } from ' @/utils/cn' ;
66
77 let warning = false ;
8- let warningName = ' svgl_warning_message ' ;
8+ let warningName = ' svgl_warn_message ' ;
99 const initialValue = browser ? window .localStorage .getItem (warningName ) : true ;
1010 </script >
1111
1212{#if ! warning && ! initialValue }
1313 <div
14- class =" flex items-center w-full justify-between md: flex-row flex-col md:space-x-2 space-x-0 space-y-2 md:space-y-0 py-2 px-3 bg-neutral-100/60 dark:bg -neutral-800/40 text -neutral-700 dark:text-neutral-300 border-b border-neutral-200 dark:border-neutral-800 "
14+ class =" flex w-full flex-col items-center justify-between space-x-0 space-y-2 border-b border-neutral-200 bg-neutral-100/60 px-3 py-2 text-neutral-700 dark:border -neutral-800 dark:bg -neutral-800/40 dark:text-neutral-300 md:flex-row md:space-x-2 md:space-y-0 "
1515 >
1616 <div class =" flex items-center space-x-2" >
1717 <AlertTriangleIcon
1818 size ={18 }
1919 strokeWidth ={2 }
20- class =" mr-1 flex-shrink-0 text-yellow-600 dark:text-yellow-500 animate-pulse "
20+ class =" mr-1 flex-shrink-0 animate-pulse text-yellow-600 dark:text-yellow-500"
2121 />
2222 <p >
2323 All SVGs include links to the respective products or companies that own them. <strong
24- >Please contact the owner directly if you intend to use their logo.</strong
24+ >Please contact the owner directly if you need to use their logo.</strong
2525 >
26- If you are the owner of an SVG and prefer it not to be displayed here ,
26+ If you are the owner of an SVG and would like it removed ,
2727 <a
2828 target =" _blank"
29- class =" underline underline-offset-4 decoration-dotted decoration-neutral-500 "
29+ class =" underline decoration-neutral-500 decoration-dotted underline-offset-4 "
3030 href =" https://github.com/pheralb/svgl/issues/new" >create an issue</a
3131 > on GitHub.
3232 </p >
Original file line number Diff line number Diff line change @@ -2667,6 +2667,7 @@ export const svgs: iSVG[] = [
26672667 light : '/library/vercel_wordmark.svg' ,
26682668 dark : '/library/vercel_wordmark_dark.svg'
26692669 } ,
2670+ brandUrl : 'https://vercel.com/geist/brands' ,
26702671 url : 'https://vercel.com/'
26712672 } ,
26722673 {
Original file line number Diff line number Diff line change @@ -39,17 +39,18 @@ export interface Category {
3939- For SVGs:
4040
4141``` ts
42- type ThemeOptions = {
43- light: string ;
42+ export type ThemeOptions = {
4443 dark: string ;
44+ light: string ;
4545};
4646
4747export interface iSVG {
48- id: number ;
48+ id? : number ;
4949 title: string ;
50- category: string | string [];
50+ category: tCategory | tCategory [];
5151 route: string | ThemeOptions ;
5252 wordmark? : string | ThemeOptions ;
53+ brandUrl? : string ;
5354 url: string ;
5455}
5556```
Original file line number Diff line number Diff line change 4242 ' prose dark:prose-invert' ,
4343 ' mx-auto max-w-3xl px-4 py-10' ,
4444 ' prose-h2:font-medium prose-h2:tracking-tight prose-h2:underline prose-h2:decoration-neutral-300 prose-h2:underline-offset-[6px] prose-h2:transition-opacity hover:prose-h2:opacity-70 dark:prose-h2:decoration-neutral-700/65' ,
45- ' prose-pre:m-0 prose-pre:border-neutral-200 dark:prose-pre:border dark:prose-pre:border-neutral-800/65'
45+ ' prose-pre:m-0 prose-pre:border prose-pre:border -neutral-200 dark:prose-pre:border dark:prose-pre:border-neutral-800/65'
4646 )}
4747>
4848 <svelte:component this ={data .content } />
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ export interface iSVG {
1111 category : tCategory | tCategory [ ] ;
1212 route : string | ThemeOptions ;
1313 wordmark ?: string | ThemeOptions ;
14+ brandUrl ?: string ;
1415 url : string ;
1516}
You can’t perform that action at this time.
0 commit comments