From 87c33c5b193e16bd733761653a263d12e5ab6535 Mon Sep 17 00:00:00 2001 From: mac Date: Mon, 18 Mar 2024 09:23:59 +0300 Subject: [PATCH] Fix: Adjust the UI --- .../food_trucks/templates/base.html | 37 ++++- .../food_trucks/templates/details.html | 49 +++--- .../food_trucks/templates/home.html | 154 +++++++++++++++++- .../templates/search_by_location.html | 22 +-- 4 files changed, 224 insertions(+), 38 deletions(-) diff --git a/food_truck_finder/food_trucks/templates/base.html b/food_truck_finder/food_trucks/templates/base.html index 3fae500..bd193f4 100644 --- a/food_truck_finder/food_trucks/templates/base.html +++ b/food_truck_finder/food_trucks/templates/base.html @@ -8,24 +8,50 @@ {{ tittle }} + + -
-
-

Food Truck Finder

+
+
+

+ Food Truck Finder +

+ Explore
+
{% block content %} {% endblock %} +
+ -
-

Footer here some thing to do!

+
+
+
+

Food Truck Finder

+

Find food trucks near you

+
+ +
+

Support

+

Help Center

+

Customer

+

How it works

+

Get in touch

+
+
+ +
+

© 2024 Food Truck Finder

+
+
@@ -33,4 +59,5 @@

Footer here some thing to do!

{% block scripts %} + {% endblock %} \ No newline at end of file diff --git a/food_truck_finder/food_trucks/templates/details.html b/food_truck_finder/food_trucks/templates/details.html index 9b4caeb..00d0bb2 100644 --- a/food_truck_finder/food_trucks/templates/details.html +++ b/food_truck_finder/food_trucks/templates/details.html @@ -3,38 +3,45 @@ {% block content %} -
-
+
+
{% if food_truck %} -

{{ food_truck.name }}

-

{{ food_truck.facility_type }}

-

{{ food_truck.location_description }}

-

{{ food_truck.address }}

-

{{ food_truck.permit }}

-

{{ food_truck.status }}

- +
+

{{ food_truck.name }}

+

Type {{ food_truck.facility_type}}

+

Location {{ food_truck.location_description}}

+

Address {{ food_truck.address}}

+

Permit {{ food_truck.permit}}

+ +
{% if food_truck.food_items %} -

Food Items

-
    - {% for food_item in food_truck.food_items %} -
  • {{ food_item }}
  • - {% endfor %} -
+
+

Food Items

+
    + {% for food_item in food_truck.food_items %} +
  • {{ food_item }}
  • + {% endfor %} +
+
{% endif %} {% if food_truck.open_hours %} -

Open Hours

+
+

Open Hours

{% for day, hours in food_truck.open_hours.items %} -

{{ day }}

-
    +
    +

    {{ day }}

    +
      {% for hour in hours %} -
    • {{ hour.start_time }} - {{ hour.end_time }}
    • +
    • {{ hour.start_time }} - {{ hour.end_time }}
    • {% endfor %}
    +
    +
{% endfor %} {% endif %} -
-
+
+
diff --git a/food_truck_finder/food_trucks/templates/home.html b/food_truck_finder/food_trucks/templates/home.html index 54991c2..ee67c7c 100644 --- a/food_truck_finder/food_trucks/templates/home.html +++ b/food_truck_finder/food_trucks/templates/home.html @@ -2,8 +2,158 @@ {% load static %} {% block content %} -
- +
+
+ Food Truck +
+

Find the best food trucks in San Francisco

+

Explore a variety of cuisines on wheels near you!

+
+
+ +

Find Food Trucks Near You

+ +
+ + +
+ + +
+ +
+ + +

Popular Food Trucks

+ +
+
+ Food Truck +
+
+ + +
+
+ Food Truck +
+
+ + +
+
+ + +

Popular Food Items

+ +
+
+ Street Food +
+

9.6

+
+
+

+
+

Ice Cream

+

Location

+ +
+

from $10

+

+

+
+
+
+ Street Food +
+

9.6

+
+
+

+
+

Ice Cream

+

Location

+ +
+

from $10

+

+

+
+
+
+ Street Food +
+

9.6

+
+
+

+
+

Ice Cream

+

Location

+ +
+

from $10

+

+

+
+
+
+ Street Food +
+

9.6

+
+
+

+
+

Ice Cream

+

Location

+ +
+

from $10

+

+

+
+
+
+ Street Food +
+

9.6

+
+
+

+
+

Ice Cream

+

Location

+ +
+

from $10

+

+

+
+
+
+ + + +
+
+

+
+

Get the best food truck deals

+

Subscribe to our newsletter and get the latest food truck deals in San Francisco

+
+
+ +
diff --git a/food_truck_finder/food_trucks/templates/search_by_location.html b/food_truck_finder/food_trucks/templates/search_by_location.html index df08089..bb9c7c7 100644 --- a/food_truck_finder/food_trucks/templates/search_by_location.html +++ b/food_truck_finder/food_trucks/templates/search_by_location.html @@ -4,22 +4,24 @@
-
-

Results

-
+
+

Search Results

+