Skip to content

UI design and layout #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 61 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@
"@tailwindcss/postcss7-compat": "^2.0.2",
"autoprefixer": "^9",
"core-js": "^3.6.5",
"feather-icons": "^4.28.0",
"postcss": "^7",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-import": "^14.0.2",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.2",
"vue": "^3.0.0"
"vue": "^3.0.0",
"vue-router": "^4.0.0-0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"babel-eslint": "^10.1.0",
Expand Down
87 changes: 70 additions & 17 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,79 @@
<template>
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
<!-- Header Start -->
<nav id="nav" class="container mx-auto bg-white">
<div class="md:flex items-center justify-between px-4 py-5">
<div class="flex justify-between items-center">
<div class="text-2xl font-bold text-gray-800 md:text-3xl">
<router-link to="/">Logo</router-link>
</div>
<div class="md:hidden">
<button type="button" class="block text-gray-800 hover:text-gray-700 focus:text-gray-700 focus:outline-none">
<svg class="h-6 w-6 fill-current" viewBox="0 0 24 24">
<path class="hidden" d="M16.24 14.83a1 1 0 0 1-1.41 1.41L12 13.41l-2.83 2.83a1 1 0 0 1-1.41-1.41L10.59 12 7.76 9.17a1 1 0 0 1 1.41-1.41L12 10.59l2.83-2.83a1 1 0 0 1 1.41 1.41L13.41 12l2.83 2.83z"/>
<path d="M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"/>
</svg>
</button>
</div>
</div>
<div class="flex justify-between items-center flex-col md:flex-row">
<router-link to="/projects" class="text-lg font-medium text-gray-400 uppercase md:mx-6 mb-2 sm:py-2">Projects</router-link>
<router-link to="/about" class="text-lg font-medium text-gray-400 uppercase md:mx-2 mb-2 sm:py-2">About Me</router-link>
<div class="sm:-mt-3 sm:ml-10 bg-gray-50 p-2 rounded-lg shadow-sm cursor-pointer">
<a href="#"><i data-feather="moon" class="text-gray-600 hover:text-gray-400"></i></a>
</div>
</div>

</div>
</nav>
<!-- Header End -->

<!-- Render Active Component Contents Start -->
<router-view/>
<!-- Render Active Component Contents End -->

<!-- Footer Start -->
<div class="container mx-auto bg-white px-4">
<div class="md:flex items-center justify-between py-5">
<div class="flex justify-between items-center">
<div class="text-lg text-gray-500">
&copy; Copyright 2021. <a href="https://stoman.me" target="__blank" class="text-gray-600 font-medium">Stoman</a>
</div>
</div>
<div>
<ul class="flex gap-4">
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="twitter"></i></li>
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="instagram"></i></li>
<li class="text-gray-400 hover:text-green-500 cursor-pointer"><i data-feather="github"></i></li>
</ul>
</div>
</div>
</div>
<!-- Footer End -->

</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
name: 'App',
components: {
HelloWorld
import feather from 'feather-icons'
export default {
mounted() {
feather.replace();
},
updated() {
feather.replace();
}
}
}
</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;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}

#nav a.router-link-exact-active {
@apply text-gray-700;
}
</style>
File renamed without changes.
Binary file removed src/assets/logo.png
Binary file not shown.
27 changes: 27 additions & 0 deletions src/components/About.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<div class="container mx-auto px-4">
<p>About Page</p>
<i data-feather="home"></i>
</div>
</template>

<script>
import feather from 'feather-icons'

export default {
name: 'About',
props: {
msg: String
},
mounted() {
feather.replace();
},
updated() {
feather.replace();
}
}
</script>

<style scoped>

</style>
58 changes: 0 additions & 58 deletions src/components/HelloWorld.vue

This file was deleted.

27 changes: 27 additions & 0 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<div class="container mx-auto px-4">
<p>Home Page</p>
<i data-feather="home"></i>
</div>
</template>

<script>
import feather from 'feather-icons'

export default {
name: 'Home',
props: {
msg: String
},
mounted() {
feather.replace();
},
updated() {
feather.replace();
}
}
</script>

<style scoped>

</style>
27 changes: 27 additions & 0 deletions src/components/Projects.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<div class="container mx-auto px-4">
<p>Projects Page</p>
<i data-feather="home"></i>
</div>
</template>

<script>
import feather from 'feather-icons'

export default {
name: 'Projects',
props: {
msg: String
},
mounted() {
feather.replace();
},
updated() {
feather.replace();
}
}
</script>

<style scoped>

</style>
3 changes: 0 additions & 3 deletions src/index.css

This file was deleted.

Loading