mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 15:00:09 +02:00
docs(v2): Add codesandbox integration (#4062)
This commit is contained in:
parent
458bf67484
commit
b93d95b9e0
5 changed files with 32 additions and 2 deletions
|
@ -114,6 +114,11 @@ function Home() {
|
|||
to={useBaseUrl('docs/')}>
|
||||
<Translate>Get Started</Translate>
|
||||
</Link>
|
||||
<Link
|
||||
className={styles.indexCtaTryNowButton}
|
||||
to="https://new.docusaurus.io">
|
||||
<Translate>Playground</Translate>
|
||||
</Link>
|
||||
<span className={styles.indexCtasGitHubButtonWrapper}>
|
||||
<iframe
|
||||
className={styles.indexCtasGitHubButton}
|
||||
|
|
|
@ -122,10 +122,23 @@
|
|||
|
||||
.indexCtasGitHubButton {
|
||||
border: none;
|
||||
margin-left: 24px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.indexCtaTryNowButton {
|
||||
line-height: 1.2em;
|
||||
text-decoration: underline;
|
||||
text-transform: uppercase;
|
||||
transition: background 0.3s, color 0.3s;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
margin: 0 36px;
|
||||
}
|
||||
.indexCtaTryNowButton:hover {
|
||||
color: var(--ifm-color-primary);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.hero {
|
||||
padding-left: 20px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue