diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-29 10:37:37 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-29 10:37:37 +0200 |
commit | cbc2a0152e006aa9d2b4e3461b88cf4822acf003 (patch) | |
tree | b81617200d32f923c8a0632dd19974a86c5063fd | |
parent | d4c4f780577efe28819667c8564126917360cafb (diff) | |
download | puszcza-cbc2a0152e006aa9d2b4e3461b88cf4822acf003.tar.gz puszcza-cbc2a0152e006aa9d2b4e3461b88cf4822acf003.zip |
Add background to joinus
-rw-r--r-- | src/App.vue | 5 | ||||
-rw-r--r-- | src/components/JoinUs.vue | 45 |
2 files changed, 42 insertions, 8 deletions
diff --git a/src/App.vue b/src/App.vue index 4742bfe..6c8c5aa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -63,5 +63,10 @@ body { #content { flex: 1; + width: 100%; + + display: flex; + flex-direction: column; + align-items: center; } </style> diff --git a/src/components/JoinUs.vue b/src/components/JoinUs.vue index 55d8171..ab2d853 100644 --- a/src/components/JoinUs.vue +++ b/src/components/JoinUs.vue @@ -1,28 +1,46 @@ <template> - <div class="joinus"> - <div class="title"> - <h1 class="text">Rozpocznij swoją harcerską przygodę!</h1> + <section class="joinus"> + <div class="heading"> + <div class="title"> + <h1 class="text">Rozpocznij swoją harcerską przygodę!</h1> + </div> + <div class="button"> + <router-link to="/join-us">Dołącz do nas!</router-link> + </div> </div> - <div class="button"> - <router-link to="/join-us">Dołącz do nas!</router-link> - </div> - </div> + </section> </template> <style scoped> .joinus { + width: 100%; + + padding: 80px 20%; + + background: #dddddd; +} + +.heading { + max-width: 750px; + padding: 100px 0; + + display: flex; + flex-direction: column; } .title { background-color: #340c0e; color: #ffffff; - max-width: 330px; + max-width: 260px; + height: 85px; + margin-bottom: 20px; text-align: left; } .title .text { + margin: 0; padding: 10px; } @@ -36,4 +54,15 @@ color: #ffffff; text-decoration: none; } + +@media (max-width: 500px) { + .heading { + margin: 0; + align-items: center; + } + + .joinus { + padding: 80px 20px; + } +} </style> \ No newline at end of file |