forked from onwidget/astrowind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request onwidget#429 from ShoGinn/eslint_corrections
Eslint corrections
- Loading branch information
Showing
14 changed files
with
63 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,38 @@ | ||
--- | ||
import WidgetWrapper from "~/components/ui/WidgetWrapper.astro"; | ||
import Headline from "~/components/ui/Headline.astro"; | ||
import ItemGrid2 from "~/components/ui/ItemGrid2.astro"; | ||
import type { Features as Props } from "~/types"; | ||
import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; | ||
import Headline from '~/components/ui/Headline.astro'; | ||
import ItemGrid2 from '~/components/ui/ItemGrid2.astro'; | ||
import type { Features as Props } from '~/types'; | ||
const { | ||
title = await Astro.slots.render("title"), | ||
subtitle = await Astro.slots.render("subtitle"), | ||
tagline = await Astro.slots.render("tagline"), | ||
title = await Astro.slots.render('title'), | ||
subtitle = await Astro.slots.render('subtitle'), | ||
tagline = await Astro.slots.render('tagline'), | ||
items = [], | ||
columns = 3, | ||
defaultIcon, | ||
id, | ||
isDark = false, | ||
classes = {}, | ||
bg = await Astro.slots.render("bg"), | ||
bg = await Astro.slots.render('bg'), | ||
} = Astro.props; | ||
--- | ||
|
||
<WidgetWrapper | ||
id={id} | ||
isDark={isDark} | ||
containerClass={`max-w-7xl mx-auto ${classes?.container ?? ''}`} | ||
bg={bg} | ||
> | ||
<Headline | ||
title={title} | ||
subtitle={subtitle} | ||
tagline={tagline} | ||
classes={classes?.headline as Record<string, string>} | ||
/> | ||
<WidgetWrapper id={id} isDark={isDark} containerClass={`max-w-7xl mx-auto ${classes?.container ?? ''}`} bg={bg}> | ||
<Headline title={title} subtitle={subtitle} tagline={tagline} classes={classes?.headline as Record<string, string>} /> | ||
<ItemGrid2 | ||
items={items} | ||
columns={columns} | ||
defaultIcon={defaultIcon} | ||
classes={{ | ||
container: "gap-4 md:gap-6", | ||
container: 'gap-4 md:gap-6', | ||
panel: | ||
'rounded-lg shadow-[0_4px_30px_rgba(0,0,0,0.1)] dark:shadow-[0_4px_30px_rgba(0,0,0,0.1)] backdrop-blur border border-[#ffffff29] bg-white dark:bg-slate-900 p-6', | ||
'rounded-lg shadow-[0_4px_30px_rgba(0,0,0,0.1)] dark:shadow-[0_4px_30px_rgba(0,0,0,0.1)] backdrop-blur border border-[#ffffff29] bg-white dark:bg-slate-900 p-6', | ||
// panel: | ||
// "text-center bg-page items-center md:text-left rtl:md:text-right md:items-start p-6 p-6 rounded-md shadow-xl dark:shadow-none dark:border dark:border-slate-800", | ||
icon: "w-12 h-12 mb-6 text-primary", | ||
...((classes?.items as {}) ?? {}), | ||
icon: 'w-12 h-12 mb-6 text-primary', | ||
...((classes?.items as Record<string, never>) ?? {}), | ||
}} | ||
/> | ||
</WidgetWrapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters