From db9316b58010ca0020f52a61b703ebaa5d8546e7 Mon Sep 17 00:00:00 2001 From: thisfro Date: Tue, 4 May 2021 14:28:18 +0200 Subject: [PATCH] styling offer page --- assets/styles/app.scss | 10 +++++++ templates/app/offer.html.twig | 56 +++++++++++++++++------------------ 2 files changed, 37 insertions(+), 29 deletions(-) diff --git a/assets/styles/app.scss b/assets/styles/app.scss index ccb0051..aa11425 100644 --- a/assets/styles/app.scss +++ b/assets/styles/app.scss @@ -26,4 +26,14 @@ $primary: darken(#005035, 20%); .listings-container { padding-top: 2rem; +} + +.img-container { + width: 50%; + min-width: 20rem; +} + +.offer-info { + width: 50%; + min-width: 20rem;; } \ No newline at end of file diff --git a/templates/app/offer.html.twig b/templates/app/offer.html.twig index 4f22e69..b6afcd0 100644 --- a/templates/app/offer.html.twig +++ b/templates/app/offer.html.twig @@ -3,34 +3,32 @@ {% block body %}

{{ offer.title }}

-
- Generic placeholder image -
-

- Description -

-

- {{ offer.description }} -

-

- From -

-

{{ offer.byUser }} in {{ offer.zipCode }}

-

Wishes

-

{{ offer.byUser }} would like some of the following in return:

-
- {% if wishes == [] %} - - {% else %} -
    - {% for wish in wishes %} -
  • {{ wish.title }}
  • - {% endfor %} -
- {% endif %} -
+
+
+ Generic placeholder image
-
+
+

Description

+

{{ offer.description }}

+

From

+

{{ offer.byUser }} in {{ offer.zipCode }}

+
+
+ +

Wishes

+

{{ offer.byUser }} would like some of the following in return:

+
+ {% if wishes == [] %} + + {% else %} +
    + {% for wish in wishes %} +
  • {{ wish.title }}
  • + {% endfor %} +
+ {% endif %} +
+ {% endblock %} \ No newline at end of file