Added logo to theme and readme

pull/4/head
Samuel Elgozi 5 years ago
parent a3df035bab
commit 70e82cc8b9

@ -1,3 +1,7 @@
<p align="center">
<img height="120" src="https://raw.githubusercontent.com/vuejs/vitepress/master/lib/theme-default/vitepress.png" alt="Vite Press">
</p>
# (WIP) VitePress 📝💨 # (WIP) VitePress 📝💨
> [VuePress](http://vuepress.vuejs.org/)' little brother, built on top of [vite](https://github.com/vuejs/vite) > [VuePress](http://vuepress.vuejs.org/)' little brother, built on top of [vite](https://github.com/vuejs/vite)
@ -63,11 +67,13 @@ Now, with `vite` and Vue 3, it is time to rethink what a "Vue-powered static sit
## Improvements over VuePress ## Improvements over VuePress
- Uses Vue 3. - Uses Vue 3.
- Leverages Vue 3's improved template static analysis to stringify static content as much as possible. Static content is sent as string literals instead of JavaScript render function code - the JS payload is therefore *much* cheaper to parse, and hydration also becomes faster.
- Leverages Vue 3's improved template static analysis to stringify static content as much as possible. Static content is sent as string literals instead of JavaScript render function code - the JS payload is therefore _much_ cheaper to parse, and hydration also becomes faster.
Note the optimization is applied while still allowing the user to freely mix Vue components inside markdown content - the compiler does the static/dynamic separation for you automatically and you never need to think about it. Note the optimization is applied while still allowing the user to freely mix Vue components inside markdown content - the compiler does the static/dynamic separation for you automatically and you never need to think about it.
- Uses `vite` under the hood: - Uses `vite` under the hood:
- Faster dev server start - Faster dev server start
- Faster hot updates - Faster hot updates
- Faster build (uses Rollup internally) - Faster build (uses Rollup internally)

@ -1,7 +1,7 @@
<template> <template>
<div class="theme-container"> <div class="theme-container">
<h1>{{ $site.title }}</h1> <img src="./vitepress.png" :alt="$site.title" srcset />
<p>{{ $site.description }}</p> <h2>{{ $site.description }}</h2>
<Content /> <Content />
</div> </div>
<Debug /> <Debug />
@ -9,6 +9,26 @@
<style> <style>
.theme-container { .theme-container {
font-family: Arial, Helvetica, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: auto;
min-height: 100vh;
}
h2 {
margin-top: 10px;
color: #6c7695;
font-weight: 300;
}
img {
height: 120px;
} }
</style> </style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Loading…
Cancel
Save