Add new entry blog: Web Infra 1 (#3)

* Change blog entry style : titles font weight lighter->normal
* Add tmpfs scripts for linux (dev only)

Co-authored-by: Corentin <corentin-pro@mail.com>
Co-authored-by: Jimmy Vargo <james@ayo.tokyo>
Reviewed-on: ayo/website#3
This commit is contained in:
corentin 2023-09-12 18:48:18 +09:00
commit 6fdcf4f102
10 changed files with 41 additions and 37 deletions

View file

@ -38,18 +38,16 @@ class BlogEntryComponent extends Component
<img id="image-view"/>
</div>,
<script>
{`const container = document.getElementById("image-container")
const image_view = document.getElementById("image-view")
{`
function open_image(src)
{
image_view.src = src
container.style.display = 'flex'
document.getElementById("image-view").src = src
document.getElementById("image-container").style.display = 'flex'
}
function close_image()
{
container.style.display = 'none'
document.getElementById("image-container").style.display = 'none'
}`}
</script>
]

View file

@ -8,7 +8,7 @@
h1, h2, h3
{
font-weight: lighter;
font-weight: normal;
margin: 8px 0;
color: var(--highlight-fg-color);
}
@ -62,7 +62,7 @@
font-weight: normal;
font-style: italic;
}
p
{
display: flex;
@ -70,7 +70,7 @@
justify-content: center;
width: 100%;
}
img
{
display: block;

View file

@ -1,13 +0,0 @@
const container = document.getElementById("image-container")
const image_view = document.getElementById("image-view")
function view_image(src)
{
image_view.src = src
container.style.display = 'flex'
}
function close_image()
{
container.style.display = 'none'
}