Skip to content

Commit

Permalink
FirstSteps::2 Made Exercise clearer; Made CodeBlock background darker…
Browse files Browse the repository at this point in the history
… to signify that you can write there; Added placeholder to CodeBlock
  • Loading branch information
LyonSyonII committed Nov 17, 2023
1 parent 5868d4d commit 5eaf847
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/codemirror-themes/github-light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { tags as t } from "@lezer/highlight";
export const config = {
name: "githubLight",
dark: false,
background: "#fff",
background: "#f5f5f5",
foreground: "#444d56",
selection: "#0366d625",
cursor: "#044289",
Expand Down
1 change: 1 addition & 0 deletions src/components/CodeBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
theme={$theme === "dark" ? githubDark : githubLight}
basic={showLineNumbers}
editable={!running}
placeholder="Enter your code here..."
/>

<button
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/first-steps/2-the-adventurers-guild.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function SimpleQuestion({
</QuestionCard>
);
}
export function FreeQuestion({ question, code, correct }) {
export function FreeQuestion({ question, code = "", correct }) {
const setup = `
if __VALUE__ {
println!("${correct}");
Expand Down

0 comments on commit 5eaf847

Please sign in to comment.