feat: remodule homepage
This commit is contained in:
@@ -1,36 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="welcome-world">
|
<div class="welcome-world">
|
||||||
<div class="columns is-vcentered">
|
<h1 class="title is-1">Lite Note</h1>
|
||||||
<div class="column get-started">
|
|
||||||
<h3 class="title is-3">Lite Note</h3>
|
|
||||||
<div class="buttons is-centered">
|
|
||||||
<router-link
|
|
||||||
:to="{
|
|
||||||
name: 'FluxNoteView',
|
|
||||||
params: { user: 'lite-note', repo: 'getting-started' }
|
|
||||||
}"
|
|
||||||
class="button is-primary"
|
|
||||||
>Get started</router-link
|
|
||||||
>
|
|
||||||
<router-link class="button" :to="{ name: 'About' }"
|
|
||||||
>about</router-link
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<sign-in-github class="github-login" />
|
|
||||||
</div>
|
|
||||||
<div class="column">
|
|
||||||
<p>
|
|
||||||
<router-link v-if="isLogged" :to="{ name: 'RepoList' }"
|
|
||||||
>Manage your repos</router-link
|
|
||||||
>
|
|
||||||
</p>
|
|
||||||
<section v-if="savedFavoriteRepos.length">
|
<section v-if="savedFavoriteRepos.length">
|
||||||
<ul>
|
<h2 class="subtitle is-2">Favorite repos</h2>
|
||||||
<li
|
<router-link
|
||||||
v-for="favoriteRepo in savedFavoriteRepos"
|
v-for="favoriteRepo in savedFavoriteRepos"
|
||||||
:key="favoriteRepo._id"
|
:key="favoriteRepo._id"
|
||||||
>
|
|
||||||
<router-link
|
|
||||||
:to="{
|
:to="{
|
||||||
name: 'FluxNoteView',
|
name: 'FluxNoteView',
|
||||||
params: {
|
params: {
|
||||||
@@ -38,12 +14,28 @@
|
|||||||
repo: favoriteRepo.name
|
repo: favoriteRepo.name
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
|
class="button"
|
||||||
>
|
>
|
||||||
{{ favoriteRepo.name }}
|
{{ favoriteRepo.name }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<last-visited />
|
||||||
|
|
||||||
|
<div class="get-started">
|
||||||
|
<div class="buttons is-centered">
|
||||||
|
<sign-in-github />
|
||||||
|
<router-link
|
||||||
|
:to="{
|
||||||
|
name: 'FluxNoteView',
|
||||||
|
params: { user: 'lite-note', repo: 'getting-started' }
|
||||||
|
}"
|
||||||
|
class="button"
|
||||||
|
>Get started</router-link
|
||||||
|
>
|
||||||
|
<router-link v-if="isLogged" :to="{ name: 'RepoList' }" class="button"
|
||||||
|
>Manage your repos</router-link
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -85,8 +77,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<last-visited />
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
Made with <img src="/assets/love.svg" alt="love" /> by
|
Made with <img src="/assets/love.svg" alt="love" /> by
|
||||||
@@ -97,6 +87,7 @@
|
|||||||
>Julien</a
|
>Julien</a
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
|
<router-link class="button" :to="{ name: 'About' }">about</router-link>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -136,17 +127,16 @@ export default defineComponent({
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3,
|
.title {
|
||||||
h4 {
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.github-login {
|
|
||||||
margin-top: 1rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user