Skip to content

Commit

Permalink
test netlify:
Browse files Browse the repository at this point in the history
  • Loading branch information
endrose committed Feb 24, 2021
1 parent ae03631 commit 6c901b8
Show file tree
Hide file tree
Showing 9 changed files with 12,568 additions and 78 deletions.
12,476 changes: 12,476 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
"vue": "^3.0.0"
},
"devDependencies": {
"@tailwindcss/postcss7-compat": "^2.0.3",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"autoprefixer": "^9.8.6",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0-0"
"eslint-plugin-vue": "^7.0.0-0",
"postcss": "^7.0.35",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.3"
},
"eslintConfig": {
"root": true,
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
84 changes: 66 additions & 18 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,74 @@
<template>
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
<div id="app" class="antialiased bg-gray-800">
<header
class="border-t-4 border-blue-300 bg-white z-10 absolute w-full shadow-md"
>
<nav
class="container mx-auto px-8 inset-0 flex flex-wrap justify-between items-center py-4"
>
<div class="mb-0 lg:mb-2 xl:mb-0">
<a href="#" class="flex font-bold text-xl items-end">
<img src="./assets/vue.png" alt="brand" class="w-10" />
<span>ue</span>
</a>
</div>
<div class="block lg:hidden">
<button
@click="toggle"
type="button"
class="flex items-center px-3 py-2 border focus:outline-none rounded border-gray-500 hover:text-gray-600 hover:border-gray-600"
>
<svg
class="current-color h-3 w-3"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"
fill="gray"
/>
</svg>
</button>
</div>
<ul
:class="isOpen ? 'block' : 'hidden'"
class="tracking-wide uppercase font-bold w-full block flex-grow lg:flex lg:flex-initial lg:w-auto items-center mt-8 lg:mt-0 transition duration-200 "
>
<li class="px-4 mb-6 text-center hover:text-gray-400 lg:mb-0">
<a href="#">home</a>
</li>
<li class="px-4 mb-6 text-center hover:text-gray-400 lg:mb-0">
<a href="#">about</a>
</li>
<li class="px-4 mb-6 text-center hover:text-gray-400 lg:mb-0">
<a href="#">services</a>
</li>
<li class="px-4 mb-6 text-center hover:text-gray-400 lg:mb-0">
<a href="#">skills</a>
</li>
</ul>
</nav>
</header>
<div class="bg-gray-100 min-h-screen pt-40 text-lg"></div>
</div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import { ref } from "vue";
export default {
name: 'App',
components: {
HelloWorld
name: "App",
components: {},
setup() {
const isOpen = ref(false);
function toggle() {
isOpen.value = !isOpen.value;
console.log("ok");
}
return {
toggle,
isOpen
};
}
}
};
</script>

<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Binary file added src/assets/vue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 0 additions & 58 deletions src/components/HelloWorld.vue

This file was deleted.

3 changes: 3 additions & 0 deletions src/css/tailwindcss.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createApp } from 'vue'
import './css/tailwindcss.css'
import App from './App.vue'

createApp(App).mount('#app')
11 changes: 11 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}

0 comments on commit 6c901b8

Please sign in to comment.