Skip to content

Commit

Permalink
Update inception.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwang24 authored May 26, 2024
1 parent 5fffcfe commit eeec70e
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/inception.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,33 @@ toc: false
theme: [air,alt,wide]
---

<style>

.img-container {
text-align: center;
}

.img-container img {
position: absolute;
left:50%;
transform: translateX(-50%);
}

</style>


```js
// IMAGES

const img_src_mitnano = FileAttachment("./imgs/MIT-nano-exterior_0.jpg").href;

function return_img(src, size, url) {
function return_img(src, size) {
return html`
<a href="${url}">
<img
src="${src}"
height="${size}px"
width="${size}px"
/>
</a>
`;
}
```
Expand All @@ -42,7 +55,9 @@ Each design -- the Great Dome (2018), the MIT Seal (2020), and the Move to Cambr

</div>

<div class="card>
<div class="img-container" style="min-height:242px;">
${resize((width,height)=> return_img(img_src_mitnano,Math.min(width,height),"https://mitnano.mit.edu"))}
${resize((width,height)=> return_img(img_src_mitnano,Math.min(width,height)))}
</div>
</div>
</div>

0 comments on commit eeec70e

Please sign in to comment.