{title}
{theme=="dark" && diff --git a/app/_components/(workshop)/link-preview/link-preview.module.scss b/app/_components/(workshop)/link-preview/link-preview.module.scss index 64bf5dc..f58c6d0 100644 --- a/app/_components/(workshop)/link-preview/link-preview.module.scss +++ b/app/_components/(workshop)/link-preview/link-preview.module.scss @@ -40,7 +40,7 @@ img { border-radius: 16px; - background-color: rgba(0, 0, 0, 0.5); + //background-color: rgba(0, 0, 0, 0.5); } } diff --git a/app/_components/(workshop)/materials-lessons/materialsLessons.jsx b/app/_components/(workshop)/materials-lessons/materialsLessons.jsx index 4ad1ff6..1f8c21d 100644 --- a/app/_components/(workshop)/materials-lessons/materialsLessons.jsx +++ b/app/_components/(workshop)/materials-lessons/materialsLessons.jsx @@ -4,12 +4,16 @@ import Image from 'next/image' import styles from './materialsLessons.module.scss' import Lesson from './lessonCard' -import Demo1 from '@/_demos/demo1' -import Inspect from '@/_demos/inspect' +import FlexDemo from '@/_demos/flex' +import InspectDemo from '@/_demos/inspect' +import MapDemo from '@/_demos/map' +import StateDemo from '@/_demos/state' const componentMap = { - Demo1:
diff --git a/app/_demos/inspect.module.scss b/app/_demos/inspect.module.scss
index 9f53af3..f167a82 100644
--- a/app/_demos/inspect.module.scss
+++ b/app/_demos/inspect.module.scss
@@ -1,5 +1,5 @@
.big_box {
- width: 100%;
+ width: 80%;
aspect-ratio: 1.5;
display: flex;
@@ -7,7 +7,9 @@
justify-content: center;
align-items: center;
gap: 10px;
- padding: 20px;
+ padding: 10px;
+ margin-left: 50px;
+ margin-right: 20px;
background-color: lightgoldenrodyellow;
}
diff --git a/app/_demos/map.jsx b/app/_demos/map.jsx
new file mode 100644
index 0000000..959fd70
--- /dev/null
+++ b/app/_demos/map.jsx
@@ -0,0 +1,21 @@
+import styles from './map.module.scss'
+
+const apples = ["Granny Smith", "Fuji", "Gala"]
+
+export default function MapDemo(){
+ return (
+ {"Given an array, apples=[\'Granny Smith\', \'Fuji\', \'Gala\'], you can use map to generate an array of UIs for each apple in the array"}
+{count}
+