Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit b4dd5f8

Browse files
committed
fixed borken links
1 parent 0aa723b commit b4dd5f8

File tree

9 files changed

+19
-17
lines changed

9 files changed

+19
-17
lines changed

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const customFields = {
1313
twitterUrl: "https://twitter.com/AgileFramework",
1414
version: "0.0.1",
1515
announcementBarContent:
16-
'⭐️ If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="/agile-ts/agile">GitHub</a>! ⭐️',
16+
'If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="/agile-ts/agile">GitHub</a> 🎉 !️',
1717
};
1818

1919
const config = {

src/components/buttons/GithubButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ const GithubButton: React.FC<Props> = (props) => {
1515
className={clsx(styles.ButtonContainer, className)}
1616
onClick={() => {
1717
if (to.startsWith("http")) {
18-
window.location.href = to;
18+
window.open(to, "_blank");
1919
return;
2020
}
2121
history.push(to);
2222
}}
2323
>
2424
<FaGithub className={styles.GithubIcon} />
25-
<div className={styles.Text}>GITHUB</div>
25+
<div>GITHUB</div>
2626
</button>
2727
);
2828
};

src/components/buttons/GithubButton/styles.module.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,3 @@
2727
.GithubIcon {
2828
margin-right: 10px;
2929
}
30-
31-
.Text {
32-
margin-top: 3px;
33-
}

src/components/buttons/PrimaryButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const PrimaryButton: React.FC<Props> = (props) => {
1414
className={clsx(styles.ButtonContainer, className)}
1515
onClick={() => {
1616
if (to.startsWith("http")) {
17-
window.location.href = to;
17+
window.open(to, "_blank");
1818
return;
1919
}
2020
history.push(to);

src/css/custom.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
--ifm-color-black-light: #202026;
1616
--ifm-color-black-lighter: #2a2a32;
1717
--ifm-color-white: #ffffff;
18-
--ifm-color-white-dark: #e6e6fd;
19-
--ifm-color-white-darker: #c5c5e9;
18+
--ifm-color-white-dark: #f0f0fd;
19+
--ifm-color-white-darker: #e6e6fd;
20+
--ifm-color-white-darkest: #c5c5e9;
2021
--ifm-color-purple-lightest: #9c9abf;
2122
--ifm-color-purple-lighter: #8481af;
2223
--ifm-color-purple-light: #7c79aa;
@@ -50,8 +51,8 @@
5051
--ifm-color-on-background-3: var(--ifm-color-purple-dark);
5152

5253
// Surface
53-
--ifm-color-surface: var(--ifm-color-white-dark);
54-
--ifm-color-surface-2: var(--ifm-color-white-darker);
54+
--ifm-color-surface: var(--ifm-color-white-darker);
55+
--ifm-color-surface-2: var(--ifm-color-white-darkest);
5556
--ifm-color-on-surface: var(--ifm-color-black);
5657
--ifm-color-on-surface-2: var(--ifm-color-purple-darkest);
5758
--ifm-color-on-surface-3: var(--ifm-color-purple-darker);

src/pages/LandingPage/components/HeaderView/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ const HeaderView: React.FC = () => {
3838
</div>
3939
<Spacer height={50} />
4040
<div className={styles.ButtonContainer}>
41-
<PrimaryButton className={styles.GetStartedButton} to={"/docs"}>
41+
<PrimaryButton
42+
className={styles.GetStartedButton}
43+
to={"/docs/introduction"}
44+
>
4245
GET STARTED
4346
</PrimaryButton>
4447
<GithubButton

src/theme/Footer/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const Footer = () => {
2727
<footer className={clsx("footer", styles.Container)}>
2828
<div className={styles.Inner}>
2929
<div className={styles.ContentContainer}>
30+
{/*Footer Left */}
3031
<div className={styles.FooterLeft}>
3132
<div className={styles.BrandContainer}>
3233
<img
@@ -39,14 +40,14 @@ const Footer = () => {
3940
/>
4041
<div className={styles.BrandText}>AgileTs</div>
4142
</div>
42-
4343
<div className={styles.Tagline}>{siteConfig.tagline}</div>
44-
4544
<GithubButton
4645
className={styles.GithubButton}
4746
to={siteConfig.themeConfig.githubUrl}
4847
/>
4948
</div>
49+
50+
{/* Footer Quick Links (Right) */}
5051
<div className={styles.FooterRight}>
5152
{links.map((linkItem, i) => (
5253
<div className={styles.SectionContainer} key={i}>

src/theme/Footer/styles.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
}
6565

6666
.GithubButton {
67-
justify-self: start;
68-
font-size: 12px;
67+
justify-self: start !important;
68+
font-size: 12px !important;
6969
}
7070

7171
.SectionContainer {

src/theme/Navbar/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
:global(.navbar__link),
2121
:global(.dropdown__link) {
2222
font-size: var(--ifm-font-size-base);
23+
font-weight: normal;
2324
}
2425

2526
:global(.navbar-sidebar__brand) {

0 commit comments

Comments
 (0)