Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Nov 12, 2024
1 parent 2cb13cc commit fd4559f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions component/CodeSandbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const CodeSandbox = ({
'?fontsize=14&hidenavigation=1&theme=dark&expanddevtools=0&view=split' +
(fileToOpen ? `&module=/${fileToOpen}` : '');

console.log('rerendeeeerrrrr');

return (
<iframe
src={url}
Expand Down
2 changes: 1 addition & 1 deletion pages/course/svg/introduction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ const exercices: Exercise[] = [
<p>
Add some <b>inline style</b> to the svg area below. Use the{' '}
<code>backgroundColor</code>
property to change the background to <code>yellow</code>.
property to change the background to <code>grey</code>.
</p>
</>
),
Expand Down
2 changes: 1 addition & 1 deletion viz/exercise/SvgThreeCirclesPractice/SvgDrawing.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const SvgDrawing = () => {
return (
<svg width={500} height={300}>
<svg width={300} height={300}>
{/* circles goes here */}
</svg>
);
Expand Down
4 changes: 2 additions & 2 deletions viz/exercise/SvgThreeCirclesSolution/SvgDrawing.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const SvgDrawing = () => {
return (
<svg width={500} height={300}>
<svg width={300} height={300}>
<circle cx={20} cy={20} r={25} fill="red" />
<circle cx={500 - 19} cy={500 - 19} r={25} fill="blue" />
<circle cx={300 - 19} cy={300 - 19} r={25} fill="blue" />
<circle cx={43} cy={300 - 12} r={25} fill="pink" />
</svg>
);
Expand Down

0 comments on commit fd4559f

Please sign in to comment.