mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 21:59:30 +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}
|
alt={name ?? site.author.name}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
src="/assets/any@192.png"/>
|
src={avatar ?? site.author.avatar}/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{#if subname}
|
{#if subname}
|
||||||
|
|
|
@ -1,22 +1,26 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { site } from '$lib/config/site'
|
import { site } from '$lib/config/site'
|
||||||
import { src, width, height } from '/static/assets/avatar.jpg?width=384&metadata'
|
// 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 srcset from '/static/assets/avatar.jpg?w=48;96;192&srcset'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<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">
|
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>
|
<a href={site.protocol + site.domain} class="hidden u-url u-uid">{site.author.name}</a>
|
||||||
<figure class="relative mx-auto group">
|
<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" />
|
<source {srcset} type="image/jpg" />
|
||||||
<img
|
<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"
|
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}
|
{src}
|
||||||
{width}
|
{width}
|
||||||
{height}
|
{height}
|
||||||
alt={site.author.name} />
|
alt='/assets/avatar.jpg' />
|
||||||
</picture>
|
</picture> -->
|
||||||
{#if site.author.status}
|
{#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">
|
<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}
|
{site.author.status}
|
||||||
|
|
|
@ -9,6 +9,7 @@ export const site: SiteConfig = {
|
||||||
description: 'Tech / Code / Random Life',
|
description: 'Tech / Code / Random Life',
|
||||||
author: {
|
author: {
|
||||||
name: '酸橘汁腌鱼',
|
name: '酸橘汁腌鱼',
|
||||||
|
avatar: '/assets/avatar.jpg',
|
||||||
status: '🖤',
|
status: '🖤',
|
||||||
bio: ' Code / Tech <br> Living a Random Life ',
|
bio: ' Code / Tech <br> Living a Random Life ',
|
||||||
metadata: [
|
metadata: [
|
||||||
|
|
|
@ -15,12 +15,7 @@ export type SiteConfig = {
|
||||||
description?: string
|
description?: string
|
||||||
/** site keywords. `<meta name="keywords" content={site.keywords}>` */
|
/** site keywords. `<meta name="keywords" content={site.keywords}>` */
|
||||||
keywords?: string[]
|
keywords?: string[]
|
||||||
author: Omit<FFFAuthor, 'url' | 'avatar'> & {
|
author: Omit<FFFAuthor, 'url'> & {
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
* @see `$lib/components/index_profile.svelte`
|
|
||||||
*/
|
|
||||||
avatar?: never
|
|
||||||
status?: string
|
status?: string
|
||||||
bio?: string
|
bio?: string
|
||||||
metadata?: (
|
metadata?: (
|
||||||
|
|
Loading…
Reference in a new issue