docs: logo + favicon

This commit is contained in:
Evan You 2021-02-05 12:23:38 -05:00
parent f43b420ac2
commit 6869d0e6fb
4 changed files with 17 additions and 5 deletions

View File

@ -7,6 +7,7 @@ module.exports = {
title: 'Vite',
description: 'Next Generation Frontend Tooling',
head: [
['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }],
[
'style',
{},
@ -15,6 +16,7 @@ module.exports = {
],
themeConfig: {
repo: 'vitejs/vite',
logo: '/logo.svg',
docsDir: 'docs',
docsBranch: 'main',
editLinks: true,

View File

@ -0,0 +1,9 @@
.home-hero .image {
width: 200px;
height: 200px;
}
.nav-bar .logo {
height: 30px;
margin-right: 2px;
}

View File

@ -2,6 +2,7 @@ import Theme from 'vitepress/theme'
import { h } from 'vue'
import sponsors from './sponsors.json'
import './sponsors.css'
import './custom.css'
export default {
...Theme,

View File

@ -1,12 +1,12 @@
<svg width="504" height="504" viewBox="0 0 504 504" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M446.641 136.525L262.643 465.545C258.844 472.338 249.084 472.378 245.228 465.618L57.5817 136.556C53.3809 129.19 59.6802 120.267 68.0281 121.759L252.223 154.682C253.398 154.892 254.601 154.89 255.776 154.676L436.119 121.806C444.439 120.289 450.768 129.143 446.641 136.525Z" fill="url(#paint0_linear)"/>
<path d="M339.965 78.5744L203.801 105.255C201.563 105.694 199.906 107.59 199.771 109.866L191.395 251.33C191.198 254.662 194.258 257.248 197.51 256.498L235.42 247.749C238.967 246.931 242.172 250.055 241.443 253.622L230.18 308.775C229.422 312.487 232.907 315.661 236.532 314.56L259.947 307.446C263.577 306.344 267.065 309.527 266.297 313.242L248.398 399.875C247.278 405.294 254.486 408.249 257.492 403.603L259.5 400.5L370.454 179.072C372.312 175.364 369.108 171.137 365.036 171.923L326.014 179.454C322.347 180.161 319.227 176.746 320.262 173.158L345.731 84.8669C346.767 81.2731 343.636 77.8552 339.965 78.5744Z" fill="url(#paint1_linear)"/>
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="53.0002" y1="110" x2="282" y2="421" gradientUnits="userSpaceOnUse">
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
<stop stop-color="#41D1FF"/>
<stop offset="1" stop-color="#BD34FE"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="241.651" y1="85.8182" x2="283.076" y2="369.989" gradientUnits="userSpaceOnUse">
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFEA83"/>
<stop offset="0.0833333" stop-color="#FFDD35"/>
<stop offset="1" stop-color="#FFA800"/>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB