From 236aa01d6ec5c94750ec012240b70b6499b846bd Mon Sep 17 00:00:00 2001 From: webfussel Date: Tue, 21 May 2024 20:53:30 +0200 Subject: [PATCH] ADD: Responsiveness --- Globals.css | 17 ++++++++++--- components/Button/Button.css | 1 - components/Customers/Customers.css | 9 +++++++ components/Person/Person.css | 31 ++++++++++++++++++++++++ components/Person/Person.vue | 25 +++++++++++++++++++ components/Services/Services.css | 39 ++++++++++++------------------ components/Services/Services.vue | 27 ++++++++++----------- 7 files changed, 106 insertions(+), 43 deletions(-) create mode 100644 components/Person/Person.css create mode 100644 components/Person/Person.vue diff --git a/Globals.css b/Globals.css index 0d8773f..d0e1b48 100644 --- a/Globals.css +++ b/Globals.css @@ -105,6 +105,7 @@ body { } h1, h2, h3, h4, h5, h6 { + text-align: left; font-family: 'Roboto Condensed', sans-serif; } @@ -152,10 +153,6 @@ span.chip { position: relative; z-index: 100; padding: 150px 15vw; - - & h2 { - text-align: left; - } } .full { @@ -202,3 +199,15 @@ span.chip { .z-5 { box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22); } + +@media (width <= 780px) { + h1, h2, h3, h4, h5, h6, p { + text-align: center; + } +} + +@media (width <= 450px) { + .content { + padding: 150px 10vw; + } +} diff --git a/components/Button/Button.css b/components/Button/Button.css index 964d68c..72716df 100644 --- a/components/Button/Button.css +++ b/components/Button/Button.css @@ -9,7 +9,6 @@ box-shadow: 0 0 0 0 var(--color-orange); border-radius: 99999px; text-align: center; - white-space: nowrap; &:hover { box-shadow: 0 0 0 6px var(--color-orange); diff --git a/components/Customers/Customers.css b/components/Customers/Customers.css index 079598c..c82b98a 100644 --- a/components/Customers/Customers.css +++ b/components/Customers/Customers.css @@ -107,3 +107,12 @@ } } } + +@media (width <= 780px) { + .Customers { + & .customer-list { + align-items: center; + justify-content: center; + } + } +} diff --git a/components/Person/Person.css b/components/Person/Person.css new file mode 100644 index 0000000..7ce146f --- /dev/null +++ b/components/Person/Person.css @@ -0,0 +1,31 @@ +.Person { + flex: 1 1; + flex-basis: 300px; + align-items: center; + gap: 1rem; + + & img { + border: 4px solid var(--color-orange); + border-radius: 50%; + width: 150px; + } + + & span { + font-family: 'Roboto Condensed', sans-serif; + font-weight: bold; + + &:not(:last-child):after { + content: " | " + } + } + + & p { + text-align: center; + white-space: pre-wrap; + + &:first-of-type { + margin-top: -1rem; + } + } +} + diff --git a/components/Person/Person.vue b/components/Person/Person.vue new file mode 100644 index 0000000..8a6b99a --- /dev/null +++ b/components/Person/Person.vue @@ -0,0 +1,25 @@ +