This repository has been archived by the owner on Mar 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add introduction content "What is Nuxt.js"?
- Loading branch information
Showing
13 changed files
with
223 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:root { | ||
--frame-width: 1.2vmin; | ||
--vertical-space: 1em; | ||
|
||
--color-text: 0, 0, 0; | ||
--color-light: 66, 184, 131; | ||
--color-dark: 53, 73, 94; | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template> | ||
<figure class="figure"> | ||
<img | ||
class="image" | ||
:alt="alt" | ||
:src="src" | ||
> | ||
|
||
<figcaption | ||
v-if="$slots.default" | ||
class="caption" | ||
> | ||
<slot /> | ||
</figcaption> | ||
</figure> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
src: { | ||
type: String, | ||
required: true | ||
}, | ||
alt: { | ||
type: String, | ||
required: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.figure { | ||
display: flex; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
margin: 0 0 var(--vertical-space); | ||
} | ||
.image { | ||
flex-grow: 1; | ||
object-fit: contain; | ||
margin-bottom: calc(var(--vertical-space) / 2); | ||
} | ||
.caption { | ||
font-size: 0.7em; | ||
font-style: italic; | ||
text-align: center; | ||
color: rgb(var(--color-dark)); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<template> | ||
<c-main> | ||
<c-title slot="header"> | ||
{{ title }} | ||
</c-title> | ||
|
||
<c-list> | ||
<c-list-item> | ||
“Meta framework” for Vue.js | ||
</c-list-item> | ||
|
||
<c-list-item> | ||
Abstraction for vue-server-renderer | ||
</c-list-item> | ||
|
||
<c-list-item> | ||
Built-in packages: | ||
|
||
<c-list> | ||
<c-list-item> | ||
<a | ||
href="https://router.vuejs.org" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
Vue Router | ||
</a> | ||
</c-list-item> | ||
|
||
<c-list-item> | ||
<a | ||
href="https://vuex.vuejs.org" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
Vuex | ||
</a> | ||
</c-list-item> | ||
|
||
<c-list-item> | ||
<a | ||
href="https://github.com/declandewet/vue-meta" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
vue-meta | ||
</a> | ||
</c-list-item> | ||
</c-list> | ||
</c-list-item> | ||
|
||
<c-list-item> | ||
Bonus feature: Static Site Generator | ||
</c-list-item> | ||
</c-list> | ||
</c-main> | ||
</template> | ||
|
||
<script> | ||
import CList from '@/components/c-list' | ||
import CListItem from '@/components/c-list-item' | ||
import CMain from '@/components/c-main' | ||
import CTitle from '@/components/c-title' | ||
import EventBus from '@/event-bus' | ||
export default { | ||
head () { | ||
return { | ||
title: this.title | ||
} | ||
}, | ||
components: { | ||
CList, | ||
CListItem, | ||
CMain, | ||
CTitle | ||
}, | ||
data () { | ||
return { | ||
title: 'What is Nuxt.js?' | ||
} | ||
}, | ||
created () { | ||
EventBus.$on('previousSlide', () => this.$router.push('/toc')) | ||
EventBus.$on('nextSlide', () => this.$router.push('/what-is-nuxt/schema')) | ||
}, | ||
destroyed () { | ||
EventBus.$off('previousSlide') | ||
EventBus.$off('nextSlide') | ||
} | ||
} | ||
</script> |
Oops, something went wrong.