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

Commit 0aa723b

Browse files
committed
fixed some styles
1 parent eae54d9 commit 0aa723b

File tree

25 files changed

+516
-517
lines changed

25 files changed

+516
-517
lines changed

docusaurus.config.js

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

src/components/buttons/GithubButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useHistory } from "react-router-dom";
44
import styles from "./styles.module.css";
55
import clsx from "clsx";
66

7-
export type Props = { to: string; className: string };
7+
export type Props = { to: string; className?: string };
88

99
const GithubButton: React.FC<Props> = (props) => {
1010
const { to, className } = props;
@@ -22,7 +22,7 @@ const GithubButton: React.FC<Props> = (props) => {
2222
}}
2323
>
2424
<FaGithub className={styles.GithubIcon} />
25-
<div>GITHUB</div>
25+
<div className={styles.Text}>GITHUB</div>
2626
</button>
2727
);
2828
};

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@
2121
}
2222

2323
.ButtonContainer:hover {
24-
background-color: var(--ifm-color-surface-2);
25-
}
24+
background-color: var(--ifm-color-surface-2);
25+
}
2626

2727
.GithubIcon {
28-
margin-right: 5px;
28+
margin-right: 10px;
29+
}
30+
31+
.Text {
32+
margin-top: 3px;
2933
}

src/components/buttons/PrimaryButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useHistory } from "react-router-dom";
33
import styles from "./styles.module.css";
44
import clsx from "clsx";
55

6-
export type Props = { to: string; className: string };
6+
export type Props = { to: string; className?: string };
77

88
const PrimaryButton: React.FC<Props> = (props) => {
99
const { to, children, className } = props;
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;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.Embed {
2+
width: 100%;
3+
height: 500px;
4+
border: 0;
5+
border-radius: 4px;
6+
overflow: hidden;
7+
border-color: var(--ifm-color-primary);
8+
}

src/components/other/HeaderTyper/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const HeaderTyper: React.FC<Props> = (props) => {
4343
<div className={styles.Container}>
4444
<div className={styles.Text}>{text}</div>
4545
<div
46-
className={clsx(styles.Cursor, !isTyping ? styles.Cursor_Blink : "")}
46+
className={clsx(styles.Cursor, {
47+
[styles.Cursor_Blink]: !isTyping,
48+
})}
4749
/>
4850
</div>
4951
);
Lines changed: 45 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,67 @@
11
.Container {
2-
display: flex;
3-
flex-direction: row;
4-
align-items: center;
5-
justify-content: flex-start;
6-
height: 5rem;
2+
display: flex;
3+
flex-direction: row;
4+
align-items: center;
5+
justify-content: flex-start;
6+
height: 5rem;
77
}
88

99
.Text {
10-
color: var(--ifm-navbar-link-color);
11-
font-size: 4rem;
12-
font-weight: bold;
10+
color: var(--ifm-navbar-link-color);
11+
font-size: 4rem;
12+
font-weight: bold;
1313
}
1414

1515
.Cursor {
16-
background-color: var(--ifm-navbar-link-active-color);
17-
margin-left: 10px;
18-
margin-top: 10px;
16+
background-color: var(--ifm-navbar-link-active-color);
17+
margin-left: 10px;
18+
margin-top: 10px;
1919

20-
width: 0.6rem;
21-
height: 4rem;
20+
width: 0.6rem;
21+
height: 4rem;
2222
}
2323

2424
.Cursor_Blink {
25-
-webkit-animation: blink 0.8s infinite;
25+
-webkit-animation: blink 0.8s infinite;
2626
}
2727

2828
@-webkit-keyframes blink {
29-
0% {
30-
background: transparent;
31-
}
32-
50% {
33-
background: var(--ifm-navbar-link-active-color);
34-
}
35-
100% {
36-
background: transparent;
37-
}
29+
0% {
30+
background: transparent;
31+
}
32+
50% {
33+
background: var(--ifm-navbar-link-active-color);
34+
}
35+
100% {
36+
background: transparent;
37+
}
3838
}
3939

4040
@keyframes blink {
41-
0% {
42-
background: transparent;
43-
}
44-
50% {
45-
background: var(--ifm-navbar-link-active-color);
46-
}
47-
100% {
48-
background: transparent;
49-
}
41+
0% {
42+
background: transparent;
43+
}
44+
50% {
45+
background: var(--ifm-navbar-link-active-color);
46+
}
47+
100% {
48+
background: transparent;
49+
}
5050
}
5151

52-
5352
@media (max-width: 768px) {
54-
.Text {
55-
font-size: 2rem;
56-
}
53+
.Container {
54+
height: 2rem;
55+
}
56+
57+
.Text {
58+
font-size: 2rem;
59+
}
5760

58-
.Cursor {
59-
height: 2rem;
60-
width: 0.3rem;
61-
margin-left: 5px;
62-
margin-top: 5px;
63-
}
61+
.Cursor {
62+
height: 2rem;
63+
width: 0.3rem;
64+
margin-left: 5px;
65+
margin-top: 5px;
66+
}
6467
}

0 commit comments

Comments
 (0)