Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/hungry-snakes-stay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"brand-shell": patch
---

replace brand-shell usage with specific BrandHeader and BrandFooter components
51 changes: 25 additions & 26 deletions starters/svelte-npm/src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
<script>
import { brandShell } from "brand-shell/svelte";
import { BrandHeader, BrandFooter } from "brand-shell/svelte";
import "brand-shell/default.css";

const shellProps = {
details: {
name: "Brand Shell",
homeHref: "/",
navLinks: [
{ label: "Docs", href: "/docs" },
{ label: "Blog", href: "/blog" }
],
primaryAction: { label: "Contact", href: "mailto:hello@example.com" },
secondaryAction: {
label: "Storybook",
href: "https://6992723e39539a58d711f188-ceiwmlxyrh.chromatic.com/",
target: "_blank"
},
github: "https://github.com/venwork-dev/brand-shell",
linkedin: "https://linkedin.com/in/example",
email: "hello@example.com",
tagline: "Starter app validating npm package publish output."
const details = {
name: "Brand Shell",
homeHref: "/",
navLinks: [
{ label: "Docs", href: "/docs" },
{ label: "Blog", href: "/blog" }
],
primaryAction: { label: "Contact", href: "mailto:hello@example.com" },
secondaryAction: {
label: "Storybook",
href: "https://6992723e39539a58d711f188-ceiwmlxyrh.chromatic.com/",
target: "_blank"
},
theme: {
primaryColor: "#2563eb",
backgroundColor: "#0f172a",
textColor: "#f8fafc"
}
github: "https://github.com/venwork-dev/brand-shell",
linkedin: "https://linkedin.com/in/example",
email: "hello@example.com",
tagline: "Starter app validating npm package publish output."
};

const theme = {
primaryColor: "#2563eb",
backgroundColor: "#0f172a",
textColor: "#f8fafc"
};
</script>

<brand-header use:brandShell={shellProps}></brand-header>
<BrandHeader {details} {theme} />
<main style="padding: 1rem;">
<h1 style="margin: 0; font-size: 1.25rem;">Starter smoke (Svelte)</h1>
<p style="margin-top: 0.5rem;">This app validates the published npm artifact through the Svelte adapter.</p>
</main>
<brand-footer use:brandShell={shellProps}></brand-footer>
<BrandFooter {details} {theme} />