feat: Add welcome component with documentation, tooling, ecosystem, community, and support sections

feat: Create WelcomeItem component for displaying welcome messages

feat: Implement various icon components for the welcome section

feat: Add theme management functionality with multiple color themes

feat: Integrate internationalization support with Spanish and English locales

feat: Set up Vue Router with authentication callback handling

feat: Implement authentication service for Discord OAuth2 login

feat: Create bot service for fetching bot statistics and information

feat: Add AuthCallback view for handling authentication responses

chore: Configure Vite for development and production environments
This commit is contained in:
Shni
2025-11-04 12:22:59 -06:00
parent 05b3bb394a
commit 86c17728c4
48 changed files with 7564 additions and 1 deletions

View File

@@ -0,0 +1,90 @@
<template>
<div class="animated-background">
<div class="gradient-layer layer-1"></div>
<div class="gradient-layer layer-2"></div>
<div class="gradient-layer layer-3"></div>
<div class="grid-pattern"></div>
</div>
</template>
<script setup>
// Fondo animado con gradientes rojos en movimiento
</script>
<style scoped>
.animated-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1;
background: #0a0a0a;
}
.grid-pattern {
position: absolute;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
background-size: 50px 50px;
z-index: 1;
}
.gradient-layer {
position: absolute;
width: 150%;
height: 150%;
opacity: 0.6;
filter: blur(80px);
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
.layer-1 {
background: radial-gradient(circle at 30% 50%, var(--color-primary, #ff1744) 0%, transparent 50%);
animation: slide1 15s infinite;
}
.layer-2 {
background: radial-gradient(circle at 70% 60%, var(--color-accent, #d50000) 0%, transparent 50%);
animation: slide2 20s infinite;
animation-delay: -5s;
}
.layer-3 {
background: radial-gradient(circle at 50% 40%, var(--color-secondary, #ff5252) 0%, transparent 50%);
animation: slide3 18s infinite;
animation-delay: -10s;
}
@keyframes slide1 {
0%, 100% {
transform: translate(-10%, -10%) rotate(0deg);
}
50% {
transform: translate(10%, 10%) rotate(180deg);
}
}
@keyframes slide2 {
0%, 100% {
transform: translate(10%, -10%) rotate(0deg);
}
50% {
transform: translate(-10%, 10%) rotate(-180deg);
}
}
@keyframes slide3 {
0%, 100% {
transform: translate(0%, 10%) rotate(0deg);
}
50% {
transform: translate(0%, -10%) rotate(360deg);
}
}
</style>

View File

@@ -0,0 +1,58 @@
<template>
<button class="discord-login-btn" @click="handleLogin" :disabled="loading">
<svg class="discord-icon" viewBox="0 0 127.14 96.36">
<path fill="currentColor" d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"/>
</svg>
<span v-if="!loading">{{ t('login.withDiscord') }}</span>
<span v-else>{{ t('login.loading') }}</span>
</button>
</template>
<script setup>
import { ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { authService } from '@/services/auth'
const { t } = useI18n()
const loading = ref(false)
const handleLogin = () => {
loading.value = true
authService.loginWithDiscord()
}
</script>
<style scoped>
.discord-login-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 14px 32px;
background: #5865f2;
color: white;
border: none;
border-radius: 30px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}
.discord-login-btn:hover:not(:disabled) {
background: #4752c4;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}
.discord-login-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.discord-icon {
width: 24px;
height: 24px;
}
</style>

View File

@@ -0,0 +1,44 @@
<script setup>
defineProps({
msg: {
type: String,
required: true,
},
})
</script>
<template>
<div class="greetings">
<h1 class="green">{{ msg }}</h1>
<h3>
Youve successfully created a project with
<a href="https://vite.dev/" target="_blank" rel="noopener">Vite</a> +
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
</h3>
</div>
</template>
<style scoped>
h1 {
font-weight: 500;
font-size: 2.6rem;
position: relative;
top: -10px;
}
h3 {
font-size: 1.2rem;
}
.greetings h1,
.greetings h3 {
text-align: center;
}
@media (min-width: 1024px) {
.greetings h1,
.greetings h3 {
text-align: left;
}
}
</style>

View File

@@ -0,0 +1,463 @@
<template>
<section class="hero-section">
<div class="hero-content">
<div class="hero-text">
<h1 class="hero-title">
<span class="typewriter">{{ displayText }}</span>
<span class="cursor" :class="{ blink: showCursor }">|</span>
</h1>
<p class="hero-subtitle">{{ t('hero.subtitle') }}</p>
<div class="hero-actions">
<button class="hero-btn primary" @click="scrollToFeatures">
{{ t('hero.exploreFeatures') }}
</button>
<button class="hero-btn secondary" @click="inviteBot">
{{ t('hero.inviteBot') }}
</button>
</div>
<div class="hero-stats">
<div class="stat-item">
<span class="stat-number">{{ stats.servers }}+</span>
<span class="stat-label">{{ t('hero.servers') }}</span>
</div>
<div class="stat-item">
<span class="stat-number">{{ stats.users }}+</span>
<span class="stat-label">{{ t('hero.users') }}</span>
</div>
<div class="stat-item">
<span class="stat-number">{{ stats.commands }}+</span>
<span class="stat-label">{{ t('hero.commands') }}</span>
</div>
</div>
</div>
<div class="hero-visual">
<div class="floating-card card-1">
<div class="card-icon">🤝</div>
<div class="card-text">{{ t('hero.feature1') }}</div>
</div>
<div class="floating-card card-2">
<div class="card-icon">🎫</div>
<div class="card-text">{{ t('hero.feature2') }}</div>
</div>
<div class="floating-card card-3">
<div class="card-icon"></div>
<div class="card-text">{{ t('hero.feature3') }}</div>
</div>
</div>
</div>
</section>
</template>
<script setup>
import { ref, onMounted, watch } from 'vue'
import { useI18n } from 'vue-i18n'
import { botService } from '@/services/bot'
const { t, locale } = useI18n()
const texts = {
es: 'Un bot con mucha personalidad',
en: 'A bot beyond comparison'
}
const displayText = ref('')
const showCursor = ref(true)
const currentIndex = ref(0)
const isDeleting = ref(false)
const isLoading = ref(true)
const stats = ref({
servers: '...',
users: '...',
commands: '...'
})
// Cargar estadísticas reales del bot
const loadStats = async () => {
try {
isLoading.value = true
const data = await botService.getStats()
stats.value = {
servers: botService.formatNumber(data.servers || 0),
users: botService.formatNumber(data.users || 0),
commands: botService.formatNumber(data.commands || 0)
}
} catch (error) {
console.error('Error loading stats:', error)
// Valores por defecto si falla
stats.value = {
servers: '0',
users: '0',
commands: '0'
}
} finally {
isLoading.value = false
}
}
const typewriterEffect = () => {
const currentText = texts[locale.value] || texts.es
const speed = isDeleting.value ? 50 : 100
if (!isDeleting.value) {
if (currentIndex.value < currentText.length) {
displayText.value = currentText.substring(0, currentIndex.value + 1)
currentIndex.value++
setTimeout(typewriterEffect, speed)
} else {
// Pause at the end
setTimeout(() => {
isDeleting.value = true
typewriterEffect()
}, 2000)
}
} else {
if (currentIndex.value > 0) {
displayText.value = currentText.substring(0, currentIndex.value - 1)
currentIndex.value--
setTimeout(typewriterEffect, speed)
} else {
isDeleting.value = false
setTimeout(typewriterEffect, 500)
}
}
}
// Watch for language changes
watch(locale, () => {
currentIndex.value = 0
displayText.value = ''
isDeleting.value = false
typewriterEffect()
})
onMounted(() => {
loadStats()
typewriterEffect()
// Cursor blink
setInterval(() => {
showCursor.value = !showCursor.value
}, 500)
// Actualizar estadísticas cada 5 minutos
setInterval(loadStats, 5 * 60 * 1000)
})
const scrollToFeatures = () => {
document.querySelector('#features')?.scrollIntoView({ behavior: 'smooth' })
}
const inviteBot = () => {
window.open('https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=8&scope=bot%20applications.commands', '_blank')
}
</script>
<style scoped>
.hero-section {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 120px 20px 80px;
position: relative;
}
.hero-content {
max-width: 1200px;
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}
.hero-text {
z-index: 2;
}
.hero-title {
font-size: 4rem;
font-weight: 800;
margin-bottom: 24px;
line-height: 1.2;
background: linear-gradient(135deg, #fff, var(--color-secondary, #ff5252));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
min-height: 120px;
}
.typewriter {
display: inline-block;
}
.cursor {
display: inline-block;
color: var(--color-primary, #ff1744);
opacity: 1;
transition: opacity 0.1s;
}
.cursor.blink {
opacity: 0;
}
.hero-subtitle {
font-size: 1.25rem;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 32px;
line-height: 1.6;
}
.hero-actions {
display: flex;
gap: 16px;
margin-bottom: 48px;
}
.hero-btn {
padding: 14px 32px;
border-radius: 30px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
border: none;
}
.hero-btn.primary {
background: var(--gradient-primary, linear-gradient(135deg, #ff1744, #d50000));
color: white;
box-shadow: 0 8px 30px var(--color-glow, rgba(255, 23, 68, 0.4));
}
.hero-btn.primary:hover {
transform: translateY(-3px);
box-shadow: 0 12px 40px var(--color-glow, rgba(255, 23, 68, 0.6));
}
.hero-btn.secondary {
background: rgba(255, 255, 255, 0.05);
color: white;
border: 2px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
}
.hero-btn.secondary:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-3px);
}
.hero-stats {
display: flex;
gap: 48px;
}
.stat-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.stat-number {
font-size: 2.5rem;
font-weight: 800;
background: var(--gradient-primary, linear-gradient(135deg, #ff1744, #ff5252));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.stat-label {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.6);
text-transform: uppercase;
letter-spacing: 1px;
}
.hero-visual {
position: relative;
height: 500px;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 40px;
}
.floating-card {
position: absolute;
background: rgba(10, 10, 10, 0.8);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 24px;
display: flex;
flex-direction: column;
align-items: end;
gap: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease, box-shadow 0.3s ease;
min-width: 160px;
}
.floating-card:hover {
transform: translateY(-10px) scale(1.05);
box-shadow: 0 12px 40px var(--color-glow, rgba(255, 23, 68, 0.4));
border-color: var(--color-primary, #ff1744);
}
.card-1 {
top: 60px;
right: 20px;
animation: float 6s ease-in-out infinite;
}
.card-2 {
top: 200px;
right: 160px;
animation: float 6s ease-in-out infinite 2s;
}
.card-3 {
bottom: 80px;
right: 60px;
animation: float 6s ease-in-out infinite 4s;
}
.card-icon {
font-size: 3rem;
filter: drop-shadow(0 0 20px var(--color-glow, rgba(255, 23, 68, 0.5)));
}
.card-text {
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.8);
text-align: center;
font-weight: 600;
}
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-20px);
}
}
@media (max-width: 968px) {
.hero-content {
grid-template-columns: 1fr;
gap: 40px;
}
.hero-title {
font-size: 2.5rem;
min-height: 80px;
}
.hero-visual {
height: 400px;
padding-right: 20px;
justify-content: center;
}
.floating-card {
padding: 20px;
min-width: 140px;
}
.card-1 {
top: 60px;
right: 120px;
}
.card-2 {
top: 180px;
right: 20px;
}
.card-3 {
bottom: 80px;
right: 140px;
}
.card-icon {
font-size: 2.5rem;
}
.card-text {
font-size: 0.85rem;
}
.hero-stats {
gap: 24px;
}
.stat-number {
font-size: 2rem;
}
}
@media (max-width: 640px) {
.hero-title {
font-size: 2rem;
}
.hero-actions {
flex-direction: column;
}
.hero-btn {
width: 100%;
}
.hero-visual {
height: 300px;
padding-right: 10px;
}
.floating-card {
padding: 16px;
min-width: 120px;
}
.card-1 {
top: 40px;
right: 80px;
}
.card-2 {
top: 140px;
right: 10px;
}
.card-3 {
bottom: 60px;
right: 100px;
}
.card-icon {
font-size: 2rem;
}
.card-text {
font-size: 0.8rem;
}
.hero-stats {
flex-direction: row;
flex-wrap: wrap;
gap: 16px;
}
.stat-item {
flex: 1;
min-width: 100px;
}
}
</style>

View File

@@ -0,0 +1,331 @@
<template>
<nav class="island-navbar">
<div class="navbar-content">
<!-- Logo Section -->
<div class="logo-section">
<div class="bot-avatar">
<img :src="botLogo" alt="Amayo Bot" />
</div>
<span class="bot-name">{{ botName }}</span>
</div>
<!-- Actions Section -->
<div class="actions-section">
<!-- Theme Selector Dropdown -->
<div class="theme-dropdown" ref="themeDropdown">
<button class="theme-toggle-btn" @click="toggleThemeMenu">
<div class="current-theme-preview" :style="{ background: getCurrentThemeGradient() }"></div>
<svg width="12" height="12" viewBox="0 0 12 12" fill="white">
<path d="M2 4l4 4 4-4" stroke="currentColor" stroke-width="2" fill="none" />
</svg>
</button>
<div v-show="showThemeMenu" class="theme-menu">
<button
v-for="theme in themes"
:key="theme.name"
:class="['theme-menu-item', { active: currentTheme === theme.name }]"
@click="changeTheme(theme.name)"
>
<div class="theme-preview" :style="{ background: theme.gradient }"></div>
<span>{{ t(`themes.${theme.name}`) }}</span>
<svg v-if="currentTheme === theme.name" width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M13 4L6 11L3 8" stroke="#00e676" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</div>
</div>
<!-- Language Selector -->
<button class="lang-btn" @click="toggleLanguage">
{{ currentLang === 'es' ? '🇪🇸' : '🇺🇸' }}
</button>
<!-- Navigation Buttons -->
<a href="#get-started" class="nav-btn primary">
{{ t('navbar.getStarted') }}
</a>
<a href="/dashboard" class="nav-btn secondary">
{{ t('navbar.dashboard') }}
</a>
</div>
</div>
</nav>
</template>
<script setup>
import { ref, computed, onMounted, onUnmounted } from 'vue'
import { useI18n } from 'vue-i18n'
const { t, locale } = useI18n()
const botLogo = ref('https://cdn.discordapp.com/avatars/1234567890/avatar.png') // Reemplaza con el avatar real del bot
const botName = ref('Amayo')
const currentTheme = ref('red')
const currentLang = computed(() => locale.value)
const showThemeMenu = ref(false)
const themeDropdown = ref(null)
const themes = [
{ name: 'red', gradient: 'linear-gradient(135deg, #ff1744, #d50000)' },
{ name: 'blue', gradient: 'linear-gradient(135deg, #2196f3, #1565c0)' },
{ name: 'green', gradient: 'linear-gradient(135deg, #00e676, #00c853)' },
{ name: 'purple', gradient: 'linear-gradient(135deg, #e040fb, #9c27b0)' },
{ name: 'orange', gradient: 'linear-gradient(135deg, #ff9100, #ff6d00)' },
]
const getCurrentThemeGradient = () => {
const theme = themes.find(t => t.name === currentTheme.value)
return theme ? theme.gradient : themes[0].gradient
}
const toggleThemeMenu = () => {
showThemeMenu.value = !showThemeMenu.value
}
const changeTheme = (themeName) => {
currentTheme.value = themeName
document.documentElement.setAttribute('data-theme', themeName)
localStorage.setItem('theme', themeName)
showThemeMenu.value = false
}
const toggleLanguage = () => {
locale.value = locale.value === 'es' ? 'en' : 'es'
localStorage.setItem('language', locale.value)
}
const handleClickOutside = (event) => {
if (themeDropdown.value && !themeDropdown.value.contains(event.target)) {
showThemeMenu.value = false
}
}
onMounted(() => {
document.addEventListener('click', handleClickOutside)
const savedTheme = localStorage.getItem('theme')
const savedLang = localStorage.getItem('language')
if (savedTheme) {
currentTheme.value = savedTheme
document.documentElement.setAttribute('data-theme', savedTheme)
}
if (savedLang) {
locale.value = savedLang
}
})
onUnmounted(() => {
document.removeEventListener('click', handleClickOutside)
})
</script>
<style scoped>
.island-navbar {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
width: 95%;
max-width: 1200px;
}
.navbar-content {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
background: rgba(10, 10, 10, 0.8);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.logo-section {
display: flex;
align-items: center;
gap: 12px;
}
.bot-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
border: 2px solid var(--color-primary, #ff1744);
box-shadow: 0 0 20px var(--color-glow, rgba(255, 23, 68, 0.3));
}
.bot-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bot-name {
font-size: 1.2rem;
font-weight: 700;
background: var(--gradient-primary, linear-gradient(135deg, #ff1744, #ff5252));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.actions-section {
display: flex;
align-items: center;
gap: 16px;
}
.theme-dropdown {
position: relative;
}
.theme-toggle-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
}
.theme-toggle-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
.current-theme-preview {
width: 24px;
height: 24px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.3);
}
.theme-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
background: rgba(10, 10, 10, 0.95);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 8px;
min-width: 200px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
z-index: 1000;
}
.theme-menu-item {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 10px 12px;
background: transparent;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
color: white;
font-size: 0.95rem;
}
.theme-menu-item:hover {
background: rgba(255, 255, 255, 0.1);
}
.theme-menu-item.active {
background: rgba(255, 255, 255, 0.05);
}
.theme-preview {
width: 28px;
height: 28px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.2);
flex-shrink: 0;
}
.theme-menu-item span {
flex: 1;
text-align: left;
}
.lang-btn {
font-size: 1.5rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.lang-btn:hover {
background: rgba(255, 255, 255, 0.1);
transform: scale(1.1);
}
.nav-btn {
padding: 10px 24px;
border-radius: 25px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
border: none;
cursor: pointer;
font-size: 0.95rem;
}
.nav-btn.primary {
background: var(--gradient-primary, linear-gradient(135deg, #ff1744, #d50000));
color: white;
box-shadow: 0 4px 15px var(--color-glow, rgba(255, 23, 68, 0.4));
}
.nav-btn.primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px var(--color-glow, rgba(255, 23, 68, 0.6));
}
.nav-btn.secondary {
background: rgba(255, 255, 255, 0.05);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-btn.secondary:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}
@media (max-width: 768px) {
.navbar-content {
padding: 10px 16px;
}
.bot-name {
display: none;
}
.theme-dropdown {
display: none;
}
.nav-btn {
padding: 8px 16px;
font-size: 0.85rem;
}
}
</style>

View File

@@ -0,0 +1,95 @@
<script setup>
import WelcomeItem from './WelcomeItem.vue'
import DocumentationIcon from './icons/IconDocumentation.vue'
import ToolingIcon from './icons/IconTooling.vue'
import EcosystemIcon from './icons/IconEcosystem.vue'
import CommunityIcon from './icons/IconCommunity.vue'
import SupportIcon from './icons/IconSupport.vue'
const openReadmeInEditor = () => fetch('/__open-in-editor?file=README.md')
</script>
<template>
<WelcomeItem>
<template #icon>
<DocumentationIcon />
</template>
<template #heading>Documentation</template>
Vues
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
provides you with all information you need to get started.
</WelcomeItem>
<WelcomeItem>
<template #icon>
<ToolingIcon />
</template>
<template #heading>Tooling</template>
This project is served and bundled with
<a href="https://vite.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
recommended IDE setup is
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a>
+
<a href="https://github.com/vuejs/language-tools" target="_blank" rel="noopener"
>Vue - Official</a
>. If you need to test your components and web pages, check out
<a href="https://vitest.dev/" target="_blank" rel="noopener">Vitest</a>
and
<a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a>
/
<a href="https://playwright.dev/" target="_blank" rel="noopener">Playwright</a>.
<br />
More instructions are available in
<a href="javascript:void(0)" @click="openReadmeInEditor"><code>README.md</code></a
>.
</WelcomeItem>
<WelcomeItem>
<template #icon>
<EcosystemIcon />
</template>
<template #heading>Ecosystem</template>
Get official tools and libraries for your project:
<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://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If
you need more resources, we suggest paying
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
a visit.
</WelcomeItem>
<WelcomeItem>
<template #icon>
<CommunityIcon />
</template>
<template #heading>Community</template>
Got stuck? Ask your question on
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>
(our official Discord server), or
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"
>StackOverflow</a
>. You should also follow the official
<a href="https://bsky.app/profile/vuejs.org" target="_blank" rel="noopener">@vuejs.org</a>
Bluesky account or the
<a href="https://x.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
X account for latest news in the Vue world.
</WelcomeItem>
<WelcomeItem>
<template #icon>
<SupportIcon />
</template>
<template #heading>Support Vue</template>
As an independent project, Vue relies on community backing for its sustainability. You can help
us by
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
</WelcomeItem>
</template>

View File

@@ -0,0 +1,87 @@
<template>
<div class="item">
<i>
<slot name="icon"></slot>
</i>
<div class="details">
<h3>
<slot name="heading"></slot>
</h3>
<slot></slot>
</div>
</div>
</template>
<style scoped>
.item {
margin-top: 2rem;
display: flex;
position: relative;
}
.details {
flex: 1;
margin-left: 1rem;
}
i {
display: flex;
place-items: center;
place-content: center;
width: 32px;
height: 32px;
color: var(--color-text);
}
h3 {
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 0.4rem;
color: var(--color-heading);
}
@media (min-width: 1024px) {
.item {
margin-top: 0;
padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
}
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>

View File

@@ -0,0 +1,7 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
<path
d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
/>
</svg>
</template>

View File

@@ -0,0 +1,7 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
<path
d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
/>
</svg>
</template>

View File

@@ -0,0 +1,7 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
<path
d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
/>
</svg>
</template>

View File

@@ -0,0 +1,7 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
<path
d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
/>
</svg>
</template>

View File

@@ -0,0 +1,19 @@
<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
role="img"
class="iconify iconify--mdi"
width="24"
height="24"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
>
<path
d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
fill="currentColor"
></path>
</svg>
</template>