Skip to content

Commit

Permalink
Fix publication copyrigth
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea committed Jul 11, 2024
1 parent f2b92a4 commit 9f1f0dc
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/Cards/ChartDescriptionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</p>
<ul>
<p>
the “minimum” and “lowerfence”, quartile (Q1), median, third quartile
The “minimum” and “lowerfence”, quartile (Q1), median, third quartile
(Q3), “maximum” and “upperfence” values.
</p>
<p>
Expand Down
61 changes: 58 additions & 3 deletions components/Cards/PosterList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
}}</v-icon>
</span>
</p>

<p>
<b>How to cite this poster:</b> <br />{{ selectedPoster.citation }}
</p>
<p>Presented at {{ selectedPoster.presented_loc }}</p>
</div>
</div>
Expand All @@ -74,19 +78,39 @@
:key="poster.title"
cols="12"
md="6"
@click="selectPoster(poster)"
>
<v-card class="poster-preview" outlined>
<embed
:src="getPosterPath(poster.poster)"
type="application/pdf"
class="embed-pdf"
/>
<v-card-title class="poster-title">
<v-card-title class="poster-title" @click="selectPoster(poster)">
<span
v-html="sanitizeHtml(formattedTitle(poster.title))"

Check warning on line 90 in components/Cards/PosterList.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

'v-html' directive can lead to XSS attack

Check warning on line 90 in components/Cards/PosterList.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

'v-html' directive can lead to XSS attack
></span>
<span> </span>
</v-card-title>
<div class="mx-2 chip">
<a
class="chip-icon"
target="_blank"
href="https://creativecommons.org/licenses/by/4.0/deed.en"
>
<img
src="@/static/posters/cc.png"
alt="CC"
class="logo chip-with-logo"
/>
</a>
<a target="_blank" :href="poster.link" class="chip-icon">
<img
src="@/static/posters/doi.svg"
alt="CC"
class="logo chip-with-logo"
/>
</a>
</div>
<v-card-subtitle class="publication-date">
{{ formatDate(poster.date) }}
</v-card-subtitle>
Expand Down Expand Up @@ -245,13 +269,39 @@ export default {
</script>

<style lang="scss" scoped>
.logo {
width: 25px;
height: 25px;
border-radius: 50%;
opacity: 0.7;
}
.logo:hover {
width: 28px;
height: 28px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 20%);
transition: box-shadow 0.3s ease-in-out;
}
.chip {
height: 35px;
text-align: center;
justify-content: center;
display: flex;
justify-content: center;
gap: 10px;
a:hover {
display: block;
height: 28px;
}
}
.poster-grid {
display: flex;
flex-wrap: wrap;
}
.poster-preview {
cursor: pointer;
margin-bottom: 16px;
display: flex;
flex-direction: column;
Expand All @@ -267,13 +317,18 @@ export default {
}
.poster-title {
cursor: pointer;
font-size: 14px; /* Smaller font size for titles */
margin: 8px 0; /* Ensure there is space between embed and title */
text-align: left;
word-break: break-word; /* Allow breaking long words */
overflow: hidden; /* Hide overflow text */
}
.poster-title:hover {
text-decoration: underline;
}
.poster-title span {
display: block; /* Ensure the span occupies full width */
}
Expand Down
Binary file added static/posters/cc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/posters/doi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9f1f0dc

Please sign in to comment.