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

Develop #36

Merged
merged 8 commits into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const githubOrgUrl = "https://github.com/agile-ts";
const domain = "https://agile-ts.org";

const customFields = {
copyright: `Created with 💜 in Germany | Copyright © ${new Date().getFullYear()} BennoDev`,
copyright: `Created with 💜 in Germany | Copyright © ${new Date().getFullYear()} <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/DevBenno">BennoDev</a>`,
description: "AgileTs is a spacy, fast, simple State Management Framework",
domain,
githubOrgUrl,
Expand All @@ -13,7 +13,7 @@ const customFields = {
twitterUrl: "https://twitter.com/AgileFramework",
version: "0.0.1",
announcementBarContent:
'⭐️ If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/agile-ts/agile">GitHub</a>! ⭐️',
'If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/agile-ts/agile">GitHub</a> 🎉 !️',
};

const config = {
Expand Down Expand Up @@ -112,7 +112,9 @@ const config = {
],
},
footer: {
copyright: customFields.copyright,
style: "dark",
copyright: customFields.copyright,
links: [
{
title: "Docs",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"install-docusaurus": "yalc add @docusaurus/core & yarn install"
},
"dependencies": {
"@agile-ts/core": "0.0.10",
"@agile-ts/react": "0.0.10",
"@agile-ts/core": "0.0.11",
"@agile-ts/react": "0.0.11",
"@docusaurus/core": "^2.0.0-alpha.70",
"@docusaurus/module-type-aliases": "^2.0.0-alpha.70",
"@docusaurus/preset-classic": "^2.0.0-alpha.70",
Expand Down
109 changes: 0 additions & 109 deletions src/components/HeaderTyper/index.tsx

This file was deleted.

59 changes: 0 additions & 59 deletions src/components/buttons/GithubButton.tsx

This file was deleted.

30 changes: 30 additions & 0 deletions src/components/buttons/GithubButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from "react";
import { FaGithub } from "react-icons/all";
import { useHistory } from "react-router-dom";
import styles from "./styles.module.css";
import clsx from "clsx";

export type Props = { to: string; className?: string };

const GithubButton: React.FC<Props> = (props) => {
const { to, className } = props;
const history = useHistory();

return (
<button
className={clsx(styles.ButtonContainer, className)}
onClick={() => {
if (to.startsWith("http")) {
window.open(to, "_blank");
return;
}
history.push(to);
}}
>
<FaGithub className={styles.GithubIcon} />
<div>GITHUB</div>
</button>
);
};

export default GithubButton;
29 changes: 29 additions & 0 deletions src/components/buttons/GithubButton/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.ButtonContainer {
color: var(--ifm-color-on-surface);
background-color: var(--ifm-color-surface);

border-radius: 3px;
border: none;

font-size: var(--ifm-font-size-18);
font-weight: bold;

cursor: pointer;

display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 15px 30px;
box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);

transition: 0.3s ease all;
}

.ButtonContainer:hover {
background-color: var(--ifm-color-surface-2);
}

.GithubIcon {
margin-right: 10px;
}
49 changes: 0 additions & 49 deletions src/components/buttons/PrimaryButton.tsx

This file was deleted.

28 changes: 28 additions & 0 deletions src/components/buttons/PrimaryButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react";
import { useHistory } from "react-router-dom";
import styles from "./styles.module.css";
import clsx from "clsx";

export type Props = { to: string; className?: string };

const PrimaryButton: React.FC<Props> = (props) => {
const { to, children, className } = props;
const history = useHistory();

return (
<button
className={clsx(styles.ButtonContainer, className)}
onClick={() => {
if (to.startsWith("http")) {
window.open(to, "_blank");
return;
}
history.push(to);
}}
>
{children}
</button>
);
};

export default PrimaryButton;
21 changes: 21 additions & 0 deletions src/components/buttons/PrimaryButton/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.ButtonContainer {
color: var(--ifm-color-on-primary);
background-color: var(--ifm-color-primary);
border-radius: 3px;
border: none;

font-size: var(--ifm-font-size-18);
font-weight: bold;

cursor: pointer;

padding: 15px 30px;
align-items: center;
justify-content: center;

transition: 0.3s ease all;
}

.ButtonContainer:hover {
background-color: var(--ifm-color-primary-lighter);
}
Loading