Update style
This commit is contained in:
		| @@ -1,14 +1,12 @@ | ||||
| <template> | ||||
|   <div id="app"> | ||||
|     <site-header /> | ||||
|     <SiteHeader /> | ||||
|     <router-view/> | ||||
|   </div> | ||||
| </template> | ||||
|  | ||||
| <style lang="scss"> | ||||
| #app { | ||||
|   /* font-family: Avenir, Helvetica, Arial, sans-serif; */ | ||||
|   display: flex; | ||||
|   font-family: var(--font-family); | ||||
|   -webkit-font-smoothing: antialiased; | ||||
|   -moz-osx-font-smoothing: grayscale; | ||||
| @@ -17,7 +15,7 @@ | ||||
| </style> | ||||
|  | ||||
| <script> | ||||
| import SiteHeader from './components/SiteHeader' | ||||
| import SiteHeader from '@/components/SiteHeader' | ||||
|  | ||||
| export default { | ||||
|   name: 'App', | ||||
|   | ||||
							
								
								
									
										78
									
								
								src/components/Navigation.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								src/components/Navigation.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,78 @@ | ||||
| <template> | ||||
|   <div class="container"> | ||||
|     <router-link to="/"> | ||||
|       <div class="logo">Kamil<span class="logo-element">Craft</span></div> | ||||
|     </router-link> | ||||
|     <nav class="nav"> | ||||
|       <ul class="site-menu"> | ||||
|         <li class="menu-element"> | ||||
|           <router-link to="/">Start</router-link> | ||||
|         </li> | ||||
|         <li class="menu-element"> | ||||
|           <router-link to="/projects">Projekty</router-link> | ||||
|         </li> | ||||
|         <li class="menu-element"> | ||||
|           <router-link to="/about">O mnie</router-link> | ||||
|         </li> | ||||
|         <li class="menu-element"> | ||||
|           <router-link to="/contact">Kontakt</router-link> | ||||
|         </li> | ||||
|       </ul> | ||||
|     </nav> | ||||
|   </div> | ||||
| </template> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| .container { | ||||
|   display: flex; | ||||
|   align-items: center; | ||||
|   justify-content: flex-start; | ||||
|   padding: 0; | ||||
|  | ||||
|   div.logo { | ||||
|     padding: 14px 20px 14px 40px; | ||||
|     font-family: 'Thasadith', sans-serif; | ||||
|     font-size: 2.5em; | ||||
|     color: #5C5C5C; | ||||
|     background-color: white; | ||||
|  | ||||
|     .logo-element { | ||||
|       color: #A2CF00; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| .nav { | ||||
|   margin-left: 20px; | ||||
|   .site-menu { | ||||
|     display: flex; | ||||
|     list-style: none; | ||||
|  | ||||
|     .menu-element { | ||||
|       margin-right: 30px; | ||||
|  | ||||
|       a { | ||||
|         color: #EBEBEB; | ||||
|  | ||||
|         &.router-link-exact-active, &:hover { | ||||
|           color: #A2CF00; | ||||
|         } | ||||
|       } | ||||
|  | ||||
|       &:last-child { | ||||
|         margin-right: unset; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
| </style> | ||||
|  | ||||
| <script> | ||||
| export default { | ||||
|   name: 'SiteHeader', | ||||
|   data () { | ||||
|     return { | ||||
|       publicPath: process.env.BASE_URL | ||||
|     } | ||||
|   } | ||||
| } | ||||
| </script> | ||||
| @@ -1,72 +1,22 @@ | ||||
| <template> | ||||
|   <header id="header"> | ||||
|     <router-link to="/"> | ||||
|       <!-- <img id="nav-logo" alt="KamilCraft.com logo" :src="`${publicPath}assets/logo.png`"> --> | ||||
|       <h1 id="nav-text">KamilCraft</h1> | ||||
|     </router-link> | ||||
|     <nav id="navigation"> | ||||
|       <ul id="menu"> | ||||
|         <li class="menu-element"><router-link to="/">Strona główna</router-link></li> | ||||
|         <li class="menu-element"><router-link to="/projects">Projekty</router-link></li> | ||||
|         <li class="menu-element"><router-link to="/about">O mnie</router-link></li> | ||||
|         <li class="menu-element"><router-link to="/contact">Kontakt</router-link></li> | ||||
|       </ul> | ||||
|     </nav> | ||||
|   <header class="page-header"> | ||||
|     <navigation/> | ||||
|   </header> | ||||
| </template> | ||||
|  | ||||
| <style lang="scss"> | ||||
| #header { | ||||
|   width: 250px; | ||||
|   height: 100vh; | ||||
|   background-color: #1893D7!important; | ||||
|   background-image: linear-gradient(to top,#005C93 25%,#2C395C); | ||||
|   #nav-text { | ||||
|     color: white; | ||||
|   } | ||||
|   #nav-logo { | ||||
|     display: block; | ||||
|     width: 250px; | ||||
|     height: 67px; | ||||
|     padding: 8px 0; | ||||
|     background-color: #fafafa !important; | ||||
|   } | ||||
|   #navigation { | ||||
|     #menu { | ||||
|       list-style: none; | ||||
|       margin: 0; | ||||
|       .menu-element { | ||||
|         display: block; | ||||
|         padding: 0 10px; | ||||
|  | ||||
|         &:hover { | ||||
|           background: rgba(0, 0 , 0, .1); | ||||
|         } | ||||
|       } | ||||
|  | ||||
|       a { | ||||
|         display: block; | ||||
|         line-height: 50px; | ||||
|         font-weight: bold; | ||||
|         color: #dcdcdc; | ||||
|  | ||||
|         &.router-link-exact-active { | ||||
|           color: white; | ||||
|         } | ||||
|       } | ||||
|  | ||||
|     } | ||||
|   } | ||||
| } | ||||
| </style> | ||||
|  | ||||
| <script> | ||||
| import Navigation from '@/components/Navigation' | ||||
|  | ||||
| export default { | ||||
|   name: 'SiteHeader', | ||||
|   data () { | ||||
|     return { | ||||
|       publicPath: process.env.BASE_URL | ||||
|     } | ||||
|   components: { | ||||
|     navigation: Navigation | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <style lang="scss"> | ||||
| .page-header { | ||||
|   background: linear-gradient(237.74deg, #1199A5 0%, #436DA7 83%); | ||||
| } | ||||
| </style> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user