The adaptive interface system for modern web experiences
+Interfaces bult with FAST adapt to your design system and can be used with any modern UI Framework by leveraging industry standard Web Components.
+From e6446e4d58d38177b3e893ffeb1229b8ff29d493 Mon Sep 17 00:00:00 2001 From: Kham Udom <37851220+khamudom@users.noreply.github.com> Date: Thu, 7 May 2020 18:54:00 -0700 Subject: [PATCH] feat: create section-header component for marketing site (#3070) * adding section header component * add pseudo class part * rename attribute * changed short attribute to a
tag
* removed attributes to use slots
* Update hero and page section to use section-header component. Removed global background and color style
* changed subheading to badge
* swap default with badge slot. update component implementation on page
---
.../fast-website/src/app/components/index.ts | 1 +
.../app/components/section-header/index.ts | 14 +++++++++
.../section-header/section-header.styles.ts | 12 +++++++
.../section-header/section-header.template.ts | 11 +++++++
.../section-header/section-header.ts | 3 ++
sites/fast-website/src/public/index.html | 31 ++++++++++++++++---
sites/fast-website/src/public/style.css | 21 +++++++++++--
7 files changed, 85 insertions(+), 8 deletions(-)
create mode 100755 sites/fast-website/src/app/components/section-header/index.ts
create mode 100755 sites/fast-website/src/app/components/section-header/section-header.styles.ts
create mode 100755 sites/fast-website/src/app/components/section-header/section-header.template.ts
create mode 100755 sites/fast-website/src/app/components/section-header/section-header.ts
diff --git a/sites/fast-website/src/app/components/index.ts b/sites/fast-website/src/app/components/index.ts
index 74e344476e9..fdb62d97d2a 100644
--- a/sites/fast-website/src/app/components/index.ts
+++ b/sites/fast-website/src/app/components/index.ts
@@ -1 +1,2 @@
export { GradientPicker } from "./gradient-picker";
+export { FASTSectionHeader } from "./section-header";
diff --git a/sites/fast-website/src/app/components/section-header/index.ts b/sites/fast-website/src/app/components/section-header/index.ts
new file mode 100755
index 00000000000..cb6356397a8
--- /dev/null
+++ b/sites/fast-website/src/app/components/section-header/index.ts
@@ -0,0 +1,14 @@
+import { customElement } from "@microsoft/fast-element";
+import { SectionHeader } from "./section-header";
+import { SectionHeaderTemplate as template } from "./section-header.template";
+import { SectionHeaderStyles as styles } from "./section-header.styles";
+
+@customElement({
+ name: "fast-section-header",
+ template,
+ styles,
+})
+export class FASTSectionHeader extends SectionHeader {}
+export * from "./section-header.template";
+export * from "./section-header.styles";
+export * from "./section-header";
diff --git a/sites/fast-website/src/app/components/section-header/section-header.styles.ts b/sites/fast-website/src/app/components/section-header/section-header.styles.ts
new file mode 100755
index 00000000000..17f67780580
--- /dev/null
+++ b/sites/fast-website/src/app/components/section-header/section-header.styles.ts
@@ -0,0 +1,12 @@
+import { css } from "@microsoft/fast-element";
+import { display } from "@microsoft/fast-components";
+
+export const SectionHeaderStyles = css`
+ ${display("flex")} :host {
+ flex-direction: column;
+ font-family: var(--body-font);
+ color: var(--neutral-foreground-rest);
+ box-sizing: border-box;
+ text-align: center;
+ }
+`;
diff --git a/sites/fast-website/src/app/components/section-header/section-header.template.ts b/sites/fast-website/src/app/components/section-header/section-header.template.ts
new file mode 100755
index 00000000000..89c56e26126
--- /dev/null
+++ b/sites/fast-website/src/app/components/section-header/section-header.template.ts
@@ -0,0 +1,11 @@
+import { html } from "@microsoft/fast-element";
+import { SectionHeader } from "./section-header";
+
+export const SectionHeaderTemplate = html The adaptive interface system for modern web experiences Interfaces bult with FAST adapt to your design system and can be used with any modern UI Framework by leveraging industry standard Web Components. One component, many faces Using an unopinionated architecture and Adaptive Styling, one suite of components can blend into any environment. Works with existing frameworks Feature and Utilities Join the community