nicco.io/src/components/Project.svelte

49 lines
793 B
Svelte
Raw Normal View History

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;
2020-09-24 19:29:43 +02:00
margin-bottom: 0.25em;
2020-07-24 15:30:46 +02:00
}
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 {
2020-09-24 19:29:43 +02:00
margin-bottom: 6em;
2020-07-24 15:30:46 +02:00
}
2020-09-24 19:29:43 +02:00
a {
font-family: monospace;
2020-07-24 15:30:46 +02:00
}
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-09-24 19:29:43 +02:00
<a href={project.link} target="_blank" rel="noopener">
<h2>{project.title}</h2>
</a>
2020-09-22 21:47:33 +02:00
<div><b>{project.description}</b> <b class="date">{project.date}</b></div>
2020-07-24 15:30:46 +02:00
2020-09-22 21:47:33 +02:00
<p>
{@html project.content}
</p>
2020-07-24 15:30:46 +02:00
<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>