Update style & structure
This commit is contained in:
		| @@ -6,8 +6,8 @@ | |||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <style scoped lang="scss"> | <style scoped lang="scss"> | ||||||
|   h3 { |   h1 { | ||||||
|     margin: 40px 0 0; |     margin: 30px 0 20px; | ||||||
|   } |   } | ||||||
|   ul { |   ul { | ||||||
|     list-style-type: none; |     list-style-type: none; | ||||||
|   | |||||||
| @@ -12,6 +12,8 @@ | |||||||
| <style lang="scss"> | <style lang="scss"> | ||||||
| #nav { | #nav { | ||||||
|   display: flex; |   display: flex; | ||||||
|  |   max-width: 1000px; | ||||||
|  |   margin: 0 auto; | ||||||
|   justify-content: space-between; |   justify-content: space-between; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|   padding: 5px 30px; |   padding: 5px 30px; | ||||||
| @@ -24,23 +26,35 @@ | |||||||
|   #menu { |   #menu { | ||||||
|     display: flex; |     display: flex; | ||||||
|     list-style: none; |     list-style: none; | ||||||
|  |  | ||||||
|     .menu-element { |     .menu-element { | ||||||
|       display: block; |       display: block; | ||||||
|       padding: 0 10px; |       padding: 0 10px; | ||||||
|  |  | ||||||
|       &:hover { |       &:hover { | ||||||
|         background: rgba(0, 0 , 0, .1); |         background: rgba(0, 0 , 0, .1); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |  | ||||||
|     a { |     a { | ||||||
|       font-weight: bold; |       font-weight: bold; | ||||||
|       color: #2c3e50; |       color: #2c3e50; | ||||||
|     line-height: 50px; |  | ||||||
|  |  | ||||||
|       &.router-link-exact-active { |       &.router-link-exact-active { | ||||||
|         color: #42b983; |         color: #42b983; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | @media (max-width: 600px) { | ||||||
|  |   #nav { | ||||||
|  |     justify-content: center; | ||||||
|  |  | ||||||
|  |     #menu { | ||||||
|  |       display: none; | ||||||
|  |     } | ||||||
|  |   } | ||||||
| } | } | ||||||
| </style> | </style> | ||||||
| <script> | <script> | ||||||
|   | |||||||
| @@ -3,11 +3,11 @@ | |||||||
|     <h1>O mnie:</h1> |     <h1>O mnie:</h1> | ||||||
|     <div id="grid"> |     <div id="grid"> | ||||||
|       <div id="grid-text"> |       <div id="grid-text"> | ||||||
|         <p>Siemandero tutaj Kamil Niemczycki</p> |         <p>Nazywam się <strong>Kamil Niemczycki</strong>, jestem studentem kierunku <strong>Informatyka</strong> o specjalności Programowanie Aplikacji Mobilnych i Internetowych.</p> | ||||||
|         <p>Lubię programować itp.</p> |         <p>Swoją przygodę w internecie rozpocząłem od nagrywania poradników, które umieszczałem na moim starym kanale youtube Moje Poradniki (wcześniej Niemczycki12). Z czasem zacząłem odczuwać potrzebę wypowiedzenia się, co spowodowało, że utworzyłem drugi kanał NiKCamii (wcześniej KamilNiemczycki), który był miejscem gdzie dodawałem Vlogi.</p> | ||||||
|       </div> |       </div> | ||||||
|       <div id="grid-photo"> |       <div id="grid-photo"> | ||||||
|         <figure> |         <figure id="about-photo"> | ||||||
|           <img :src="`${publicPath}assets/me.png`" /> |           <img :src="`${publicPath}assets/me.png`" /> | ||||||
|         </figure> |         </figure> | ||||||
|       </div> |       </div> | ||||||
| @@ -15,18 +15,29 @@ | |||||||
|   </section> |   </section> | ||||||
| </template> | </template> | ||||||
| <style lang="scss"> | <style lang="scss"> | ||||||
|  | h1 { | ||||||
|  |   font-size: 1.6em; | ||||||
|  |   margin: 30px 0 20px; | ||||||
|  | } | ||||||
| #about { | #about { | ||||||
|   max-width: 1000px; |   max-width: 1000px; | ||||||
|   margin: 0 auto; |   margin: 0 auto; | ||||||
| } | } | ||||||
| #grid { | #grid { | ||||||
|   display: grid; |   display: grid; | ||||||
|   grid-template-columns: 1fr 1fr 1fr; |   grid-template-columns: 1fr 1fr .8fr; | ||||||
|   grid-template-areas: |   grid-template-areas: | ||||||
|     'text text photo'; |     'text text photo'; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|   #grid-text { |   #grid-text { | ||||||
|     grid-area: text; |     grid-area: text; | ||||||
|  |     text-align: left; | ||||||
|  |  | ||||||
|  |     p { | ||||||
|  |       font-size: 1.1em; | ||||||
|  |       line-height: 1.4em; | ||||||
|  |       padding-bottom: 10px; | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|   #grid-photo { |   #grid-photo { | ||||||
|     grid-area: photo; |     grid-area: photo; | ||||||
| @@ -39,6 +50,15 @@ | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @media (max-width: 900px) { | ||||||
|  |   #grid { | ||||||
|  |     grid-template-columns: 1fr 1fr; | ||||||
|  |     grid-template-areas: | ||||||
|  |     'text text' | ||||||
|  |     'photo photo'; | ||||||
|  |   } | ||||||
|  | } | ||||||
| </style> | </style> | ||||||
| <script> | <script> | ||||||
| export default { | export default { | ||||||
|   | |||||||
| @@ -1,18 +1,15 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="home"> |   <div class="home"> | ||||||
|     <HelloWorld/> |  | ||||||
|     <About/> |     <About/> | ||||||
|   </div> |   </div> | ||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script> | <script> | ||||||
| import HelloWorld from '@/components/HomePageElement.vue' |  | ||||||
| import About from '@/components/sections/About.vue' | import About from '@/components/sections/About.vue' | ||||||
|  |  | ||||||
| export default { | export default { | ||||||
|   name: 'Home', |   name: 'Home', | ||||||
|   components: { |   components: { | ||||||
|     HelloWorld, |  | ||||||
|     About |     About | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user