mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-05-12 14:26:56 +00:00
handle images better
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
---
|
||||
import { Image } from 'astro:assets';
|
||||
import logoImage from '../assets/img/yht_logo.png';
|
||||
---
|
||||
<div>
|
||||
<img src="/assets/yht_logo.png" alt="YouHaveTrouble's logo">
|
||||
<Image src={logoImage} alt="Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background" width="150" height="150"/>
|
||||
<p>
|
||||
Hi, I'm <strong>Paweł</strong>, also known by <strong>YouHaveTrouble</strong> on the internet.
|
||||
I'm a full-stack web developer and minecraft plugin developer.
|
||||
@@ -10,6 +14,7 @@
|
||||
div {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
img {
|
||||
@@ -23,4 +28,15 @@
|
||||
p {
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 520px) {
|
||||
div {
|
||||
flex-direction: column;
|
||||
}
|
||||
img {
|
||||
margin-right: unset;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -16,6 +16,6 @@ const { current = '' } = Astro.props;
|
||||
</style>
|
||||
|
||||
<header>
|
||||
<Logo />
|
||||
<Logo width="50" height="50" />
|
||||
<Nav current={current} />
|
||||
</header>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
---
|
||||
import { Image } from 'astro:assets';
|
||||
import logoImage from '../assets/img/yht_logo.png';
|
||||
|
||||
const { width, height } = Astro.props;
|
||||
---
|
||||
|
||||
<a href="/">
|
||||
<Image src={logoImage} alt="Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background" width="50" height="50"/>
|
||||
<Image src={logoImage} alt="Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background" width={width} height={height}/>
|
||||
</a>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user