Skip to content

Commit

Permalink
recently added collections layout. #75
Browse files Browse the repository at this point in the history
  • Loading branch information
spelkey-ucd committed Mar 16, 2021
1 parent 1ca4309 commit 7313c66
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ return html`
display: inline-block;
width: 100%;
}
span {
color:var(--color-aggie-gold);
}
#subtext{
color:white;
text-decoration: underline;
Expand All @@ -143,10 +139,6 @@ return html`
height: 8rem;
margin-left:0px;
}
.recent{
text-align: center;
background-color: var(--color-white);
}
.featured{
margin: 0;
text-align: center;
Expand Down Expand Up @@ -276,6 +268,26 @@ return html`
.browse-buttons app-icons {
margin: 0 10px;
}
.recent{
background-color: var(--color-white);
}
.recent h2 {
margin-bottom: 0;
text-align: center;
margin-top: 0;
}
.card-trio {
display: flex;
flex-direction: column;
}
.card-trio dams-collection-card {
flex-grow: 1;
margin-bottom: var(--spacing-default);
}
.card-trio dams-collection-card:nth-child(2) {
margin-left: 0;
margin-right: 0;
}
@media (min-width: 767px) {
.hero-top {
margin-bottom: 60px;
Expand All @@ -284,6 +296,13 @@ return html`
.hero-top-left img {
height: 30px;
}
.card-trio {
flex-flow: row nowrap;
}
.card-trio dams-collection-card:nth-child(2) {
margin-left: var(--spacing-default);
margin-right: var(--spacing-default);
}
}
@media (min-width: 1060px) {
Expand Down Expand Up @@ -391,6 +410,22 @@ return html`
</div>
</section>
<section class="recent site-frame">
<h2>Recently Digitized<br><span class="fw-light">Collections</span></h2>
${ SharedHtml.headerDots() }
<div class="card-trio">
${this.highlightedCollections.map((collection) =>
html`
<dams-collection-card .collection="${collection}"></dams-collection-card>
<dams-collection-card .collection="${collection}"></dams-collection-card>
<dams-collection-card .collection="${collection}"></dams-collection-card>
`
)}
</div>
</section>
<!--
<div id="sample">
<div id="top-header">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class FcAppConfigModel extends BaseModel {

this.byId = {};

APP_CONFIG.fcAppConfig = {error: true};

this.enabled = Array.isArray(APP_CONFIG.fcAppConfig);

Expand Down

0 comments on commit 7313c66

Please sign in to comment.