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

Commit fc2a3b6

Browse files
committed
Merge remote-tracking branch 'origin/css-modules' into develop
# Conflicts: # src/components/buttons/GithubButton.tsx # src/components/buttons/PrimaryButton.tsx # src/pages/LandingPage/components/HeaderView/index.tsx # src/theme/Footer/index.tsx
2 parents 54db1ac + bfc1619 commit fc2a3b6

File tree

42 files changed

+1805
-1758
lines changed

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

+1805
-1758
lines changed

docusaurus.config.js

Lines changed: 3 additions & 2 deletions
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="/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 = {
@@ -112,6 +112,7 @@ const config = {
112112
],
113113
},
114114
footer: {
115+
copyright: customFields.copyright,
115116
style: "dark",
116117
copyright: customFields.copyright,
117118
links: [

package.json

Lines changed: 2 additions & 2 deletions
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

Lines changed: 0 additions & 109 deletions
This file was deleted.

src/components/buttons/GithubButton.tsx

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
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;
Lines changed: 29 additions & 0 deletions
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

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
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;
Lines changed: 21 additions & 0 deletions
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+
}
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import React from "react";
2-
import styled from "styled-components";
2+
import styles from "./styles.module.css";
33

44
export type Props = { uri: string };
55

66
const CodeSandBoxEmbed: React.FC<Props> = (props) => {
77
const { uri } = props;
88

99
return (
10-
<Embed
10+
<iframe
11+
className={styles.Embed}
1112
src={`https://codesandbox.io/embed/${uri}?fontsize=14&hidenavigation=0&theme=light&view=preview`}
1213
title={"Code Sandbox"}
1314
allow={
@@ -20,13 +21,4 @@ const CodeSandBoxEmbed: React.FC<Props> = (props) => {
2021
);
2122
};
2223

23-
const Embed = styled.iframe`
24-
width: 100%;
25-
height: 500px;
26-
border: 0;
27-
border-radius: 4px;
28-
overflow: hidden;
29-
border-color: var(--ifm-color-primary);
30-
`;
31-
3224
export default CodeSandBoxEmbed;

0 commit comments

Comments
 (0)