Updated favourites, preparing for implementing extra stuff
This commit is contained in:
parent
4475bc7a08
commit
fab7041ca7
4 changed files with 31 additions and 10 deletions
src
|
@ -3,22 +3,28 @@ export interface Props {
|
|||
name: string
|
||||
origin: string
|
||||
image: string
|
||||
link: string
|
||||
}
|
||||
|
||||
const { image, origin, name } = Astro.props
|
||||
const { link, image, origin, name } = Astro.props
|
||||
|
||||
const img: string = `/favourites/${image}.webp`
|
||||
---
|
||||
|
||||
<article>
|
||||
<div class="heading">{name}</div>
|
||||
<img src={img} alt={name} />
|
||||
<h2 class="subtext">
|
||||
{origin}
|
||||
</h2>
|
||||
</article>
|
||||
<a href={link} target="_blank" rel="noopener noreferrer">
|
||||
<article>
|
||||
<div class="heading">{name}</div>
|
||||
<img src={img} alt={name} />
|
||||
<h2 class="subtext">
|
||||
{origin}
|
||||
</h2>
|
||||
</article>
|
||||
</a>
|
||||
|
||||
<style>
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.heading {
|
||||
display: flex;
|
||||
height: 4rem;
|
||||
|
|
|
@ -20,6 +20,7 @@ const important_data = tadata.filter(function (el) {
|
|||
})
|
||||
|
||||
tadata.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
|
||||
important_data.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
|
||||
|
||||
const description = 'A collection of TAs previously completed be Firq.'
|
||||
---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue