Skip to content

Commit 9ddf9cf

Browse files
committed
♻️ Rename logo to img in Maintenance component
1 parent d7bd5af commit 9ddf9cf

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

src/blocks/Maintenance/Maintenance.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import styles from './maintenance.module.scss'
66
interface Props extends MaintenanceProps {}
77
88
const {
9-
logo,
9+
img,
1010
animated = true,
1111
title = 'Under Maintenance',
1212
subTitle = 'We are performing scheduled maintenance.',
@@ -21,12 +21,12 @@ const classes = [
2121
---
2222

2323
<section class:list={classes}>
24-
{logo?.url ? (
24+
{img?.url ? (
2525
<img
26-
src={logo.url}
27-
alt={logo.alt || 'Logo'}
28-
width={logo.width}
29-
height={logo.height}
26+
src={img.url}
27+
alt={img.alt || title}
28+
width={img.width}
29+
height={img.height}
3030
/>
3131
) : <Fragment set:html={cog} />}
3232
<h1 class={styles.title}>{title}</h1>

src/blocks/Maintenance/Maintenance.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import styles from './maintenance.module.scss'
77
88
const {
9-
logo,
9+
img,
1010
animated = true,
1111
title = 'Under Maintenance',
1212
subTitle = 'We are performing scheduled maintenance.',
@@ -21,12 +21,12 @@
2121
</script>
2222

2323
<section class={classes}>
24-
{#if logo?.url}
24+
{#if img?.url}
2525
<img
26-
src={logo.url}
27-
alt={logo.alt || 'Logo'}
28-
width={logo.width}
29-
height={logo.height}
26+
src={img.url}
27+
alt={img.alt || title}
28+
width={img.width}
29+
height={img.height}
3030
/>
3131
{:else}
3232
{@html cog}

src/blocks/Maintenance/Maintenance.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import cog from './cog.svg?raw'
66
import styles from './maintenance.module.scss'
77

88
const Maintenance = ({
9-
logo,
9+
img,
1010
animated = true,
1111
title = 'Under Maintenance',
1212
subTitle = 'We are performing scheduled maintenance.',
@@ -20,12 +20,12 @@ const Maintenance = ({
2020

2121
return (
2222
<section className={classes}>
23-
{logo?.url ? (
23+
{img?.url ? (
2424
<img
25-
src={logo.url}
26-
alt={logo.alt || 'Logo'}
27-
width={logo.width}
28-
height={logo.height}
25+
src={img.url}
26+
alt={img.alt || title}
27+
width={img.width}
28+
height={img.height}
2929
/>
3030
) : <span dangerouslySetInnerHTML={{ __html: cog }} />}
3131
<h1 className={styles.title}>{title}</h1>

src/blocks/Maintenance/maintenance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export type MaintenanceProps = {
2-
logo?: {
2+
img?: {
33
url: string
44
alt: string
55
width: number

src/pages/blocks/maintenance.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const sections = getSections({
4141

4242
<Card title="Custom data">
4343
<section.component
44-
logo={{ url: '/img/logo.png' }}
44+
img={{ url: '/img/logo.png' }}
4545
title="Maintenance"
4646
subTitle="We are currently doing scheduled maintenance. Our website will be back up and running shortly.<br />Keep up to date about our status on our <a href='#'>X</a> profile."
4747
/>

0 commit comments

Comments
 (0)