Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

feat: add the motion icon #41

Merged
merged 5 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
description: 'A production-ready motion library for Vue3 and Nuxt3, built on the Web Animations API for the smallest filesize and the fastest performance. Powered by Motion One.',
/* prettier-ignore */
head: [
// ['link', { rel: 'icon', type: 'image/svg+xml', href: '/pergel-logo-mini.svg' }],
['link', { rel: 'icon', type: 'image/svg+xml', href: '../assets/motion_logo.svg' }],
// ['link', { rel: 'icon', type: 'image/png', href: '/pergel-logo-mini.png' }],
// ['meta', { name: 'theme-color', content: '#5f67ee' }],
['meta', { property: 'og:type', content: 'website' }],
Expand All @@ -29,6 +29,7 @@ export default defineConfig({
],

themeConfig: {
logo: '../assets/motion_logo.svg',
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Get Started', link: '/started/introduction' },
Expand Down
4 changes: 4 additions & 0 deletions .docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:root {
--vp-home-hero-image-background-image: linear-gradient(200deg, #1102D6 50%, #F5C348 50%) !important;
--vp-home-hero-image-filter: blur(60px) !important;
}
1 change: 1 addition & 0 deletions .docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './tailwind.postcss'
import './custom.css'
import DefaultTheme from 'vitepress/theme'

export default {
Expand Down
12 changes: 12 additions & 0 deletions .docs/assets/motion_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .docs/assets/oku-motion_logo.jpg
Binary file not shown.
14 changes: 0 additions & 14 deletions .docs/components/logo.vue

This file was deleted.

17 changes: 1 addition & 16 deletions .docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ hero:
text: Explore Examples
link: https://stackblitz.com/@YeSuX/collections/oku-motion-examples
image:
src: assets/oku-motion_logo.jpg
src: assets/motion_logo.svg
alt: Oku motion

features:
Expand All @@ -31,18 +31,3 @@ features:
title: Best in Dev
details: Motion DevTools, a Chrome extension, allows for seamless inspection, editing, and exporting of animations created with Oku motion or CSS.
---

<Logo></Logo>

<script setup lang="ts">
import Logo from './components/logo.vue'
import { onMounted } from 'vue'
import { Application } from '@splinetool/runtime'

onMounted(()=>{
const logoComponent = document.getElementById('logo')
const logoContainer = document.getElementsByClassName('image-container')

logoContainer[0].replaceWith(logoComponent)
})
</script>
5 changes: 2 additions & 3 deletions .docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"preview": "vitepress preview"
},
"dependencies": {
"@oku-ui/motion": "^0.3.4",
"@splinetool/runtime": "^1.0.63"
"@oku-ui/motion": "^0.3.4"
},
"devDependencies": {
"@tailwindcss/postcss7-compat": "^2.2.17",
Expand All @@ -19,7 +18,7 @@
"pathe": "^1.1.2",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.1",
"typescript": "^5.4.2",
"typescript": "^5.4.3",
"vitepress": "^1.0.0-rc.45",
"vitepress-plugin-twoslash": "^0.10.2"
}
Expand Down
Loading
Loading