Make the front image smaller and give it aspect ratio
This commit is contained in:
parent
734e40ed8b
commit
39955f64c8
@ -4,6 +4,7 @@
|
|||||||
citeOwnerClass,
|
citeOwnerClass,
|
||||||
mottoClass,
|
mottoClass,
|
||||||
profilePicClass,
|
profilePicClass,
|
||||||
|
profilePicImgClass,
|
||||||
twitchAsideClass,
|
twitchAsideClass,
|
||||||
twitchEmbedClass,
|
twitchEmbedClass,
|
||||||
twitchIframeClass,
|
twitchIframeClass,
|
||||||
@ -19,14 +20,9 @@
|
|||||||
<header class="index-header">
|
<header class="index-header">
|
||||||
<figure class="profile-pic {profilePicClass}">
|
<figure class="profile-pic {profilePicClass}">
|
||||||
<picture>
|
<picture>
|
||||||
<source
|
|
||||||
media="(max-width: 550px)"
|
|
||||||
srcset={generateSrcSet('/images/profile-portugal-portrait.jpg', {
|
|
||||||
width: 500,
|
|
||||||
})}
|
|
||||||
/>
|
|
||||||
<img
|
<img
|
||||||
alt="Portrait"
|
alt="Portrait"
|
||||||
|
class="{profilePicImgClass}"
|
||||||
srcset={generateSrcSet('/images/profile-portugal-landscape.jpg', {
|
srcset={generateSrcSet('/images/profile-portugal-landscape.jpg', {
|
||||||
width: 800,
|
width: 800,
|
||||||
})}
|
})}
|
||||||
|
@ -14,6 +14,11 @@ export const profilePicClass = sprinkles({
|
|||||||
marginY: 'none',
|
marginY: 'none',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export const profilePicImgClass = style({
|
||||||
|
aspectRatio: "auto 800 / 709",
|
||||||
|
maxHeight: '66vh'
|
||||||
|
})
|
||||||
|
|
||||||
export const mottoClass = sprinkles({
|
export const mottoClass = sprinkles({
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
marginX: 'auto',
|
marginX: 'auto',
|
||||||
|
Loading…
Reference in New Issue
Block a user