Add image to project page
This commit is contained in:
parent
40722ab109
commit
0b79a849e7
3 changed files with 13 additions and 1 deletions
|
@ -18,7 +18,14 @@ if (project == null) return
|
||||||
|
|
||||||
<Layout page={project.name} description={project.description}>
|
<Layout page={project.name} description={project.description}>
|
||||||
<section id={styles.jumbo}>
|
<section id={styles.jumbo}>
|
||||||
<h1 class={styles.title}>{project.name}</h1>
|
<img
|
||||||
|
id={styles.thumb}
|
||||||
|
src={`/images/${project.thumbImage}`}
|
||||||
|
alt={project.name}
|
||||||
|
/>
|
||||||
|
<h1 class={styles.title}>
|
||||||
|
{project.name}
|
||||||
|
</h1>
|
||||||
<Divider />
|
<Divider />
|
||||||
<p class={styles.overview}>{project.overview}</p>
|
<p class={styles.overview}>{project.overview}</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -30,6 +30,7 @@ svg {
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
max-width: 40rem;
|
max-width: 40rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#thumb {
|
||||||
|
height: 10rem;
|
||||||
|
}
|
||||||
|
|
||||||
.overview {
|
.overview {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue