add structure project
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<!-- pages/index.vue -->
|
||||
<template>
|
||||
<div class="container">
|
||||
<h1>Добро пожаловать в мое приложение!</h1>
|
||||
<div class="links">
|
||||
<NuxtLink to="/register" class="btn">Регистрация</NuxtLink>
|
||||
<NuxtLink to="/login" class="btn">Вход</NuxtLink>
|
||||
<NuxtLink to="/profile" class="btn">Профиль</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// Главная страница
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.links {
|
||||
margin-top: 2rem;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: #3b82f6;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: 0.5rem;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background: #2563eb;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user