Merge pull request #2 from alexwholland/main

Moved image to right of text
This commit is contained in:
Bhavanvir Rai
2023-03-12 18:34:21 -07:00
committed by GitHub

View File

@@ -1,18 +1,24 @@
{% extends 'scraper/base.html' %}
{% block content %}
<a href="{% url 'index' %}" class="btn btn-outline-primary mt-3 mx-3">Go Back</a>
<h1 class="col-12 col-md-6 mx-md-auto">Marketscrape Analysis Report</h1>
<div class="row mt-5">
<div class="col-12 col-md-6 mx-md-auto">
<h4> Product: {{ title }}</h4>
<h4> Price: {{ list_price }}</h4>
<h4> Range: ${{ lower_bound }} - ${{ upper_bound }}</h4>
<h4> Median: ${{ median }}</h4>
<h4> Description: {{ sentiment_rating }}/5.0</h4>
<h4> Price: {{ price_rating }}/5.0</h4>
<h4> Overall: {{ average_rating }}/5.0</h4>
<img src="{{ image }}">
</div>
</div>
{% endblock content %}
<a href="{% url 'index' %}" class="btn btn-outline-primary mt-3 mx-3">Go Back</a>
<h1 class="col-12 col-md-6 mx-md-auto">Marketscrape Analysis Report</h1>
<div class="row mt-5">
<div class="col-12 col-md-6 mx-md-auto">
<div class="row">
<div class="col-md-6">
<h4> Product: {{ title }}</h4>
<h4> Price: {{ list_price }}</h4>
<h4> Range: ${{ lower_bound }} - ${{ upper_bound }}</h4>
<h4> Median: ${{ median }}</h4>
<h4> Description: {{ sentiment_rating }}/5.0</h4>
<h4> Price: {{ price_rating }}/5.0</h4>
<h4> Overall: {{ average_rating }}/5.0</h4>
</div>
<div class="col-12 col-md-6">
<img src="{{ image }}" style="width: 50%;">
</div>
</div>
</div>
</div>
{% endblock content %}