-
-
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.
Components: Add
<Heading/>
component.
This also fixes `scss`/`css` support and removes support for the dated `commonjs` format that shouldn't be used by anyone anymore.
- Loading branch information
Showing
32 changed files
with
339 additions
and
169 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@nordcom/nordstar-heading': patch | ||
--- | ||
|
||
Add initial `<Heading/>` component. |
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,10 @@ | ||
--- | ||
'@nordcom/nordstar-heading': patch | ||
'@nordcom/nordstar-card': patch | ||
'@nordcom/nordstar': patch | ||
--- | ||
|
||
Remove `commonjs` support. | ||
|
||
While we could probably quite easily continue to support it we absolutely shouldn't. | ||
There is no reason what so ever to still use `commonjs` in 2023 almost 2024, like literally none. |
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,2 @@ | ||
declare module '*.module.css'; | ||
declare module '*.module.scss'; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
|
||
.title { | ||
max-width: 52rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.25rem; | ||
} | ||
|
||
.content { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
gap: 1rem; | ||
} | ||
} |
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,7 +1,22 @@ | ||
import { Card } from '@nordcom/nordstar-card'; | ||
import { Heading } from '@nordcom/nordstar-heading'; | ||
import styles from './page.module.scss'; | ||
|
||
export default async function IndexPage() { | ||
return ( | ||
<main> | ||
<h1>nordstar</h1> | ||
<main className={styles.container}> | ||
<div className={styles.title}> | ||
<Heading>Nordstar</Heading> | ||
<Heading subheading> | ||
An opinionated component library for building human-centric user interfaces | ||
</Heading> | ||
</div> | ||
|
||
<div className={styles.content}> | ||
<Card></Card> | ||
<Card></Card> | ||
<Card></Card> | ||
</div> | ||
</main> | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
syntax: 'postcss-scss', | ||
plugins: [], | ||
} |
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
Oops, something went wrong.