Skip to content

Commit

Permalink
Merge pull request #14135 from andrejvelichkovski/c3-713-implement-pl…
Browse files Browse the repository at this point in the history
…atform-view

C3-713: Redesign public representation for certified machines
  • Loading branch information
immortalcodes authored Nov 6, 2024
2 parents 7d39d4f + a9431fc commit f3c3536
Show file tree
Hide file tree
Showing 20 changed files with 1,014 additions and 577 deletions.
12 changes: 12 additions & 0 deletions static/sass/_pattern_certified-model-details-tabs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.model-details-row {
position: relative;
}

.model-details-p-tabs,
.model-details-p-tabs__list {
position: static;
}

.model-details-p-tabs__list {
margin: 0 auto;
}
1 change: 1 addition & 0 deletions static/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ $color-shadow: rgba(0, 0, 0, 0.5) !default;
@import "pattern_carousel";
@import "pattern_checkout";
@import "pattern_certification-results";
@import "pattern_certified-model-details-tabs";
@import "pattern_chart";
@import "pattern_component-details-table";
@import "pattern_component-table";
Expand Down
47 changes: 3 additions & 44 deletions templates/certified/hardware-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,9 @@
<h1 class="p-heading--2">Hardware details</h1>
</div>
<div class="col-5 u-align--center u-vertically-center u-hide--medium u-hide--small">
{% if release_details.category == "Desktop" or release_details.category == "Laptop" %}
{{ image (
url="https://assets.ubuntu.com/v1/4b732966-Laptop.svg",
alt="",
width="132",
height="77",
hi_def=True,
loading="auto"
) | safe
}}
{% endif %}
{% if release_details.category == "Server" %}
{{ image (
url="https://assets.ubuntu.com/v1/fdf83d49-Server.svg",
alt="Server",
width="80",
height="96",
hi_def=True,
loading="auto"
) | safe
}}
{% endif %}
{% if release_details.category == "Ubuntu Core" %}
{{ image (
url="https://assets.ubuntu.com/v1/f9f8ace9-gateway.svg",
alt="Gateway",
width="96",
height="100",
hi_def=True,
loading="auto"
) | safe
}}
{% endif %}
{% if release_details.category == "Server SoC" %}
{{ image (
url="https://assets.ubuntu.com/v1/4e0399a1-chip.svg",
alt="Chip",
width="84",
height="100",
hi_def=True,
loading="auto"
) | safe
}}
{% endif %}
{% with category=release_details.category %}
{% include "certified/shared/category-image.html" %}
{% endwith %}
</div>
</div>
<div class="row">
Expand Down
Loading

0 comments on commit f3c3536

Please sign in to comment.