Skip to content

Commit

Permalink
Fix thumbnails and use Panel design on index page (#5595)
Browse files Browse the repository at this point in the history
* fix thumbnails and use Panel design

* fix image width

* revert image url

* Apply suggestions from code review

* Apply suggestions from code review

---------

Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
  • Loading branch information
2 people authored and ahuang11 committed Oct 10, 2023
1 parent e3f44ca commit ca19cea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions panel/_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@
text-align: center;
}
.header {
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) ),url('{{ PANEL_CDN }}images/index_background.png');
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) ),url('{{ PANEL_CDN }}images/index_background.png');
background-size: cover;
background-repeat: no-repeat;
background-repeat: space;
background-position: center;
}
.header-content {
Expand Down Expand Up @@ -202,12 +202,15 @@
fill: var(--neutral-foreground-rest);
}
.card-image {
height: 100px;
height: 175px;
width: 100%;
margin-top: 25px;
}
object {
height: 125px;
height: 175px;
max-width: calc(100% - 50px);
margin-top: 25px;
border-radius: calc(var(--control-corner-radius) * 1px);
}
.card-content {
padding: 10px 10px 10px;
Expand Down Expand Up @@ -292,6 +295,7 @@ <h2 class="card-header">{{ item[1:].replace("_", " ").title() }}</h2>
const header_design = new window.fastDesignProvider("#header-design-provider");
header_design.setBackgroundColor('#ffffff')
const body_design = window.bodyDesign = new window.fastDesignProvider("#body-design-provider");
body_design.setAccentColor("#0072B5")
setSwitchFromParams()
setSearchFromParams()
})
Expand Down

0 comments on commit ca19cea

Please sign in to comment.