From 70a1f0a7e4c471ff3b0fa256cba4d7ea21329301 Mon Sep 17 00:00:00 2001
From: Hasan Rawjee <105398848+hasanrawjee@users.noreply.github.com>
Date: Mon, 12 Feb 2024 23:57:08 -0500
Subject: [PATCH 1/2] Basic changes
---
package.json | 4 ++--
src/pages/index.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/package.json b/package.json
index 34eaa32d..6fb661b2 100644
--- a/package.json
+++ b/package.json
@@ -11,10 +11,10 @@
"dependencies": {
"react": "^18",
"react-dom": "^18",
- "next": "13.5.4"
+ "next": "^13.5.4"
},
"devDependencies": {
"eslint": "^8",
"eslint-config-next": "13.5.4"
}
-}
+}
\ No newline at end of file
diff --git a/src/pages/index.js b/src/pages/index.js
index 69abbb64..118ab30a 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -2,12 +2,12 @@
// import Image from 'next/image'
// import { Inter } from 'next/font/google'
import styles from '@/styles/Home.module.css'
-import Profile from './components/profile'
+import Gallery from './components/gallery'
export default function Home() {
return (
-
Welcome to my website!
+
+
+
Welcome to my website!
+
+
+ You can find my thoughts here.
+
+ And pictures of people!
+
-
- You can find my thoughts here.
-
- And pictures of people!
-
);
}
\ No newline at end of file
diff --git a/src/pages/qcomps/firstcomp.js b/src/pages/qcomps/firstcomp.js
index 9cce715e..bcacd1de 100644
--- a/src/pages/qcomps/firstcomp.js
+++ b/src/pages/qcomps/firstcomp.js
@@ -1 +1,12 @@
-function MyComp() {}
\ No newline at end of file
+export default function MyComp() {
+ return (
+
+
My first component
+
+ - Components: UI Building Block
+ - Defining a Component
+ - Using a component
+
+
+ );
+}
\ No newline at end of file
diff --git a/src/pages/qcomps/gallery_props.js b/src/pages/qcomps/gallery_props.js
index fc118123..03cf50ec 100644
--- a/src/pages/qcomps/gallery_props.js
+++ b/src/pages/qcomps/gallery_props.js
@@ -1,55 +1,51 @@
+function Profile(props) {
+ return
+ {props.name}
+
+
+ -
+ Profession:
+ {props.profession}
+
+ -
+ Awards: {props.awardsCount}
+ {props.awardsList}
+
+ -
+ Discovered:
+ {props.discovered}
+
+
+
+}
export default function Gallery() {
return (
Notable Scientists
-
- Maria Skłodowska-Curie
-
-
- -
- Profession:
- physicist and chemist
-
- -
- Awards: 4
- (Nobel Prize in Physics, Nobel Prize in Chemistry, Davy Medal, Matteucci Medal)
-
- -
- Discovered:
- polonium (element)
-
-
-
-
- Katsuko Saruhashi
-
-
- -
- Profession:
- geochemist
-
- -
- Awards: 2
- (Miyake Prize for geochemistry, Tanaka Prize)
-
- -
- Discovered:
- a method for measuring carbon dioxide in seawater
-
-
-
+
+
);
}
diff --git a/src/pages/qcomps/profile_mistake.js b/src/pages/qcomps/profile_mistake.js
index ac318d70..b35fb3ad 100644
--- a/src/pages/qcomps/profile_mistake.js
+++ b/src/pages/qcomps/profile_mistake.js
@@ -1,4 +1,3 @@
export default function profile() {
- return
-

;
+ return

;
}
diff --git a/src/pages/qcomps/props_item.js b/src/pages/qcomps/props_item.js
index 79a9e151..02431694 100644
--- a/src/pages/qcomps/props_item.js
+++ b/src/pages/qcomps/props_item.js
@@ -1,8 +1,5 @@
function Item({ name, isPacked }) {
- if (isPacked) {
- return
{name} ✔;
- }
- return
{name}
+ return
{isPacked ? name : name}
}
export default function PackingList() {
diff --git a/src/pages/qcomps/todos.js b/src/pages/qcomps/todos.js
index 99713488..aff9b741 100644
--- a/src/pages/qcomps/todos.js
+++ b/src/pages/qcomps/todos.js
@@ -9,13 +9,13 @@ const person = {
}
};
-export default function TodoList() {
+export default function TodoList(props) {
return (
Person Name's Todos
);