Changed icons to regular variant

This commit is contained in:
DrMint 2024-06-01 17:17:06 +02:00
parent 5b0a19a2c5
commit e0735fd429
18 changed files with 36 additions and 42 deletions

View File

@ -22,7 +22,6 @@
## Mid term ## Mid term
- [Feat] [Payload] Home as parent folders for home folders - [Feat] [Payload] Home as parent folders for home folders
- [Feat] Change icons to filled one
- [Bugs] [Timeline] Error if collectible not published? - [Bugs] [Timeline] Error if collectible not published?
- [Feat] [Timeline] display source language - [Feat] [Timeline] display source language
- [Feat] [Timeline] Add details button in footer with credits + last updated / created - [Feat] [Timeline] Add details button in footer with credits + last updated / created

View File

@ -52,7 +52,7 @@ const contactLabel = `${t("footer.socials.contact.title")} - ${t(
</a> </a>
<a href="/contact" class="pressable-label" aria-label={contactLabel} title={contactLabel}> <a href="/contact" class="pressable-label" aria-label={contactLabel} title={contactLabel}>
<Icon name="material-symbols:mail-outline" /> <Icon name="material-symbols:mail" />
<p class="font-s">{t("footer.socials.contact.title")}</p> <p class="font-s">{t("footer.socials.contact.title")}</p>
</a> </a>
</div> </div>

View File

@ -38,6 +38,7 @@ const { title, icon, class: className, ariaLabel, id } = Astro.props;
place-items: center; place-items: center;
place-content: center; place-content: center;
gap: 1em; gap: 1em;
white-space: pre;
font-variation-settings: "wght" 700; font-variation-settings: "wght" 700;
cursor: pointer; cursor: pointer;
@ -51,6 +52,7 @@ const { title, icon, class: className, ariaLabel, id } = Astro.props;
& > svg { & > svg {
width: 1.2em; width: 1.2em;
height: 1.2em; height: 1.2em;
flex-shrink: 0;
} }
} }

View File

@ -32,23 +32,16 @@ if (values.length === 0) return;
<style> <style>
#container { #container {
display: grid; display: flex;
grid-template-columns: auto 1fr;
gap: 0.5em 1em; gap: 0.5em 1em;
flex-wrap: wrap;
@media (max-width: 35em) {
grid-template-columns: 1fr;
}
& > #values { & > #values {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 6px; gap: 6px;
place-items: center;
&:not(.with-border) { translate: 0px 3px;
translate: 0px 5px;
line-height: 1.2;
}
&.with-border { &.with-border {
& > div, & > div,

View File

@ -15,7 +15,7 @@ const { t } = await getI18n(Astro.locals.currentLocale);
{/* ------------------------------------------- HTML ------------------------------------------- */} {/* ------------------------------------------- HTML ------------------------------------------- */}
<div> <div>
<TitleIcon title={t("pages.tableOfContent")} icon="material-symbols:list-alt-outline" /> <TitleIcon title={t("pages.tableOfContent")} icon="material-symbols:list-alt" />
<ol> <ol>
{toc.map((entry) => <TableOfContentItem entry={entry} />)} {toc.map((entry) => <TableOfContentItem entry={entry} />)}
</ol> </ol>

View File

@ -37,7 +37,7 @@ const { pretitle, title, subtitle, summary, content, credits, toc, language, sou
const metaAttributes: Attribute[] = [ const metaAttributes: Attribute[] = [
{ {
title: t("global.media.attributes.createdAt"), title: t("global.media.attributes.createdAt"),
icon: "material-symbols:calendar-add-on-outline", icon: "material-symbols:calendar-add-on",
values: [{ name: formatDate(new Date(createdAt)) }], values: [{ name: formatDate(new Date(createdAt)) }],
withBorder: false, withBorder: false,
}, },
@ -52,7 +52,7 @@ const metaAttributes: Attribute[] = [
if (updatedBy) { if (updatedBy) {
metaAttributes.push({ metaAttributes.push({
title: t("global.media.attributes.updatedBy"), title: t("global.media.attributes.updatedBy"),
icon: "material-symbols:person-edit-outline", icon: "material-symbols:person-edit",
values: [{ name: updatedBy.username, href: getLocalizedUrl(`/recorders/${updatedBy.id}`) }], values: [{ name: updatedBy.username, href: getLocalizedUrl(`/recorders/${updatedBy.id}`) }],
withBorder: true, withBorder: true,
}); });

View File

@ -41,7 +41,7 @@ const metaAttributes = [
? [ ? [
{ {
title: t("global.media.attributes.filename"), title: t("global.media.attributes.filename"),
icon: "material-symbols:audio-file-outline", icon: "material-symbols:audio-file",
values: [{ name: filename }], values: [{ name: filename }],
withBorder: false, withBorder: false,
}, },
@ -49,13 +49,13 @@ const metaAttributes = [
: []), : []),
{ {
title: t("global.media.attributes.filesize"), title: t("global.media.attributes.filesize"),
icon: "material-symbols:hard-drive-outline", icon: "material-symbols:hard-drive",
values: [{ name: formatFilesize(filesize) }], values: [{ name: formatFilesize(filesize) }],
withBorder: false, withBorder: false,
}, },
{ {
title: t("global.media.attributes.createdAt"), title: t("global.media.attributes.createdAt"),
icon: "material-symbols:calendar-add-on-outline", icon: "material-symbols:calendar-add-on",
values: [{ name: formatDate(new Date(createdAt)) }], values: [{ name: formatDate(new Date(createdAt)) }],
withBorder: false, withBorder: false,
}, },

View File

@ -32,7 +32,7 @@ const title = (() => {
{/* ------------------------------------------- HTML ------------------------------------------- */} {/* ------------------------------------------- HTML ------------------------------------------- */}
<div id="container"> <div id="container">
<TitleIcon title={title} icon={"material-symbols:shopping-cart-outline"} /> <TitleIcon title={title} icon="material-symbols:shopping-cart" />
{ {
urls.length > 0 && ( urls.length > 0 && (
<div id="values"> <div id="values">

View File

@ -15,7 +15,7 @@ const { t } = await getI18n(Astro.locals.currentLocale);
{/* ------------------------------------------- HTML ------------------------------------------- */} {/* ------------------------------------------- HTML ------------------------------------------- */}
<div id="container"> <div id="container">
<TitleIcon title={t("collectibles.contents")} icon="material-symbols:list-alt-outline" /> <TitleIcon title={t("collectibles.contents")} icon="material-symbols:list-alt" />
<div id="contents"> <div id="contents">
{contents.map((content) => <ContentRow content={content} />)} {contents.map((content) => <ContentRow content={content} />)}

View File

@ -21,7 +21,7 @@ const { t } = await getI18n(Astro.locals.currentLocale);
{/* ------------------------------------------- HTML ------------------------------------------- */} {/* ------------------------------------------- HTML ------------------------------------------- */}
<div id="container"> <div id="container">
<TitleIcon title={t("collectibles.bookFormat")} icon="material-symbols:note-stack-outline" /> <TitleIcon title={t("collectibles.bookFormat")} icon="material-symbols:note-stack" />
<div id="values"> <div id="values">
<p>{t("collectibles.bookFormat.pageCount", { count: pageCount })}</p> <p>{t("collectibles.bookFormat.pageCount", { count: pageCount })}</p>

View File

@ -18,7 +18,7 @@ const { formatInches, formatMillimeters, t } = await getI18n(Astro.locals.curren
{/* ------------------------------------------- HTML ------------------------------------------- */} {/* ------------------------------------------- HTML ------------------------------------------- */}
<div id="size"> <div id="size">
<TitleIcon title={t("collectibles.size")} icon="material-symbols:measuring-tape-outline" /> <TitleIcon title={t("collectibles.size")} icon="material-symbols:measuring-tape" />
<div id="values"> <div id="values">
<div> <div>

View File

@ -15,7 +15,7 @@ const { t } = await getI18n(Astro.locals.currentLocale);
{/* ------------------------------------------- HTML ------------------------------------------- */} {/* ------------------------------------------- HTML ------------------------------------------- */}
<div id="container"> <div id="container">
<TitleIcon title={t("collectibles.contents")} icon="material-symbols:box-outline" /> <TitleIcon title={t("collectibles.contents")} icon="material-symbols:box" />
<div id="values"> <div id="values">
{subitems.map((subitem) => <CollectiblePreview collectible={subitem} />)} {subitems.map((subitem) => <CollectiblePreview collectible={subitem} />)}

View File

@ -13,7 +13,7 @@ const { formatPounds, formatGrams, t } = await getI18n(Astro.locals.currentLocal
{/* ------------------------------------------- HTML ------------------------------------------- */} {/* ------------------------------------------- HTML ------------------------------------------- */}
<div id="container"> <div id="container">
<TitleIcon title={t("collectibles.weight")} icon="material-symbols:scale-outline" /> <TitleIcon title={t("collectibles.weight")} icon="material-symbols:scale" />
<p>{formatGrams(weight)}{" "}({formatPounds(weight)})</p> <p>{formatGrams(weight)}{" "}({formatPounds(weight)})</p>
</div> </div>

View File

@ -30,7 +30,7 @@ const metaAttributes = [
? [ ? [
{ {
title: t("global.media.attributes.filename"), title: t("global.media.attributes.filename"),
icon: "material-symbols:unknown-document-outline", icon: "material-symbols:unknown-document",
values: [{ name: filename }], values: [{ name: filename }],
withBorder: false, withBorder: false,
}, },
@ -38,7 +38,7 @@ const metaAttributes = [
: []), : []),
{ {
title: t("global.media.attributes.createdAt"), title: t("global.media.attributes.createdAt"),
icon: "material-symbols:calendar-add-on-outline", icon: "material-symbols:calendar-add-on",
values: [{ name: formatDate(new Date(createdAt)) }], values: [{ name: formatDate(new Date(createdAt)) }],
withBorder: false, withBorder: false,
}, },

View File

@ -59,7 +59,7 @@ const { pretitle, title, subtitle, description } = translation;
const metaAttributes: Attribute[] = [ const metaAttributes: Attribute[] = [
{ {
title: t("global.media.attributes.createdAt"), title: t("global.media.attributes.createdAt"),
icon: "material-symbols:calendar-add-on-outline", icon: "material-symbols:calendar-add-on",
values: [{ name: formatDate(new Date(createdAt)) }], values: [{ name: formatDate(new Date(createdAt)) }],
withBorder: false, withBorder: false,
}, },
@ -74,7 +74,7 @@ const metaAttributes: Attribute[] = [
if (updatedBy) { if (updatedBy) {
metaAttributes.push({ metaAttributes.push({
title: t("global.media.attributes.updatedBy"), title: t("global.media.attributes.updatedBy"),
icon: "material-symbols:person-edit-outline", icon: "material-symbols:person-edit",
values: [{ name: updatedBy.username, href: getLocalizedUrl(`/recorders/${updatedBy.id}`) }], values: [{ name: updatedBy.username, href: getLocalizedUrl(`/recorders/${updatedBy.id}`) }],
withBorder: true, withBorder: true,
}); });
@ -83,7 +83,7 @@ if (updatedBy) {
const additionalAttributes = [ const additionalAttributes = [
{ {
title: t("collectibles.nature"), title: t("collectibles.nature"),
icon: "material-symbols:leaf-spark-outline", icon: "material-symbols:leaf-spark",
values: [ values: [
{ {
name: t( name: t(
@ -100,7 +100,7 @@ const additionalAttributes = [
if (releaseDate) { if (releaseDate) {
additionalAttributes.push({ additionalAttributes.push({
title: t("collectibles.releaseDate"), title: t("collectibles.releaseDate"),
icon: "material-symbols:calendar-month-outline", icon: "material-symbols:calendar-month",
values: [{ name: formatDate(new Date(releaseDate)) }], values: [{ name: formatDate(new Date(releaseDate)) }],
withBorder: false, withBorder: false,
}); });

View File

@ -25,7 +25,7 @@ const metaAttributes = [
? [ ? [
{ {
title: t("global.media.attributes.filename"), title: t("global.media.attributes.filename"),
icon: "material-symbols:unknown-document-outline", icon: "material-symbols:unknown-document",
values: [{ name: filename }], values: [{ name: filename }],
withBorder: false, withBorder: false,
}, },
@ -33,7 +33,7 @@ const metaAttributes = [
: []), : []),
{ {
title: t("global.media.attributes.createdAt"), title: t("global.media.attributes.createdAt"),
icon: "material-symbols:calendar-add-on-outline", icon: "material-symbols:calendar-add-on",
values: [{ name: formatDate(new Date(createdAt)) }], values: [{ name: formatDate(new Date(createdAt)) }],
withBorder: false, withBorder: false,
}, },

View File

@ -66,13 +66,13 @@ const { t, getLocalizedUrl } = await getI18n(Astro.locals.currentLocale);
<div class="grid"> <div class="grid">
<div class="DEV_TODO"> <div class="DEV_TODO">
<LinkCard <LinkCard
icon="material-symbols:movie-outline" icon="material-symbols:movie"
title={t("footer.links.videos.title")} title={t("footer.links.videos.title")}
subtitle={t("footer.links.videos.subtitle", { count: 2115 })} subtitle={t("footer.links.videos.subtitle", { count: 2115 })}
href={getLocalizedUrl("/videos")} href={getLocalizedUrl("/videos")}
/> />
<LinkCard <LinkCard
icon="material-symbols:folder-zip-outline" icon="material-symbols:folder-zip"
title={t("footer.links.webArchives.title")} title={t("footer.links.webArchives.title")}
subtitle={t("footer.links.webArchives.subtitle", { count: 20 })} subtitle={t("footer.links.webArchives.subtitle", { count: 20 })}
href={getLocalizedUrl("/archives")} href={getLocalizedUrl("/archives")}
@ -80,7 +80,7 @@ const { t, getLocalizedUrl } = await getI18n(Astro.locals.currentLocale);
</div> </div>
<LinkCard <LinkCard
icon="material-symbols:calendar-month-outline" icon="material-symbols:calendar-month"
title={t("footer.links.timeline.title")} title={t("footer.links.timeline.title")}
subtitle={t("footer.links.timeline.subtitle", { subtitle={t("footer.links.timeline.subtitle", {
eraCount: cache.config.timeline.eras.length, eraCount: cache.config.timeline.eras.length,
@ -90,7 +90,7 @@ const { t, getLocalizedUrl } = await getI18n(Astro.locals.currentLocale);
/> />
<LinkCard <LinkCard
icon="material-symbols:perm-media-outline" icon="material-symbols:perm-media"
title={t("footer.links.gallery.title")} title={t("footer.links.gallery.title")}
subtitle={t("footer.links.gallery.subtitle", { count: 5750 })} subtitle={t("footer.links.gallery.subtitle", { count: 5750 })}
href="https://gallery.accords-library.com/posts" href="https://gallery.accords-library.com/posts"
@ -120,9 +120,9 @@ const { t, getLocalizedUrl } = await getI18n(Astro.locals.currentLocale);
subtitle={t("footer.socials.github.subtitle")} subtitle={t("footer.socials.github.subtitle")}
href="https://github.com/Accords-Library" href="https://github.com/Accords-Library"
/> />
<div class="DEV_TODO"> <div>
<LinkCard <LinkCard
icon="material-symbols:mail-outline" icon="material-symbols:mail"
title={t("footer.socials.contact.title")} title={t("footer.socials.contact.title")}
subtitle={t("footer.socials.contact.subtitle")} subtitle={t("footer.socials.contact.subtitle")}
href={getLocalizedUrl("/contact")} href={getLocalizedUrl("/contact")}

View File

@ -40,7 +40,7 @@ const metaAttributes = [
? [ ? [
{ {
title: t("global.media.attributes.filename"), title: t("global.media.attributes.filename"),
icon: "material-symbols:video-file-outline", icon: "material-symbols:video-file",
values: [{ name: filename }], values: [{ name: filename }],
withBorder: false, withBorder: false,
}, },
@ -48,13 +48,13 @@ const metaAttributes = [
: []), : []),
{ {
title: t("global.media.attributes.filesize"), title: t("global.media.attributes.filesize"),
icon: "material-symbols:hard-drive-outline", icon: "material-symbols:hard-drive",
values: [{ name: formatFilesize(filesize) }], values: [{ name: formatFilesize(filesize) }],
withBorder: false, withBorder: false,
}, },
{ {
title: t("global.media.attributes.createdAt"), title: t("global.media.attributes.createdAt"),
icon: "material-symbols:calendar-add-on-outline", icon: "material-symbols:calendar-add-on",
values: [{ name: formatDate(new Date(createdAt)) }], values: [{ name: formatDate(new Date(createdAt)) }],
withBorder: false, withBorder: false,
}, },