-
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 #24 from polkadot-ui/revert-frontpage
Revert all idiotic changes
- Loading branch information
Showing
79 changed files
with
3,568 additions
and
298 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors | ||
SPDX-License-Identifier: MIT */ | ||
|
||
import { Button } from "@polkadot-ui/react"; | ||
import { SimpleEditor } from "../../lib/SimpleEditor"; | ||
import { Demo } from "../../lib/Demo"; | ||
|
||
export const ButtonHelp = () => { | ||
const code = `<Button type="help" marginRight /> | ||
<Button type="help" background="secondary" marginRight /> | ||
<Button type="help" background="none" outline />`; | ||
|
||
return ( | ||
<> | ||
<Demo showThemes={false}> | ||
<Button type="help" marginRight /> | ||
<Button type="help" background="secondary" marginRight /> | ||
<Button type="help" background="none" outline /> | ||
</Demo> | ||
<SimpleEditor code={code} /> | ||
</> | ||
); | ||
}; |
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,26 @@ | ||
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors | ||
SPDX-License-Identifier: MIT */ | ||
|
||
import { faUser } from "@fortawesome/free-solid-svg-icons"; | ||
import { Button } from "@polkadot-ui/react"; | ||
import { SimpleEditor } from "../../lib/SimpleEditor"; | ||
import { Demo } from "../../lib/Demo"; | ||
|
||
export const ButtonMono = () => { | ||
const code = `<Button type="mono" text="Button" marginRight /> | ||
<Button type="mono" text="Button" iconLeft={faUser} marginRight /> | ||
<Button type="mono" text="Button" iconRight={faUser} marginRight /> | ||
<Button type="mono" lg text="Button" disabled />`; | ||
|
||
return ( | ||
<> | ||
<Demo showThemes={false}> | ||
<Button type="mono" text="Button" marginRight /> | ||
<Button type="mono" text="Button" iconLeft={faUser} marginRight /> | ||
<Button type="mono" text="Button" iconRight={faUser} marginRight /> | ||
<Button type="mono" lg text="Button" disabled /> | ||
</Demo> | ||
<SimpleEditor code={code} /> | ||
</> | ||
); | ||
}; |
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,31 @@ | ||
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors | ||
SPDX-License-Identifier: MIT */ | ||
|
||
import { faUser } from "@fortawesome/free-solid-svg-icons"; | ||
import { Button } from "@polkadot-ui/react"; | ||
import { SimpleEditor } from "../../lib/SimpleEditor"; | ||
import { Demo } from "../../lib/Demo"; | ||
|
||
export const ButtonMonoInvert = () => { | ||
const code = `<Button type="monoInvert" text="Button" marginRight /> | ||
<Button type="monoInvert" text="Button" iconLeft={faUser} marginRight /> | ||
<Button type="monoInvert" text="Button" iconRight={faUser} marginRight /> | ||
<Button type="monoInvert" lg text="Button" disabled />`; | ||
|
||
return ( | ||
<> | ||
<Demo showThemes={false}> | ||
<Button type="monoInvert" text="Button" marginRight /> | ||
<Button type="monoInvert" text="Button" iconLeft={faUser} marginRight /> | ||
<Button | ||
type="monoInvert" | ||
text="Button" | ||
iconRight={faUser} | ||
marginRight | ||
/> | ||
<Button type="monoInvert" lg text="Button" disabled /> | ||
</Demo> | ||
<SimpleEditor code={code} /> | ||
</> | ||
); | ||
}; |
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,32 @@ | ||
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors | ||
SPDX-License-Identifier: MIT */ | ||
|
||
import { faUser } from "@fortawesome/free-solid-svg-icons"; | ||
import { Button } from "@polkadot-ui/react"; | ||
import { SimpleEditor } from "../../lib/SimpleEditor"; | ||
import { Demo } from "../../lib/Demo"; | ||
|
||
export const ButtonPrimary = () => { | ||
const code = `<Button text="Button" marginRight /> | ||
<Button type="primary" text="Button" iconLeft={faUser} marginRight /> | ||
<Button type="primary" text="Button" iconLeft={faUser} marginRight colorSecondary /> | ||
<Button type="primary" text="Button" lg disabled />`; | ||
|
||
return ( | ||
<> | ||
<Demo> | ||
<Button text="Button" marginRight /> | ||
<Button type="primary" text="Button" iconLeft={faUser} marginRight /> | ||
<Button | ||
type="primary" | ||
text="Button" | ||
iconLeft={faUser} | ||
marginRight | ||
colorSecondary | ||
/> | ||
<Button type="primary" text="Button" lg disabled /> | ||
</Demo> | ||
<SimpleEditor code={code} /> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.