Skip to content

Commit

Permalink
Merge pull request #85 from swiss-art-research-net/fix/styling
Browse files Browse the repository at this point in the history
add header
  • Loading branch information
fkraeutli authored Jan 29, 2025
2 parents 9355b72 + fea87ad commit 6564f08
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ ul.dropdown-menu .user-dropdown_item span {
.nav-iconAndLabel {
text-align: center;
}
.page {
padding-top: var(--breadcrumb-height, 5px);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.sari-page-header {
display: flex;
align-items: center;
}
.sari-page-header-thumbnail {
max-width: 80px;
margin-right: 16px;
}
.sari-page-header-thumbnail img {
max-width: 100%;
height: auto;
display: block;
}
.sari-page-header-content {
flex-grow: 1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ ul.dropdown-menu .user-dropdown_item {
text-align: center;
}

.page {
padding-top: var(--breadcrumb-height, 5px);
}
23 changes: 23 additions & 0 deletions src/main/resources/org/researchspace/apps/sari/assets/sari.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// out: ./no_auth/sari

.sari {
&-page-header {
display: flex;
align-items: center;

&-thumbnail {
max-width: 80px;
margin-right: 16px;

img {
max-width: 100%;
height: auto;
display: block;
}
}

&-content {
flex-grow: 1;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link href="{{this}}" rel="stylesheet" type="text/css">
{{/each}}
<link href="/assets/no_auth/overrides.css" rel="stylesheet" type="text/css">
<link href="/assets/no_auth/sari.css" rel="stylesheet" type="text/css">

</head>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<link href="{{this}}" rel="stylesheet" type="text/css">
{{/each}}
<link href="/assets/no_auth/overrides.css" rel="stylesheet" type="text/css">
<link href="/assets/no_auth/sari.css" rel="stylesheet" type="text/css">

{{{html-head}}}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<div class="sari-page-header">
<div class="sari-page-header-thumbnail">
<mp-resource-thumbnail iri='[[this]]'></mp-resource-thumbnail>
</div>
<div class="sar-ipage-header-content">
<h1>
<mp-label iri='[[this]]'></mp-label>
</h1>

<p>
<b>URI</b>:
<a href='[[this]]' style="font-size: 12px; text-decoration: underline;" target='_blank'>
<span>[[this]]</span>
</a>
</p>

<!--Types -->
<p>
<b>Type</b>: <semantic-query
query="SELECT DISTINCT ?type WHERE { <[[this]]> [[#if type]][[type]][[else]]a[[/if]] ?type }"
style="display:inline;"></semantic-query>
</p>

<!--Description -->
<p>
<semantic-query
query='SELECT ?description WHERE { <[[this]]> [[#if description]][[description]][[else]]rdfs:comment[[/if]] ?description } LIMIT 1'
template='{{#each bindings}}<span><b>Description</b>: {{description.value}}</span>{{/each}}'>
</semantic-query>
</p>
</div>
</div>

0 comments on commit 6564f08

Please sign in to comment.