Repository navigation
docs(website): add hidden Infima docs, as an Argos baseline #13081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e2cf6a3
docs(website): add hidden Infima docs, as an Argos baseline
slorber daefec3
refactor: apply lint autofix
slorber f538621
fix(website): scope Infima docs styles and update their markup
slorber f684379
docs(website): show the Infima introduction as "Infima" at the sideba…
slorber 0bc4940
docs(website): fix the wrapped buttons of the Infima demo, remove dup…
slorber 4c2b6d0
docs(website): show the Infima navbar icons, fix placeholder alt texts
slorber 153177f
refactor(website): convert the htmlPlayground remark plugin to TypeSc…
slorber 2f46938
docs(website): fit the Infima navbar dropdown example in the docs column
slorber 82c912a
docs(website): scope the Infima docs styles to their docs plugin inst…
slorber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 @@ | ||
| label: Components | ||
| position: 2 |
This file contains hidden or 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,81 @@ | ||
| # Alert | ||
|
|
||
| ## Colors | ||
|
|
||
| ### Primary | ||
|
|
||
| ```html | ||
| <div class="alert alert--primary" role="alert"> | ||
| <button aria-label="Close" class="clean-btn close" type="button"> | ||
| <span aria-hidden="true">×</span> | ||
| </button> | ||
| This is a | ||
| <strong>primary</strong> | ||
| alert. You should probably pay attention to it. | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Secondary | ||
|
|
||
| ```html | ||
| <div class="alert alert--secondary" role="alert"> | ||
| <button aria-label="Close" class="clean-btn close" type="button"> | ||
| <span aria-hidden="true">×</span> | ||
| </button> | ||
| This is a | ||
| <strong>secondary</strong> | ||
| alert. It's not too important, you may ignore it. | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Success | ||
|
|
||
| ```html | ||
| <div class="alert alert--success" role="alert"> | ||
| <button aria-label="Close" class="clean-btn close" type="button"> | ||
| <span aria-hidden="true">×</span> | ||
| </button> | ||
| This is a | ||
| <strong>success</strong> | ||
| alert. Something good must have happened! | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Info | ||
|
|
||
| ```html | ||
| <div class="alert alert--info" role="alert"> | ||
| <button aria-label="Close" class="clean-btn close" type="button"> | ||
| <span aria-hidden="true">×</span> | ||
| </button> | ||
| This is an | ||
| <strong>info</strong> | ||
| alert. For your information only. | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Warning | ||
|
|
||
| ```html | ||
| <div class="alert alert--warning" role="alert"> | ||
| <button aria-label="Close" class="clean-btn close" type="button"> | ||
| <span aria-hidden="true">×</span> | ||
| </button> | ||
| This is a | ||
| <strong>warning</strong> | ||
| alert. Be warned, you should pay attention! | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Danger | ||
|
|
||
| ```html | ||
| <div class="alert alert--danger" role="alert"> | ||
| <button aria-label="Close" class="clean-btn close" type="button"> | ||
| <span aria-hidden="true">×</span> | ||
| </button> | ||
| This is a | ||
| <strong>danger</strong> | ||
| alert. Something has gone wrong, please investigate! | ||
| </div> | ||
| ``` |
This file contains hidden or 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,105 @@ | ||
| # Avatar | ||
|
|
||
| ## Various Orientations | ||
|
|
||
| ### Horizontal | ||
|
|
||
| ```html | ||
| <div class="avatar"> | ||
| <a | ||
| class="avatar__photo-link avatar__photo avatar__photo--lg" | ||
| href="https://twitter.com/dan_abramov"> | ||
| <img | ||
| alt="Dan Abramov Profile" | ||
| src="https://avatars1.githubusercontent.com/u/810438?s=460" /> | ||
| </a> | ||
| <div class="avatar__intro"> | ||
| <div class="avatar__name">Dan Abramov</div> | ||
| <small class="avatar__subtitle"> | ||
| Working on @reactjs. Co-author of Redux and Create React App. | ||
| </small> | ||
| </div> | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Vertical | ||
|
|
||
| ```html | ||
| <div class="avatar avatar--vertical"> | ||
| <img | ||
| alt="" | ||
| class="avatar__photo avatar__photo--xl" | ||
| src="https://avatars1.githubusercontent.com/u/977348?s=460&v=4" /> | ||
| <div class="avatar__intro"> | ||
| <div class="avatar__name">Jordan Walke</div> | ||
| <small class="avatar__subtitle"> | ||
| Maker of things: ReactJS. Working on: | ||
| <a href="https://twitter.com/reasonml">@reasonml</a>. At: Facebook | ||
| Engineering. | ||
| </small> | ||
| </div> | ||
| </div> | ||
| ``` | ||
|
|
||
| ## Various Sizes | ||
|
|
||
| ### Small | ||
|
|
||
| ```html | ||
| <div class="avatar"> | ||
| <img | ||
| alt="" | ||
| class="avatar__photo avatar__photo--sm" | ||
| src="https://avatars3.githubusercontent.com/u/13352?s=400&v=4" /> | ||
| <div class="avatar__intro"> | ||
| <div class="avatar__name">Christoph Pojer</div> | ||
| </div> | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Default | ||
|
|
||
| ```html | ||
| <div class="avatar"> | ||
| <img | ||
| alt="" | ||
| class="avatar__photo" | ||
| src="https://avatars1.githubusercontent.com/u/165856?s=460&v=4" /> | ||
| <div class="avatar__intro"> | ||
| <div class="avatar__name">Hector Ramos</div> | ||
| <small class="avatar__subtitle">React Native @facebook</small> | ||
| </div> | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Large | ||
|
|
||
| ```html | ||
| <div class="avatar"> | ||
| <img | ||
| alt="" | ||
| class="avatar__photo avatar__photo--lg" | ||
| src="https://avatars2.githubusercontent.com/u/197597?s=460" /> | ||
| <div class="avatar__intro"> | ||
| <div class="avatar__name">Christopher Chedeau</div> | ||
| <small class="avatar__subtitle">Frenchy Front End Engineer</small> | ||
| </div> | ||
| </div> | ||
| ``` | ||
|
|
||
| ### Extra Large | ||
|
|
||
| ```html | ||
| <div class="avatar"> | ||
| <img | ||
| alt="" | ||
| class="avatar__photo avatar__photo--xl" | ||
| src="https://avatars0.githubusercontent.com/u/3757713?s=460&v=4" /> | ||
| <div class="avatar__intro"> | ||
| <div class="avatar__name">Joel Marcey</div> | ||
| <small class="avatar__subtitle"> | ||
| Developer Advocate at Facebook, co-creator of Docusaurus | ||
| </small> | ||
| </div> | ||
| </div> | ||
| ``` | ||
This file contains hidden or 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,39 @@ | ||
| # Badge | ||
|
|
||
| ## Colors | ||
|
|
||
| ### Primary | ||
|
|
||
| ```html | ||
| <span class="badge badge--primary">Primary</span> | ||
| ``` | ||
|
|
||
| ### Secondary | ||
|
|
||
| ```html | ||
| <span class="badge badge--secondary">Secondary</span> | ||
| ``` | ||
|
|
||
| ### Success | ||
|
|
||
| ```html | ||
| <span class="badge badge--success">Success</span> | ||
| ``` | ||
|
|
||
| ### Info | ||
|
|
||
| ```html | ||
| <span class="badge badge--info">Info</span> | ||
| ``` | ||
|
|
||
| ### Warning | ||
|
|
||
| ```html | ||
| <span class="badge badge--warning">Warning</span> | ||
| ``` | ||
|
|
||
| ### Danger | ||
|
|
||
| ```html | ||
| <span class="badge badge--danger">Danger</span> | ||
| ``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.