2024-11-26 11:59:11 +00:00
< script setup lang = "ts" >
import Layout from '../src/components/ui/Layout.vue'
2024-12-04 15:06:34 +00:00
import Card from '../src/components/ui/Card.vue'
2024-12-04 15:25:37 +00:00
import Spacer from '../src/components/ui/layout/Spacer.vue'
2024-11-26 11:59:11 +00:00
2024-12-06 12:54:17 +00:00
import {useRouter} from 'vitepress'
const docsRouter = useRouter()
2024-11-26 11:59:11 +00:00
// import { RouterLink, RouterView } from "vue-router";
// import { createWebHistory, createRouter } from 'vue-router'
2024-12-04 15:06:34 +00:00
// import HomeView from './components/ui/layout.md'
// import AboutView from './components/ui/card.md'
2024-11-26 11:59:11 +00:00
// const routes = [
// { path: '/', component: HomeView },
// { path: '/about', component: AboutView },
// ]
// const router = createRouter({
// history: createWebHistory(),
// routes,
// })
// enhanceApp({app}) {
// app.use(router);
// }
< / script >
# Funkwhale design component library
2024-12-06 12:54:17 +00:00
## Contribute
- [Improve the component library! ](./contributing )
- [Found a bug? Report it here ](https://dev.funkwhale.audio/funkwhale/funkwhale/-/issues/?sort=created_date&state=opened&label_name%5B%5D=Type%3A%3AUX%2FUI&first_page_size=20 )
2024-11-26 11:59:11 +00:00
2024-12-06 12:54:17 +00:00
## Use
2024-12-04 15:25:37 +00:00
2024-12-06 12:54:17 +00:00
< Layout flex >
< Card to = './using-components' title = "Components" style = "width:min-content" / >
< a href = "./using-components" >
< Card title = "Components" style = "width:min-content" / >
< / a >
< a href = "./using-color" >
< Card title = "Colors" style = "width:min-content" / >
< / a >
< a href = "https://design.funkwhale.audio" >
< Card title = "Designs" style = "width:max-content" >
Check out the design system on our Penpot.
< / Card >
< / a >
2024-12-04 15:25:37 +00:00
2024-12-06 12:54:17 +00:00
< / Layout >
2024-12-04 15:25:37 +00:00
<!-- <p>
2024-11-26 11:59:11 +00:00
< strong > Current route path:< / strong >
2024-12-04 15:25:37 +00:00
{{ $route.fullPath }}
< / p > -->
2024-11-26 11:59:11 +00:00
<!-- <nav>
< RouterLink to = "/" > Go to Home< / RouterLink >
< RouterLink to = "/about" > Go to About< / RouterLink >
< / nav > -->
2024-12-04 15:25:37 +00:00
<!-- <main>
< RouterView / >
< / main > -->
2024-12-06 12:54:17 +00:00
< Spacer / >
2024-12-04 15:25:37 +00:00
---
< Spacer / >
2024-11-26 11:59:11 +00:00
2024-12-06 12:54:17 +00:00
< Layout flex >
2024-11-26 11:59:11 +00:00
::: warning Deprecation of Activity, AlbumCard
We are moving some components into the main funkwhale repository. These components will not receive any updates
because they are coupled
with the API:
- Activity
- Album Card
- Artist Card
- Playlist Card
- Podcast Card
- Radio Card
Do not use these components in new projects!
:::
< / Layout >
[[toc]]