-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Use NAV-dekorator for Page examples (#3362)
* [aksel.nav.no] Update examples of Page * comment * comment + rename + style->class * fix * 📝 Use NAV-dekorator for Page-examples * 🚚 Moved content to separate __parts location * :refactor: Updated examples * Update aksel.nav.no/website/components/website-modules/examples/__parts/PageDemoContent.tsx Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com> * 🐛 Use correct import syntax for parts * 📝 Add description to page-block default story * 💄 Removed spacing from all typo-headings in demo * 🐛 Removed react import from content part --------- Co-authored-by: Halvor Haugan <halvor.haugan@nav.no> Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
- Loading branch information
1 parent
f400485
commit 20fde22
Showing
8 changed files
with
156 additions
and
137 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
23 changes: 23 additions & 0 deletions
23
aksel.nav.no/website/components/website-modules/examples/__parts/PageDemoContent.tsx
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
function Content({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<div className="decorator-content"> | ||
<style> | ||
{`.decorator-content { | ||
padding-block: 5rem; | ||
padding-inline: 0.25rem; | ||
display: grid; | ||
place-content: center; | ||
background: repeating-linear-gradient( | ||
45deg, | ||
#eee, | ||
#eee 10px, | ||
#fff 10px, | ||
#fff 20px | ||
);`} | ||
</style> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
export { Content }; |
40 changes: 20 additions & 20 deletions
40
aksel.nav.no/website/pages/eksempler/primitive-page/background.tsx
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
40 changes: 20 additions & 20 deletions
40
aksel.nav.no/website/pages/eksempler/primitive-page/below-fold.tsx
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
40 changes: 20 additions & 20 deletions
40
aksel.nav.no/website/pages/eksempler/primitive-page/content-block-padding.tsx
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
52 changes: 28 additions & 24 deletions
52
aksel.nav.no/website/pages/eksempler/primitive-page/gutters.tsx
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
49 changes: 22 additions & 27 deletions
49
aksel.nav.no/website/pages/eksempler/primitive-page/width.tsx
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