Skip to content

Add Home Initial Layout #3

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 3 commits into from
Jul 3, 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
69 changes: 15 additions & 54 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,66 +1,31 @@
<template>
<!-- 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 -->
<Header></Header>

<!-- 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 -->
<Footer></Footer>

</template>

<script>
import feather from 'feather-icons'
import Header from './components/shared/Header';
import Footer from './components/shared/Footer';

export default {
mounted() {
feather.replace();
},
updated() {
feather.replace();
}
components: {
Header,
Footer
},
mounted() {
feather.replace();
},
updated() {
feather.replace();
}
}
</script>

Expand All @@ -72,8 +37,4 @@
text-align: center;
color: #2c3e50;
}

#nav a.router-link-exact-active {
@apply text-gray-700;
}
</style>
Loading