This file contains hidden or 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
// Create Random Color | |
function colorize() { | |
return color[Math.round((Math.random() * 10))] || '#ffffff'; | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>SoundWave</title> | |
<style> | |
canvas { | |
background-color: #101010; | |
width: 600px; | |
height: 300px; |
This file contains hidden or 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
/* On some file */ | |
.title { | |
font-size: 20px; | |
color: blue; | |
} | |
.description { | |
font-size: 14px; | |
} |
This file contains hidden or 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
<template> | |
<div> | |
<h1>Hello <span>World</span>!</h1> | |
<p>Nuxt make it so simple dude!</p> | |
</div> | |
</template> | |
<style lang="scss" scoped> | |
h1 { | |
color: red; |
This file contains hidden or 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
assets/ | |
components/ | |
layouts/ | |
\- default.vue | |
|- README.md | |
middleware/ | |
pages/ | |
\- index.vue | |
|- README.md | |
plugins/ |
This file contains hidden or 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
<template> | |
<div> | |
<h2>Hello Dude!</h2> | |
<p>Nuxt it's so cool..</p> | |
</div> | |
</template> |
This file contains hidden or 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
<style> | |
html, | |
body { | |
padding: 0; | |
margin: 0; | |
} | |
body { | |
width: 100%; | |
height: 100vh; | |
display: flex; |
This file contains hidden or 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
<template> | |
<div> | |
<h2>Hello Dude!</h2> | |
<p>{{ message }}</p> | |
<input type="text" v-model="message"> | |
<button @click="showAlert">Show Message</button> | |
</div> | |
</template> | |
<script> |
This file contains hidden or 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
<template> | |
<div> | |
<h4>Ini header</h4> | |
<nuxt/> | |
<h4>Ini side bar</h4> | |
<h4>Ini footer</h4> | |
</div> | |
</template> |
This file contains hidden or 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
<template> | |
<div> | |
Ini isi dari halaman blog | |
</div> | |
</template> | |
<script> | |
export default { | |
layout: 'blog' | |
} |