Skip to content

Commit 1e00d08

Browse files
committed
eeeeeeeee
1 parent 0c87b75 commit 1e00d08

File tree

9 files changed

+73
-9
lines changed

9 files changed

+73
-9
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# SimpleModBot Dashboard
2-
I will update this later.
2+
3+
## Someone should add something here!!! -@Stanford47

src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { FourOhFour, About } from './pages/other';
88

99
import { Home } from './pages/Home';
1010
import { Menu } from './pages/Menu';
11+
import { Docs } from './pages/Docs';
1112

1213
import { User, CacheUser, CacheGuild, CacheAdditional } from './pages/user';
1314

@@ -28,6 +29,7 @@ function App() {
2829
<Route path='/*' element={<FourOhFour />} />
2930
<Route path='/menu' element={<Menu />} />
3031
<Route path='/about' element={<About />} />
32+
<Route path="/docs" element={<Docs />} />
3133

3234
<Route path='/user' element={<User />} />
3335
<Route path='/user/cache/user' element={<CacheUser />} />
@@ -45,7 +47,9 @@ function App() {
4547
<Route path='/guild/updatecc' element={<EditCC />} />
4648
<Route path='/guild/delcc' element={<DeleteCC />} />
4749
<Route path='/guild/listcc' element={<ListCC />} />
50+
4851
</Routes>
52+
4953
</React.StrictMode>
5054
);
5155
}

src/components/Appbar.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ export const Appbar = () => {
5252
src={`https://cdn.discordapp.com/icons/${cguild.id}/${cguild.icon}.webp?size=128`}
5353
alt='guild-icon'
5454
></img>
55-
<Link to='/menu' id='1' style={{ fontSize: '20px', padding: '1px 0px' }}>
55+
<Link to='/menu' id='1' style={{ fontSize: '17px', paddingLeft: '15px', textAlign: 'right'}}>
5656
Configuring {cguild.name}
5757
</Link>
5858

59-
<Link to='/' id='home' style={{ position: 'relative', left: `0px`, padding: '1px 0px' }}>
59+
<Link to='/' id='home' style={{ position: 'relative', justifySelf: 'center', padding: '1px 0px',}}>
6060
Home
6161
</Link>
6262

63-
<Link to='/user/' style={{ fontSize: '20px', marginLeft: 'auto', padding: '1px 0px' }}>
63+
<Link to='/user/' style={{ fontSize: '17px', marginLeft: 'auto', paddingRight: '15px', textAlign: 'left' }}>
6464
{cuser.username}
6565
</Link>
6666
<img
@@ -72,7 +72,8 @@ export const Appbar = () => {
7272
justifySelf: 'right',
7373
}}
7474
src={`https://cdn.discordapp.com/avatars/${cuser.id}/${cuser.avatar}.png?size=128`}
75-
alt='user-icon'
75+
alt='????'
76+
7677
></img>
7778
</div>
7879
);

src/components/UserBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const Userbar = () => {
4141
Home
4242
</Link>
4343

44-
<Link to='/user/' style={{ fontSize: '20px', marginLeft: 'auto', padding: '1px 0px' }}>
44+
<Link to='/user/' style={{ fontSize: '17px', marginLeft: 'auto', paddingRight: '15px', textAlign: 'left' }}>
4545
{cuser.username}
4646
</Link>
4747
<img

src/index.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
body {
44
margin: 0;
55
color: whitesmoke;
6-
background-color: #2a3344;
6+
background-color: #1a202b;
77
opacity: 0.9;
88
height: 100%;
99
font-family: "PT Sans", sans-serif;
@@ -21,10 +21,23 @@ a {
2121
}
2222

2323
a:visited {
24-
color: #5757e7
24+
color: whitesmoke;
2525
}
2626

2727
a:hover {
2828
transition-duration: 250ms;
2929
text-decoration: underline;
30+
}
31+
32+
/* Highlight text */
33+
@keyframes id-target-highlight {
34+
0% { background-color: rgba(255,255,255,0.8); }
35+
100% { background-color: rgba(255,255,255,0); }
36+
}
37+
38+
:target {
39+
animation-name: id-target-highlight;
40+
animation-iteration-count: 1;
41+
animation-duration: 1000ms;
42+
scroll-behavior: smooth;
3043
}

src/pages/Docs.tsx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { Appbar } from "../components/Appbar";
2+
import { InputField } from "../utils/styles";
3+
4+
export function Docs() {
5+
return (
6+
<div>
7+
<div className="searchContainer">
8+
9+
</div>
10+
<h1 style={{ textAlign: "center" }}>Documentation</h1>
11+
<div style={{
12+
maxWidth: "1000px",
13+
marginLeft: "25%"
14+
}}>
15+
<p style={{ textAlign: "center" }}>
16+
Do you want to learn about a command the SMB has?
17+
Maybe you want to know how a command works.
18+
Use this page to find out information about SimpleModBot's commands. Here, you can find
19+
<a href="#abc" style={{
20+
color: "#7265ff",
21+
}}> a list of all of the commands in alphabetical order
22+
</a>,
23+
</p>
24+
</div>
25+
<h2 id="abc" style={{
26+
textAlign: "center",
27+
width: "fit-content",
28+
margin: "auto",
29+
}}>Commands</h2>
30+
<div style={{
31+
display: "flex",
32+
}}>
33+
34+
</div>
35+
</div>
36+
);
37+
}

src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function Home() {
8181
</HomeButton>
8282
<HomeButton
8383
onClick={() => {
84-
window.location.href = 'https://discord.gg/49KeKwXc8g';
84+
window.open('https://discord.gg/49KeKwXc8g', '_blank');
8585
}}
8686
>
8787
<FaQuestionCircle size={45} />

src/pages/other.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function getRandom404Message() {
3535
'The requested page does not exist or is not implemented.',
3636
'Makefile > CMake',
3737
'Why does DEATH\'s keyboard scream at me??', // seriously wtf
38+
"Stanford47 still thinks that C++ is better than TS or JS. (can you stop removing this one pls :p)"
3839
];
3940

4041
return messages[~~(Math.random() * messages.length)];

src/pages/user.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,16 @@ export function CacheAdditional() {
233233
>
234234
Log out
235235
</TextButton>
236+
<TextButton>
237+
Disable Particles
238+
</TextButton>
236239
</Grid>
237240
</CategoryContainer>
238241
</Container>
242+
243+
<div>
244+
<a href='/'>Home</a>
245+
</div>
239246
</div>
240247
);
241248
}

0 commit comments

Comments
 (0)