mirror of
https://github.com/Alee14/personal-website.git
synced 2025-01-22 10:51:50 -05:00
Moved the title and pub date below for videos
This commit is contained in:
parent
7205caf6af
commit
6f647c2ec5
1 changed files with 6 additions and 7 deletions
|
@ -52,8 +52,8 @@
|
|||
|
||||
<style>
|
||||
.title {
|
||||
margin-top: .2em;
|
||||
margin-bottom: .2em;
|
||||
margin-top: .5em;
|
||||
margin-bottom: .3em;
|
||||
}
|
||||
|
||||
img {
|
||||
|
@ -65,7 +65,6 @@
|
|||
|
||||
.card small {
|
||||
display: block;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.zoom {
|
||||
|
@ -76,7 +75,7 @@
|
|||
}
|
||||
|
||||
.zoom:hover {
|
||||
transform: scale(1.1); /* Scales the image to 110% of its original size on hover */
|
||||
transform: scale(1.04); /* Scales the image to 110% of its original size on hover */
|
||||
}
|
||||
|
||||
.container {
|
||||
|
@ -116,9 +115,9 @@
|
|||
{#each videos as video}
|
||||
<div class="card">
|
||||
<a href={`https://youtu.be/${video.snippet.resourceId.videoId}`} target="_blank">
|
||||
<img src={video.snippet.thumbnails.medium.url} class="zoom" loading="lazy" alt={video.snippet.title} width={video.snippet.thumbnails.medium.width} height={video.snippet.thumbnails.medium.height} />
|
||||
<h3 class="title">{video.snippet.title}</h3>
|
||||
<small>{formatDate(video.snippet.publishedAt)}</small>
|
||||
<img src={video.snippet.thumbnails.medium.url} alt={video.snippet.title} class="zoom" />
|
||||
</a>
|
||||
</div>
|
||||
{/each}
|
||||
|
|
Loading…
Reference in a new issue