From a8dd169087b64f9d76b47eb4f3c3a6f3e3a706d2 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 10 Nov 2022 13:20:04 +0600 Subject: [PATCH] added header --- assets/css/_mixins.scss | 14 ++++++ assets/svg/howdy.svg | 73 ++++++++++++++---------------- components/layout/LayoutHeader.vue | 43 ++++++++++++++++++ layouts/content.vue | 10 +--- layouts/default.vue | 2 + layouts/landing.vue | 29 ++++++++++++ pages/bio.vue | 5 +- pages/index.vue | 4 +- 8 files changed, 130 insertions(+), 50 deletions(-) create mode 100644 components/layout/LayoutHeader.vue create mode 100644 layouts/landing.vue diff --git a/assets/css/_mixins.scss b/assets/css/_mixins.scss index a22ce3a..11a6c8e 100644 --- a/assets/css/_mixins.scss +++ b/assets/css/_mixins.scss @@ -31,3 +31,17 @@ @content; } } + +@mixin container { + max-width: 1280px; + margin: auto; + padding: 0 40px; + + @include desktop { + padding: 0 40px; + } + + @include tablet { + padding: 0 20px; + } +} diff --git a/assets/svg/howdy.svg b/assets/svg/howdy.svg index bb2caaf..3c5215e 100644 --- a/assets/svg/howdy.svg +++ b/assets/svg/howdy.svg @@ -25,15 +25,15 @@ inkscape:deskcolor="#505050" inkscape:document-units="px" showgrid="false" - inkscape:zoom="2.7666799" - inkscape:cx="225.54109" - inkscape:cy="121.08376" + inkscape:zoom="1.9557888" + inkscape:cx="148.78907" + inkscape:cy="221.13839" inkscape:window-width="1440" - inkscape:window-height="900" + inkscape:window-height="847" inkscape:window-x="0" - inkscape:window-y="0" + inkscape:window-y="25" inkscape:window-maximized="0" - inkscape:current-layer="g38429" /> +
+ Home + About me +
+ + + + + diff --git a/layouts/content.vue b/layouts/content.vue index c5b9d97..7341893 100644 --- a/layouts/content.vue +++ b/layouts/content.vue @@ -17,19 +17,11 @@ height: 100%; display: flex; flex-direction: column; + padding-top: 40px; } .content { flex: 1; - padding: 40px 120px; - - @include desktop { - padding: 40px 40px 20px 40px; - } - - @include tablet { - padding: 40px 20px 20px 20px; - } } .footer { diff --git a/layouts/default.vue b/layouts/default.vue index 578c950..fb92896 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -92,6 +92,8 @@ export default defineComponent({ z-index: 1; display: flex; flex-direction: column; + + @include container; } .sidebar { diff --git a/layouts/landing.vue b/layouts/landing.vue new file mode 100644 index 0000000..227cdb3 --- /dev/null +++ b/layouts/landing.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/pages/bio.vue b/pages/bio.vue index 73153ba..c55409a 100644 --- a/pages/bio.vue +++ b/pages/bio.vue @@ -19,11 +19,14 @@