mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 15:59:33 +08:00
revert imagetool
This commit is contained in:
parent
a72c359538
commit
acdd20d4a8
4 changed files with 12 additions and 12 deletions
|
@ -22,7 +22,7 @@
|
|||
alt={name ?? site.author.name}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
src="/assets/any@192.png"/>
|
||||
src={avatar ?? site.author.avatar}/>
|
||||
</div>
|
||||
</div>
|
||||
{#if subname}
|
||||
|
|
|
@ -1,22 +1,26 @@
|
|||
<script lang="ts">
|
||||
import { site } from '$lib/config/site'
|
||||
import { src, width, height } from '/static/assets/avatar.jpg?width=384&metadata'
|
||||
import srcset from '/static/assets/avatar.jpg?w=48;96;192&srcset'
|
||||
// import { src, width, height } from '/static/assets/avatar.jpg?width=384&metadata'
|
||||
// import srcset from '/static/assets/avatar.jpg?w=48;96;192&srcset'
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="h-card flex flex-col gap-4 sticky top-24 card card-body p-4 items-right xl:border-2 xl:py-8 border-base-content/10 xl:ml-auto xl:mr-8 xl:max-w-xs">
|
||||
<a href={site.protocol + site.domain} class="hidden u-url u-uid">{site.author.name}</a>
|
||||
<figure class="relative mx-auto group">
|
||||
<picture>
|
||||
<img
|
||||
class="rounded-full shadow-xl w-32 h-32 hover:rotate-[360deg] transition-transform duration-1000 ease-in-out"
|
||||
src={site.author.avatar}
|
||||
alt={site.author.name} />
|
||||
<!-- <picture>
|
||||
<source {srcset} type="image/jpg" />
|
||||
<img
|
||||
class="u-photo rounded-full shadow-xl transition-shadow z-10 w-24 h-24 md:w-32 md:h-32 hover:rotate-[360deg] transition-transform duration-1000 ease-in-out"
|
||||
{src}
|
||||
{width}
|
||||
{height}
|
||||
alt={site.author.name} />
|
||||
</picture>
|
||||
alt='/assets/avatar.jpg' />
|
||||
</picture> -->
|
||||
{#if site.author.status}
|
||||
<div class="heart absolute rounded-full w-10 h-10 bottom-0 right-0 bg-base-100 shadow-xl text-xl text-center py-1.5">
|
||||
{site.author.status}
|
||||
|
|
|
@ -9,6 +9,7 @@ export const site: SiteConfig = {
|
|||
description: 'Tech / Code / Random Life',
|
||||
author: {
|
||||
name: '酸橘汁腌鱼',
|
||||
avatar: '/assets/avatar.jpg',
|
||||
status: '🖤',
|
||||
bio: ' Code / Tech <br> Living a Random Life ',
|
||||
metadata: [
|
||||
|
|
|
@ -15,12 +15,7 @@ export type SiteConfig = {
|
|||
description?: string
|
||||
/** site keywords. `<meta name="keywords" content={site.keywords}>` */
|
||||
keywords?: string[]
|
||||
author: Omit<FFFAuthor, 'url' | 'avatar'> & {
|
||||
/**
|
||||
* @deprecated
|
||||
* @see `$lib/components/index_profile.svelte`
|
||||
*/
|
||||
avatar?: never
|
||||
author: Omit<FFFAuthor, 'url'> & {
|
||||
status?: string
|
||||
bio?: string
|
||||
metadata?: (
|
||||
|
|
Loading…
Reference in a new issue