diff --git a/frontend_v2/src/app/components/home/home.component.html b/frontend_v2/src/app/components/home/home.component.html index 0d955e8ec5..808e1f55b1 100644 --- a/frontend_v2/src/app/components/home/home.component.html +++ b/frontend_v2/src/app/components/home/home.component.html @@ -436,26 +436,26 @@

Sponsors

Testimonials

-
-
- {{ testimonialbody }} -
-
-
- -
-
{{ testimonialauthor}}
- {{ testimonialorg }} +
+
+
+ +
+
{{ testimonialauthor}}
+ {{ testimonialorg }} +
+
+
+ {{ testimonialbody }}
-
- - - + + +
diff --git a/frontend_v2/src/app/components/home/home.component.scss b/frontend_v2/src/app/components/home/home.component.scss index f8b004f4b7..0605efb430 100644 --- a/frontend_v2/src/app/components/home/home.component.scss +++ b/frontend_v2/src/app/components/home/home.component.scss @@ -100,30 +100,27 @@ p { height: 30%; padding-left: 5vw; .testimonial-body { - width: 70%; - margin-left: 15%; - padding-top: 120px; - padding-bottom: 50px; + padding-top: 150px; + padding-bottom: 70px; + width: 60%; span { color: #000; font-weight: $fw-light; font-style: italic; - padding: 15px; } } .testimonial-author { + padding-top: 100px; padding-bottom: 70px; - text-align: left; - display: flex; - align-items: center; - justify-content: center; + margin-left: 5%; .logo { height: 100px; width: 100px; } .testimonial-details { - margin-left: 15px; + margin-top: 15px; + display: block; } .name { margin: 0; @@ -150,12 +147,30 @@ p { .testimonial-quotes { position: absolute; - top: 15%; - left: 10%; + top: 22%; + left: 30%; height: 50px; } } +@media only screen and (max-width: 600px) { + .testimonial-container { + .testimonial-author { + margin-left: 0; + } + .testimonial-body { + padding-top: 35px; + width: 80%; + margin-left: 10%; + } + .testimonial-quotes { + top: 280px; + left: 17%; + + } + } +} + @include screen-medium { .testimonial-container { .testimonial-quotes { @@ -169,10 +184,6 @@ p { .testimonial-container { background-size: 80 !important; padding-left: 0; - .testimonial-quotes { - height: 30px !important; - top: 12%; - } .testimonial-author { padding-bottom: 40px; } diff --git a/frontend_v2/src/app/components/home/home.component.ts b/frontend_v2/src/app/components/home/home.component.ts index f40f3c5208..6e9c3fd99a 100644 --- a/frontend_v2/src/app/components/home/home.component.ts +++ b/frontend_v2/src/app/components/home/home.component.ts @@ -207,7 +207,6 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy { scope.testimonialbody = scope.testimonials[scope.selected]['text']; scope.testimonialauthor = scope.testimonials[scope.selected]['author']; scope.testimonialorg = scope.testimonials[scope.selected]['org']; - element.style.marginLeft = '15%'; }, 1000); };