-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
123 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script setup> | ||
</script> | ||
|
||
<template lang="pug"> | ||
nav.header.sticky.top-0.w-full.p-8.bg-dark-200.text-white.text-2xl.font-bold.shadow-xl.mb-8.flex.flex-wrap.gap-6.items-center | ||
h1.flex-auto Gun-avatar | ||
a(href="https://codepen.io/Davay/pen/eYGeGMZ" title="Codepen playground" target="_blank") | ||
.i-la-codepen | ||
a(href="https://www.npmjs.com/package/gun-avatar" title="NPM package" target="_blank") | ||
svg.iconify.iconify--la(xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32") | ||
path(d="M0 10v11h9v2h7v-2h16V10H0zm1.777 1.777h7.114v7.668H7.11v-5.888H5.334v5.888H1.777v-7.668zm8.891 0H17.779v7.666h-3.556v1.78h-3.555v-9.446zm8.889 0H30.225v7.668h-1.78v-5.888h-1.777v5.888h-1.777v-5.888h-1.78v5.888h-3.554v-7.668zm-5.334 1.78v4.111H16v-4.111h-1.777z" fill="currentColor") | ||
a(href="https://github.com/DeFUCC/gun-avatar" title="GitHub repository" target="_blank") | ||
.i-la-github | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,68 @@ | ||
import { defineConfig } from "vitepress"; | ||
import Unocss from 'unocss/vite' | ||
import { presetUno, presetIcons, transformerDirectives, extractorSplit } from "unocss"; | ||
import extractorPug from '@unocss/extractor-pug' | ||
import Components from "unplugin-vue-components/vite"; | ||
|
||
export default defineConfig({ | ||
title: 'Gun-avatar', | ||
titleTemplate: "Gun-avatar public key visualizer", | ||
outDir: "../public/docs/", | ||
lang: 'en-US', | ||
lastUpdated: true, | ||
themeConfig: { | ||
logo: '/avatar.png', | ||
siteTitle: 'Gun-avatar', | ||
repo: "https://github.com/defucc/gun-avatar", | ||
nav: [ | ||
{ text: 'NPM package', link: "https://www.npmjs.com/package/gun-avatar" }, | ||
{ text: 'Codepen playground', link: "https://codepen.io/Davay/pen/eYGeGMZ" }, | ||
], | ||
socialLinks: [ | ||
{ icon: "github", link: "https://github.com/defucc/gun-avatar" }, | ||
], | ||
footer: { | ||
message: 'Released under the MIT License.', | ||
copyright: 'Copyright © 2020-PRESENT Davay42', | ||
}, | ||
|
||
}, | ||
head: [ | ||
['meta', { name: 'theme-color', content: '#ffffff' }], | ||
['meta', { name: 'author', content: 'Davay42' }], | ||
['meta', { property: 'og:title', content: 'Gun-Avatar' }], | ||
['meta', { property: 'og:image', content: 'https://gun-avatar.js.org/avatar.png' }], | ||
['meta', { property: 'og:description', content: 'Public key human recognizable visual hash' }], | ||
['meta', { name: 'twitter:card', content: 'summary_large_image' }], | ||
['meta', { name: 'twitter:creator', content: '@davay42' }], | ||
['meta', { name: 'twitter:image', content: 'https://gun-avatar.js.org/avatar.png' }], | ||
], | ||
vite: { | ||
plugins: [ | ||
Components({ | ||
dirs: ["./.vitepress/components/"], | ||
extensions: ["html", "vue"], | ||
globalNamespaces: ["global"], | ||
include: [/\.vue$/, /\.vue\?vue/, /\.html$/, /\.md$/], | ||
exclude: [/node_modules/, /\.git/], | ||
}), | ||
Unocss({ | ||
presets: [ | ||
presetIcons({ | ||
extraProperties: { | ||
'display': 'inline-block', | ||
'vertical-align': 'middle', | ||
}, | ||
}), | ||
presetUno() | ||
], | ||
transformers: [ | ||
transformerDirectives(), | ||
], | ||
extractors: [ | ||
extractorPug(), | ||
extractorSplit, | ||
], | ||
}), | ||
] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup> | ||
import DefaultTheme from 'vitepress/theme' | ||
const { Layout } = DefaultTheme | ||
</script> | ||
|
||
<template lang="pug"> | ||
Layout | ||
template(#home-hero-image) | ||
.text-20rem ✨ | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import DefaultTheme from 'vitepress/theme' | ||
import MyLayout from './Layout.vue' | ||
|
||
import "@unocss/reset/tailwind.css"; | ||
import "uno.css"; | ||
|
||
export default { | ||
...DefaultTheme, | ||
Layout: MyLayout, | ||
enhanceApp({ app }) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
--- | ||
title: Gun-avatar | ||
title: Gun-Avatar | ||
layout: home | ||
hero: | ||
name: Gun-Avatar | ||
text: Public key visualisation tool | ||
tagline: User avatar and background generator | ||
image: | ||
src: /logo.png | ||
alt: Gun-Avatar | ||
actions: | ||
- theme: brand | ||
text: Get Started | ||
link: /guide/what-is-vitepress | ||
- theme: alt | ||
text: View on GitHub | ||
link: https://github.com/defucc/gun-avatar | ||
features: | ||
- icon: 🛠️ | ||
title: Simple and minimal, always | ||
details: Lorem ipsum... | ||
- icon: ⚡️ | ||
title: Another cool feature | ||
details: Lorem ipsum... | ||
- icon: ✨ | ||
title: Another cool feature | ||
details: Lorem ipsum... | ||
--- | ||
|
||
Welcome! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters