Skip to content

Commit ebec6a6

Browse files
committed
Pt. 1
1 parent dd92490 commit ebec6a6

File tree

3 files changed

+32
-38
lines changed

3 files changed

+32
-38
lines changed

components/TextBox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ export const TextBox = ({
2121
}: {
2222
title: string;
2323
code: string;
24-
editor?: Dispatch<SetStateAction<string>> | ((config: string) => void);
24+
editor?: Dispatch<SetStateAction<string>>;
2525
language: string;
2626
}) => {
2727
if (!editor) {
2828
return (
2929
<div css={tw`flex flex-col h-full w-full pt-1 text-white`}>
30-
<div css={tw`flex flex-row pl-8`}>
30+
<div css={tw`flex flex-row pl-2`}>
3131
<p css={tw`text-xl font-semibold mx-auto mb-2`}>{title}</p>
32-
<div css={tw`flex flex-row h-8 w-8`}>
32+
<div css={tw`flex flex-row h-8`}>
3333
<div
3434
css={tw`py-1 px-2 bg-green-400 rounded-md hover:cursor-pointer`}
3535
onClick={() => {

pages/_app.tsx

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -66,42 +66,44 @@ function Toolbox({ Component, pageProps }: AppProps) {
6666
css={tw`text-white w-full md:px-8 p-2 h-14 flex flex-row text-white md:px-12`}
6767
>
6868
<div css={tw`flex flex-row w-full`}>
69-
<div css={tw`flex flex-row`}>
70-
<div css={tw`my-auto`}>
71-
<FontAwesomeIcon icon={faToolbox} size={"2x"} />
72-
</div>
73-
<div css={tw`ml-2 my-auto font-bold text-center`}>
74-
<p
75-
css={css`
76-
margin-bottom: -0.2rem;
77-
`}
78-
>
79-
HelpChat
80-
</p>
81-
<p
82-
css={css`
83-
margin-top: -0.2rem;
84-
${tw`text-xs`}
85-
`}
86-
>
87-
ToolBox
88-
</p>
69+
<Link href={"/"} passHref>
70+
<div css={tw`flex flex-row hover:cursor-pointer`}>
71+
<div css={tw`my-auto`}>
72+
<FontAwesomeIcon icon={faToolbox} size={"2x"} />
73+
</div>
74+
<div css={tw`ml-2 my-auto font-bold text-center`}>
75+
<p
76+
css={css`
77+
margin-bottom: -0.2rem;
78+
`}
79+
>
80+
HelpChat
81+
</p>
82+
<p
83+
css={css`
84+
margin-top: -0.2rem;
85+
${tw`text-xs`}
86+
`}
87+
>
88+
ToolBox
89+
</p>
90+
</div>
8991
</div>
90-
</div>
92+
</Link>
9193
<div css={tw`flex flex-row flex-grow flex-shrink`}>
92-
<Link href={"/"}>
94+
<Link href={"/"} passHref>
9395
<p
9496
css={tw`px-3 mx-1 py-2 my-auto ml-auto hover:cursor-pointer`}
9597
>
9698
Home
9799
</p>
98100
</Link>
99-
<Link href={"https://www.spigotmc.org/members/helpchat.1491649/"}>
101+
<Link href={"https://www.spigotmc.org/members/helpchat.1491649/"} passHref>
100102
<p css={tw`px-3 mx-1 py-2 my-auto hover:cursor-pointer`}>
101103
Spigot
102104
</p>
103105
</Link>
104-
<Link href={"https://github.com/HelpChat"}>
106+
<Link href={"https://github.com/HelpChat"} passHref>
105107
<p css={tw`px-3 mx-1 py-2 my-auto hover:cursor-pointer`}>
106108
Github
107109
</p>
@@ -130,7 +132,7 @@ function Toolbox({ Component, pageProps }: AppProps) {
130132
if (Array.isArray(Tools[key])) {
131133
(Tools[key] as ToolboxTool[]).forEach((tool) => {
132134
children.push(
133-
<Link href={tool.link} key={tool.short}>
135+
<Link href={tool.link} key={tool.short} passHref>
134136
<p
135137
css={tw`px-3 ml-2 pt-3 pb-1 hover:cursor-pointer`}
136138
>
@@ -147,7 +149,7 @@ function Toolbox({ Component, pageProps }: AppProps) {
147149
key1
148150
].forEach((tool) => {
149151
children.push(
150-
<Link href={tool.link} key={tool.short}>
152+
<Link href={tool.link} key={tool.short} passHref>
151153
<p
152154
css={tw`px-3 ml-3 pt-3 pb-1 hover:cursor-pointer`}
153155
>
@@ -182,7 +184,7 @@ function Toolbox({ Component, pageProps }: AppProps) {
182184
})}
183185
</div>
184186
</div>
185-
<Link href={"https://discord.gg/helpchat"}>
187+
<Link href={"https://discord.gg/helpchat"} passHref>
186188
<p
187189
css={tw`px-3 mx-1 py-2 my-auto hover:cursor-pointer bg-white text-black rounded-md`}
188190
>
@@ -198,11 +200,4 @@ function Toolbox({ Component, pageProps }: AppProps) {
198200
);
199201
}
200202

201-
type ColorSplotch = {
202-
color: string;
203-
size: number;
204-
x: number;
205-
y: number;
206-
};
207-
208203
export default Toolbox;

tailwind.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = {
1414
indigo: colors.indigo,
1515
yellow: colors.yellow,
1616
green: colors.green,
17-
purple: colors.purple,
1817
},
1918
},
2019
};

0 commit comments

Comments
 (0)