mirror of
				https://github.com/CorentinTh/it-tools.git
				synced 2025-11-04 05:53:25 +00:00 
			
		
		
		
	feat(navbar): added github link
This commit is contained in:
		@@ -3,7 +3,7 @@ import { NIcon } from 'naive-ui';
 | 
				
			|||||||
import { h, ref, type Component } from 'vue';
 | 
					import { h, ref, type Component } from 'vue';
 | 
				
			||||||
import { RouterLink, useRoute } from 'vue-router';
 | 
					import { RouterLink, useRoute } from 'vue-router';
 | 
				
			||||||
import { LightModeFilled, DarkModeFilled } from '@vicons/material'
 | 
					import { LightModeFilled, DarkModeFilled } from '@vicons/material'
 | 
				
			||||||
import { Heart } from '@vicons/tabler'
 | 
					import { Heart, BrandGithub } from '@vicons/tabler'
 | 
				
			||||||
import { toolsByCategory } from '@/tools';
 | 
					import { toolsByCategory } from '@/tools';
 | 
				
			||||||
import SearchBar from '../components/SearchBar.vue';
 | 
					import SearchBar from '../components/SearchBar.vue';
 | 
				
			||||||
import { useStyleStore } from '@/stores/style.store';
 | 
					import { useStyleStore } from '@/stores/style.store';
 | 
				
			||||||
@@ -61,13 +61,13 @@ const m = toolsByCategory.map(category => ({
 | 
				
			|||||||
                    <n-icon :component="Heart" /> 
 | 
					                    <n-icon :component="Heart" /> 
 | 
				
			||||||
                    Sponsor
 | 
					                    Sponsor
 | 
				
			||||||
                </n-button>
 | 
					                </n-button>
 | 
				
			||||||
 | 
					                <n-button circle quaternary tag="a" href="https://github.com/CorentinTh/it-tools" rel="noopener"
 | 
				
			||||||
 | 
					                    target="_blank">
 | 
				
			||||||
 | 
					                    <n-icon size="large" :component="BrandGithub" />
 | 
				
			||||||
 | 
					                </n-button>
 | 
				
			||||||
                <n-button circle quaternary @click="styleStore.isDarkTheme = !styleStore.isDarkTheme">
 | 
					                <n-button circle quaternary @click="styleStore.isDarkTheme = !styleStore.isDarkTheme">
 | 
				
			||||||
                    <n-icon size="large" v-if="styleStore.isDarkTheme">
 | 
					                    <n-icon size="large" v-if="styleStore.isDarkTheme" :component="LightModeFilled" />
 | 
				
			||||||
                        <LightModeFilled />
 | 
					                    <n-icon size="large" v-else :component="DarkModeFilled" />
 | 
				
			||||||
                    </n-icon>
 | 
					 | 
				
			||||||
                    <n-icon size="large" v-else>
 | 
					 | 
				
			||||||
                        <DarkModeFilled />
 | 
					 | 
				
			||||||
                    </n-icon>
 | 
					 | 
				
			||||||
                </n-button>
 | 
					                </n-button>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <slot />
 | 
					            <slot />
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user