Skip to content

Commit

Permalink
lint and remove basecard (will add in future pr)
Browse files Browse the repository at this point in the history
  • Loading branch information
acrantel committed Aug 30, 2023
1 parent e5dc253 commit 3a66853
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 72 deletions.
1 change: 0 additions & 1 deletion frontend2/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const router = createBrowserRouter([
return redirect(`/${params.episodeId as string}/home`);
},
},
{ path: "/:episodeId/quickstart", element: <QuickStart /> },
{ path: "/:episodeId/*", element: <NotFound /> },
{ path: "/:episodeId/rankings", element: <Rankings /> },
],
Expand Down
28 changes: 0 additions & 28 deletions frontend2/src/components/BaseCard.tsx

This file was deleted.

1 change: 0 additions & 1 deletion frontend2/src/components/DocumentationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Link } from "react-router-dom";

const isInternalLink = (to: string): boolean => {
const url = new URL(to, window.location.origin);
console.log(url, window.location.hostname);
return url.hostname === window.location.hostname;
};

Expand Down
2 changes: 1 addition & 1 deletion frontend2/src/components/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Sidebar: React.FC<SidebarProps> = ({ collapsed }) => {
const { episodeId } = useContext(EpisodeContext);

return collapsed ? null : (
<nav className="z-10 hidden fixed w-52 top-16 h-full flex-col gap-8 bg-gray-50 py-4 drop-shadow-[2px_0_2px_rgba(0,0,0,0.25)] sm:flex">
<nav className="fixed top-16 z-10 hidden h-full w-52 flex-col gap-8 bg-gray-50 py-4 drop-shadow-[2px_0_2px_rgba(0,0,0,0.25)] sm:flex">
<SidebarSection title="">
{generateSidebarItems(0, 2, episodeId)}
</SidebarSection>
Expand Down
48 changes: 10 additions & 38 deletions frontend2/src/content/bc23.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const BC23_QUICKSTART = `# Quick Start
export const BC23_QUICKSTART =
`This is the Battlecode 2023 contest website, which will be your main hub for all Battlecode-related things for the duration of the contest. For a general overview of what Battlecode is, visit [our landing page](https://battlecode.org/).
This is the Battlecode 2023 contest website, which will be your main hub for all Battlecode-related things for the duration of the contest. For a general overview of what Battlecode is, visit [our landing page](https://battlecode.org/).
## Create an account and team
Expand All @@ -22,20 +22,16 @@ If you're unsure how to install the JDK, you can find instructions for all opera
Next, you should download the [Battlecode 2023 scaffold](https://github.com/battlecode/battlecode23-scaffold). To get up and running quickly, you can click "Clone or download" and then "Download ZIP," and move on to the next step.
# Troubleshooting
`;
TODO: the rest of the page
export const BC23_RESOURCES =
`# Markdown syntax guide
`;

## Headers
export const BC23_RESOURCES = `# Markdown syntax guide
# This is a Heading h1
## This is a Heading h2
###### This is a Heading h6
## Emphasis
*This text will be italic*
_This will also be italic_
Expand All @@ -44,53 +40,29 @@ __This will also be bold__
_You **can** combine them_
## Lists
### Unordered
### Unordered List
* Item 1
* Item 2
* Item 2a
* Item 2b
### Ordered
### Ordered List
1. Item 1
1. Item 2
1. Item 3
1. Item 3a
1. Item 3b
## Images
![This is an alt text.](/image/sample.png "This is a sample image.")
## Links
![This is an alt text for an image.](/image/sample.png "This is a sample image.")
You may be using [Markdown Live Preview](https://markdownlivepreview.com/).
## Blockquotes
> Markdown is a lightweight markup language with plain-text-formatting syntax, created in 2004 by John Gruber with Aaron Swartz.
>
>> Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor.
## Tables
| Left columns | Right columns |
| ------------- |:-------------:|
| left foo | right foo |
| left bar | right bar |
| left baz | right baz |
## Blocks of code
[This links to example.com](https://example.com).
\`\`\`
let message = 'Hello world';
alert(message);
\`\`\`
## Inline code
This web site is using \`markedjs/marked\`.
this is \`an inline code block\`
`;
4 changes: 2 additions & 2 deletions frontend2/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@layer base {
h1 {
@apply pb-4 text-2xl font-medium text-gray-900;
@apply pb-4 text-3xl font-medium text-gray-900;
}
h2 {
@apply pb-4 pt-6 text-2xl font-medium text-gray-900;
Expand All @@ -26,7 +26,7 @@
@apply p-0;
}
pre {
@apply bg-gray-100 px-4 py-3 rounded;
@apply rounded bg-gray-100 px-4 py-3;
}
ul {
@apply ml-6 list-outside list-disc pb-4;
Expand Down
1 change: 0 additions & 1 deletion frontend2/src/views/QuickStart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ const QuickStart: React.FC = () => {
};

export default QuickStart;
// todo this file

0 comments on commit 3a66853

Please sign in to comment.