-
Notifications
You must be signed in to change notification settings - Fork 13
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 #831 from synnaxlabs/sy-1218-documentation-site-br…
…eadcrumbs SY-1218 documentation site breadcrumbs
- Loading branch information
Showing
75 changed files
with
423 additions
and
25 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,72 @@ | ||
--- | ||
import { Icon } from "@synnaxlabs/media"; | ||
import { Align, Button, Divider, Text } from "@synnaxlabs/pluto"; | ||
const { next, prev, nextURL, prevURL } = Astro.props; | ||
--- | ||
|
||
<Align.Space className="next-prev" empty> | ||
{(next != null || prev != null) && <Divider.Divider direction="x" />} | ||
<Align.Space direction="x" justify="spaceBetween"> | ||
<Align.Space direction="x" el="a" className="link" href={prevURL}> | ||
{ | ||
prev != null && ( | ||
<> | ||
<Icon.Caret.Left /> | ||
<Align.Space direction="y" size="small"> | ||
<Text.Text level="small" shade={7} weight={400}> | ||
Previous | ||
</Text.Text> | ||
<Text.Text level="p">{prev}</Text.Text> | ||
</Align.Space> | ||
</> | ||
) | ||
} | ||
</Align.Space> | ||
<Align.Space direction="x" el="a" className="link" href={nextURL}> | ||
{ | ||
next != null && ( | ||
<> | ||
<Align.Space direction="y" size="small"> | ||
<Text.Text level="small" shade={7} weight={400}> | ||
Next | ||
</Text.Text> | ||
<Text.Text level="p">{next}</Text.Text> | ||
</Align.Space> | ||
<Icon.Caret.Right /> | ||
</> | ||
) | ||
} | ||
</Align.Space> | ||
</Align.Space> | ||
</Align.Space> | ||
|
||
<style is:global> | ||
.next-prev { | ||
margin: 8rem 0; | ||
|
||
.link { | ||
cursor: pointer; | ||
&:hover { | ||
text-decoration: none !important; | ||
.pluto-text { | ||
color: var(--pluto-gray-l10); | ||
} | ||
.synnax-icon { | ||
color: var(--pluto-gray-l10); | ||
transform: scale(1.2) !important; | ||
} | ||
} | ||
} | ||
|
||
.pluto-text { | ||
color: var(--pluto-gray-l7); | ||
font-weight: 400; | ||
} | ||
.synnax-icon { | ||
transition: all 0.2s ease; | ||
color: var(--pluto-gray-l7); | ||
width: 3rem; | ||
height: 3rem; | ||
} | ||
} | ||
</style> |
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,7 @@ | ||
--- | ||
import { Breadcrumb as B } from "@synnaxlabs/pluto"; | ||
const { url } = Astro.props; | ||
console.log(url); | ||
--- | ||
|
||
<B.URL hideFirst level="small" url={url.slice(1)} separator="/" /> |
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,3 @@ | ||
--- | ||
return Astro.rewrite("/reference/cluster/quick-start"); | ||
--- |
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
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,3 @@ | ||
--- | ||
return Astro.rewrite("/reference/concepts/overview"); | ||
--- |
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
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,3 @@ | ||
--- | ||
return Astro.rewrite("/reference/console/get-started"); | ||
--- |
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
Oops, something went wrong.