Skip to content

Commit

Permalink
Chanegd the button style , removed green color prop from links and al…
Browse files Browse the repository at this point in the history
…so removed download button

Signed-off-by: NishantSinghhhhh <[email protected]>
  • Loading branch information
NishantSinghhhhh committed Oct 22, 2024
1 parent 80173aa commit 667fde2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/sections/Projects/Sistent/components/link/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ const codes = [
</SistentThemeProvider>`,

`<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Link
href="Your Path"
<Link href="Your Path"
style={{
textDecoration: "none",
color: "blue",
padding: "6px",
marginLeft: "10px",
}}
>
Customized Link 1
Colored Link
</Link>
</SistentThemeProvider>`,

Expand Down
18 changes: 15 additions & 3 deletions src/sections/Projects/Sistent/components/link/guidance.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import { navigate } from "gatsby";
import { useLocation } from "@reach/router";
import { Row } from "../../../../../reusecore/Layout";
import { Button, SistentThemeProvider, Link, ExternalLinkIcon} from "@layer5/sistent";
import { Button, SistentThemeProvider, Link, ExternalLinkIcon } from "@layer5/sistent";
import { SistentLayout } from "../../sistent-layout";

import TabButton from "../../../../../reusecore/Button";
Expand Down Expand Up @@ -90,7 +90,16 @@ export const LinkGuidancePage = () => {
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<StyledButton $primary $url="" className="button" $external={false}>
Get Started
<Link
href="https://layer5.io/projects/sistent/components/link/guidance" // Specify the path you want to navigate to
style={{
marginLeft: "10px",
textDecoration: "none",
padding: "6px",
}}
>
Get Started
</Link>
</StyledButton>
</SistentThemeProvider>
</Row>
Expand All @@ -109,14 +118,17 @@ export const LinkGuidancePage = () => {
textDecoration: "none",
padding: "6px",
cursor: "pointer",
display: "inline-flex",
alignItems: "center",
}}
onMouseEnter={(e) => (e.target.style.textDecoration = "underline")}
onMouseLeave={(e) => (e.target.style.textDecoration = "none")}
>
Visit External Resource <ExternalLinkIcon/>
Visit External Resource <ExternalLinkIcon />
</Link>
</SistentThemeProvider>
</Row>

<a id="Labeling">
<h2>Labeling</h2>
</a>
Expand Down
4 changes: 1 addition & 3 deletions src/sections/Projects/Sistent/components/link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const SistentLink = () => {
href="https://layer5.io/"
style={{
marginLeft: "10px",
color: "green",
padding: "6px",
}}
>
Expand Down Expand Up @@ -120,7 +119,6 @@ const SistentLink = () => {
style={{
marginLeft: "10px",
textDecoration: "underline",
color: "green",
padding: "6px",
}}
>
Expand All @@ -141,7 +139,7 @@ const SistentLink = () => {
style={{
marginLeft: "10px",
textDecoration: "underline",
color: "green",
color: "blue",
padding: "6px",
border: "2px solid green",
}}
Expand Down

0 comments on commit 667fde2

Please sign in to comment.