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

Commit abaaf2c

Browse files
authored
Merge pull request #36 from agile-ts/develop
Develop
2 parents 4e813c8 + fc2a3b6 commit abaaf2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1806
-1758
lines changed

docusaurus.config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const githubOrgUrl = "https://github.com/agile-ts";
22
const domain = "https://agile-ts.org";
33

44
const customFields = {
5-
copyright: `Created with 💜 in Germany | Copyright © ${new Date().getFullYear()} BennoDev`,
5+
copyright: `Created with 💜 in Germany | Copyright © ${new Date().getFullYear()} <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/DevBenno">BennoDev</a>`,
66
description: "AgileTs is a spacy, fast, simple State Management Framework",
77
domain,
88
githubOrgUrl,
@@ -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="https://github.com/agile-ts/agile">GitHub</a>! ⭐️',
16+
'If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/agile-ts/agile">GitHub</a> 🎉 !️',
1717
};
1818

1919
const config = {
@@ -112,7 +112,9 @@ const config = {
112112
],
113113
},
114114
footer: {
115+
copyright: customFields.copyright,
115116
style: "dark",
117+
copyright: customFields.copyright,
116118
links: [
117119
{
118120
title: "Docs",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"install-docusaurus": "yalc add @docusaurus/core & yarn install"
1414
},
1515
"dependencies": {
16-
"@agile-ts/core": "0.0.10",
17-
"@agile-ts/react": "0.0.10",
16+
"@agile-ts/core": "0.0.11",
17+
"@agile-ts/react": "0.0.11",
1818
"@docusaurus/core": "^2.0.0-alpha.70",
1919
"@docusaurus/module-type-aliases": "^2.0.0-alpha.70",
2020
"@docusaurus/preset-classic": "^2.0.0-alpha.70",

src/components/HeaderTyper/index.tsx

-109
This file was deleted.

src/components/buttons/GithubButton.tsx

-59
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React from "react";
2+
import { FaGithub } from "react-icons/all";
3+
import { useHistory } from "react-router-dom";
4+
import styles from "./styles.module.css";
5+
import clsx from "clsx";
6+
7+
export type Props = { to: string; className?: string };
8+
9+
const GithubButton: React.FC<Props> = (props) => {
10+
const { to, className } = props;
11+
const history = useHistory();
12+
13+
return (
14+
<button
15+
className={clsx(styles.ButtonContainer, className)}
16+
onClick={() => {
17+
if (to.startsWith("http")) {
18+
window.open(to, "_blank");
19+
return;
20+
}
21+
history.push(to);
22+
}}
23+
>
24+
<FaGithub className={styles.GithubIcon} />
25+
<div>GITHUB</div>
26+
</button>
27+
);
28+
};
29+
30+
export default GithubButton;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.ButtonContainer {
2+
color: var(--ifm-color-on-surface);
3+
background-color: var(--ifm-color-surface);
4+
5+
border-radius: 3px;
6+
border: none;
7+
8+
font-size: var(--ifm-font-size-18);
9+
font-weight: bold;
10+
11+
cursor: pointer;
12+
13+
display: flex;
14+
flex-direction: row;
15+
align-items: center;
16+
justify-content: center;
17+
padding: 15px 30px;
18+
box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
19+
20+
transition: 0.3s ease all;
21+
}
22+
23+
.ButtonContainer:hover {
24+
background-color: var(--ifm-color-surface-2);
25+
}
26+
27+
.GithubIcon {
28+
margin-right: 10px;
29+
}

src/components/buttons/PrimaryButton.tsx

-49
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React from "react";
2+
import { useHistory } from "react-router-dom";
3+
import styles from "./styles.module.css";
4+
import clsx from "clsx";
5+
6+
export type Props = { to: string; className?: string };
7+
8+
const PrimaryButton: React.FC<Props> = (props) => {
9+
const { to, children, className } = props;
10+
const history = useHistory();
11+
12+
return (
13+
<button
14+
className={clsx(styles.ButtonContainer, className)}
15+
onClick={() => {
16+
if (to.startsWith("http")) {
17+
window.open(to, "_blank");
18+
return;
19+
}
20+
history.push(to);
21+
}}
22+
>
23+
{children}
24+
</button>
25+
);
26+
};
27+
28+
export default PrimaryButton;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.ButtonContainer {
2+
color: var(--ifm-color-on-primary);
3+
background-color: var(--ifm-color-primary);
4+
border-radius: 3px;
5+
border: none;
6+
7+
font-size: var(--ifm-font-size-18);
8+
font-weight: bold;
9+
10+
cursor: pointer;
11+
12+
padding: 15px 30px;
13+
align-items: center;
14+
justify-content: center;
15+
16+
transition: 0.3s ease all;
17+
}
18+
19+
.ButtonContainer:hover {
20+
background-color: var(--ifm-color-primary-lighter);
21+
}

0 commit comments

Comments
 (0)