2020-07-24 15:16:04 +02:00
|
|
|
<script>
|
|
|
|
export let project
|
|
|
|
</script>
|
|
|
|
|
2020-07-24 15:30:46 +02:00
|
|
|
<style>
|
|
|
|
h2 {
|
|
|
|
font-size: 2em;
|
|
|
|
margin-bottom: 0.75em;
|
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
2020-07-24 15:36:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.date {
|
|
|
|
align-self: flex-end;
|
2020-07-24 15:30:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
section {
|
|
|
|
margin-bottom: 4em;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-icon {
|
|
|
|
transform: translateY(0.25em);
|
|
|
|
}
|
2020-07-24 15:36:56 +02:00
|
|
|
|
|
|
|
@media (max-width: 30em) {
|
|
|
|
div {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
2020-07-24 15:30:46 +02:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<section>
|
2020-07-24 15:36:56 +02:00
|
|
|
<h2>{project.name}</h2>
|
2020-07-24 15:30:46 +02:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<b>{project.title}</b>
|
2020-07-24 15:36:56 +02:00
|
|
|
<b class="date">{project.date}</b>
|
2020-07-24 15:30:46 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>{project.body}</p>
|
|
|
|
|
|
|
|
<ion-icon name="link-outline" />
|
2020-07-27 12:36:55 +02:00
|
|
|
<a rel="noopener noreferrer" target="_blank" href={project.link}>{project.link.replace(/https?:\/\//, '')}</a>
|
2020-07-24 15:30:46 +02:00
|
|
|
|
|
|
|
</section>
|