1
0
Fork 0

style on the welcome page.

This commit is contained in:
Brian D 2024-11-16 16:01:03 -05:00
parent abebfef132
commit a7c6513231
3 changed files with 77 additions and 125 deletions

View file

@ -121,7 +121,7 @@ import OverlayBadge from 'primevue/overlaybadge';
</li> </li>
</ul> </ul>
</div> </div>
<div class="p-8 flex flex-col flex-auto"> <div class="p-4 flex flex-col flex-auto">
<div class="border-2 border-dashed border-surface rounded-border bg-surface-0 dark:bg-surface-950 flex-auto"> <div class="border-2 border-dashed border-surface rounded-border bg-surface-0 dark:bg-surface-950 flex-auto">
<RouterView /> <RouterView />
</div> </div>

View file

@ -8,23 +8,21 @@ import SupportIcon from './icons/IconSupport.vue'
</script> </script>
<template> <template>
<div class="list">
<WelcomeItem> <WelcomeItem>
<template #icon> <template #icon>
<DocumentationIcon /> <DocumentationIcon />
</template> </template>
<template #heading>Documentation</template> <template #heading>Documentation</template>
Vues Vues
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a> <a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
provides you with all information you need to get started. provides you with all information you need to get started.
</WelcomeItem> </WelcomeItem>
<WelcomeItem> <WelcomeItem>
<template #icon> <template #icon>
<ToolingIcon /> <ToolingIcon />
</template> </template>
<template #heading>Tooling</template> <template #heading>Tooling</template>
This project is served and bundled with This project is served and bundled with
<a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The <a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
recommended IDE setup is recommended IDE setup is
@ -37,18 +35,12 @@ import SupportIcon from './icons/IconSupport.vue'
<a href="https://on.cypress.io/component" target="_blank" rel="noopener" <a href="https://on.cypress.io/component" target="_blank" rel="noopener"
>Cypress Component Testing</a >Cypress Component Testing</a
>. >.
<br />
More instructions are available in <code>README.md</code>.
</WelcomeItem> </WelcomeItem>
<WelcomeItem> <WelcomeItem>
<template #icon> <template #icon>
<EcosystemIcon /> <EcosystemIcon />
</template> </template>
<template #heading>Ecosystem</template> <template #heading>Ecosystem</template>
Get official tools and libraries for your project: Get official tools and libraries for your project:
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>, <a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,
<a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>, <a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,
@ -58,13 +50,11 @@ import SupportIcon from './icons/IconSupport.vue'
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a> <a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
a visit. a visit.
</WelcomeItem> </WelcomeItem>
<WelcomeItem> <WelcomeItem>
<template #icon> <template #icon>
<CommunityIcon /> <CommunityIcon />
</template> </template>
<template #heading>Community</template> <template #heading>Community</template>
Got stuck? Ask your question on Got stuck? Ask your question on
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official <a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official
Discord server, or Discord server, or
@ -76,15 +66,24 @@ import SupportIcon from './icons/IconSupport.vue'
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a> <a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
twitter account for latest news in the Vue world. twitter account for latest news in the Vue world.
</WelcomeItem> </WelcomeItem>
<WelcomeItem> <WelcomeItem>
<template #icon> <template #icon>
<SupportIcon /> <SupportIcon />
</template> </template>
<template #heading>Support Vue</template> <template #heading>Support Vue</template>
As an independent project, Vue relies on community backing for its sustainability. You can help As an independent project, Vue relies on community backing for its sustainability. You can help
us by us by
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>. <a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
</WelcomeItem> </WelcomeItem>
</div>
</template> </template>
<style scoped>
.list {
display: flex;
flex-direction: column;
justify-content: flex-start;
gap: 2rem;
padding: 10px;
}
</style>

View file

@ -14,9 +14,7 @@
<style scoped> <style scoped>
.item { .item {
margin-top: 2rem;
display: flex; display: flex;
position: relative;
} }
.details { .details {
@ -30,7 +28,6 @@ i {
place-content: center; place-content: center;
width: 32px; width: 32px;
height: 32px; height: 32px;
color: var(--color-text); color: var(--color-text);
} }
@ -40,48 +37,4 @@ h3 {
margin-bottom: 0.4rem; margin-bottom: 0.4rem;
color: var(--color-heading); color: var(--color-heading);
} }
@media (min-width: 1024px) {
.item {
margin-top: 0;
padding: 0.4rem 0 1rem 80px;
}
i {
top: calc(50% - 25px);
left: -26px;
position: absolute;
border: 1px solid var(--color-border);
background: var(--color-background);
border-radius: 8px;
width: 50px;
height: 50px;
}
.item:before {
content: ' ';
border-left: 1px solid var(--color-border);
position: absolute;
left: 0;
bottom: calc(50% + 25px);
height: calc(50% - 25px);
}
.item:after {
content: ' ';
border-left: 1px solid var(--color-border);
position: absolute;
left: 0;
top: calc(50% + 25px);
height: calc(50% - 25px);
}
.item:first-of-type:before {
display: none;
}
.item:last-of-type:after {
display: none;
}
}
</style> </style>