Skip to content

Commit

Permalink
feat: reintroduce bs grid on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Nov 27, 2024
1 parent 41c5e7b commit bdd74bd
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/web_interface/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,27 @@

{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/home.css') }}">
<style>
.home-block {
min-width: 500px;
max-width: 800px;
}
</style>

{% endblock %}

{% block body %}
<div class="row justify-content-center mt-4">

<div class="p-0 m-2">
<center>
<img width="100%" height="auto" src="{{ url_for('static', filename='fact_logo_invertible.svg') }}" style="max-width: 445px;">
<div class="col col-xs-12 col-sm-8 col-lg-6 col-xl-4 p-0 m-2 home-block">
<div>
<img height="auto" src="{{ url_for('static', filename='fact_logo_invertible.svg') }}"
style="max-width: 445px; display: block; margin: auto;" alt="fact_logo_invertible.svg">

<br /><br />

<h4 class="mb-3">General FACTs</h4>
<table class="table table-sm table-responsive" style="width: 705px;">
<h4 class="mb-3" style="text-align: center">General FACTs</h4>
<table class="table table-sm" style="margin: auto; width: auto;">
<tbody>
<tr>
<td style="text-align: left; padding:5px">firmware samples</td>
Expand Down Expand Up @@ -63,7 +70,7 @@ <h4 class="mb-3">General FACTs</h4>
</tr>
</tbody>
</table>
</center>
</div>
</div>
<script>
function load_ajax_stats(){
Expand Down Expand Up @@ -94,7 +101,7 @@ <h4 class="mb-3">General FACTs</h4>
</script>

{% if (latest_firmware_submissions | length) > 0 %}
<div class="card p-2 m-2 bg-light rounded border-0" style="width: 705px;">
<div class="col col-xs-12 col-sm-8 col-lg-6 col-xl-4 card p-2 m-2 bg-light rounded border-0 home-block">
<div class="card-body bg-light p-3">
<h4 class="card-title mb-3">Latest Firmware Submissions</h4>
<ul class="list-group-flush px-0 mb-0">
Expand All @@ -112,7 +119,7 @@ <h4 class="card-title mb-3">Latest Firmware Submissions</h4>
{# Latest Comments #}
<div class="row justify-content-center">
{% if (latest_comments | length) > 0 %}
<div class="card p-2 m-2 bg-light rounded border-0" style="width: 705px;">
<div class="col col-xs-12 col-sm-8 col-lg-6 col-xl-4 card p-2 m-2 bg-light rounded border-0 home-block">
<div class="card-body p-3">
<h4 class="card-title mb-3">Latest Comments</h4>
<ul class="list-group-flush px-0">
Expand All @@ -137,7 +144,7 @@ <h4 class="card-title mb-3">Latest Comments</h4>

{# latest_comparison_results #}
{% if (latest_comparison_results | length) > 0 %}
<div class="card p-2 m-2 bg-light rounded border-0" style="width: 705px;">
<div class="col col-xs-12 col-sm-8 col-lg-6 col-xl-4 card p-2 m-2 bg-light rounded border-0 home-block">
<div class="card-body p-3">
<h4 class="card-title mb-3">Latest Comparisons</h4>
<ul class="list-group list-group-flush px-0">
Expand Down

0 comments on commit bdd74bd

Please sign in to comment.