From 2ead93dbd5d532496622121cc87c89c4f1abd6c3 Mon Sep 17 00:00:00 2001 From: cssbubble Date: Tue, 17 May 2022 21:57:13 +0100 Subject: [PATCH 1/2] aspect ratio of images corrected, badges added --- learn.db | Bin 20480 -> 20480 bytes src/ItemDetail.svelte | 104 +++++++++++++++--------------------------- templates/index.html | 2 +- 3 files changed, 39 insertions(+), 67 deletions(-) diff --git a/learn.db b/learn.db index 9e94015876647de3c8180cf20ef3adf9f94a0207..5cdbd9ca6aa9f5592caf5bb3a4ae90d94896d1ac 100644 GIT binary patch delta 256 zcmZozz}T>WaRZBj7$@Ir2L4z4r}@|LPvFnu_v1I>=jMC8Sy132U%ebBo1r8xFKYKbp-&z@@KcliZGr2ebLh&*%FtBnzVc`46 zSHPRc^Njn+#>PwB%#HP|n_t>6GBUDEer?;%$h;WHVd7?*Tx#D9lw+Ly(&qmn2LS+! C6;k;C delta 110 zcmZozz}T>WaRZA2A1i+r1OF@j)BJ1rC-7%&78Ho!pPZ%d&dk8TFnNo8!`xWUvbfNek%^Ug@=Kd`MyAa`4iHQ(w(DNx GAOHaN#2|VA diff --git a/src/ItemDetail.svelte b/src/ItemDetail.svelte index 59a9569..74c92c7 100644 --- a/src/ItemDetail.svelte +++ b/src/ItemDetail.svelte @@ -6,7 +6,6 @@ .then(r => r.json()) .then(data => { item = data[itemid]; - console.log(item) }); @@ -16,55 +15,28 @@
- +
- -
-
-

{item.name}

-

Into Several Rmote Regions of the World

- {item.creator} -
- -
-
- ★★★★★ -
- 333 Ratings -
-
- - - - - - - - -
+
+

{item.name}

+

Into Several Rmote Regions of the World

+ {item.creator} +
+ +
+
+ ★★★★★ +
+ 333 Ratings +
+
+ Book + + Video
- -
-
- - -
- - -
@@ -76,8 +48,8 @@
-
-
+
+

genre

@@ -90,7 +62,7 @@ Fiction
-
+

released

1729 @@ -98,7 +70,7 @@ December 31
-
+

language

EN @@ -106,7 +78,7 @@ English
-
+

Length

209 @@ -114,14 +86,14 @@ Pages
-
+

Publisher


Public Domain
-
+

Size

310.4 @@ -170,7 +142,7 @@
- +

A Modest Proposal

@@ -181,7 +153,7 @@
- +

A Modest Proposal

@@ -192,7 +164,7 @@
- +

A Modest Proposal

@@ -203,7 +175,7 @@
- +

A Modest Proposal

@@ -214,7 +186,7 @@
- +

A Modest Proposal

@@ -225,7 +197,7 @@
- +

A Modest Proposal

@@ -236,7 +208,7 @@
- +

A Modest Proposal

@@ -257,49 +229,49 @@
- +
- +
- +
- +
- +
- +
- +
diff --git a/templates/index.html b/templates/index.html index 51e84e9..6317b7f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,5 @@ - + From 1b25390996c2843966cec18721d22a7566524e4a Mon Sep 17 00:00:00 2001 From: cssbubble Date: Thu, 19 May 2022 09:53:05 +0100 Subject: [PATCH 2/2] action button added --- db/items.csv | 10 ++++ learn.db | Bin 20480 -> 20480 bytes src/Button.svelte | 9 ++++ src/Explore.svelte | 5 -- src/Home.svelte | 6 +-- src/ItemCard.svelte | 10 ++-- src/ItemDetail.svelte | 92 +++++++++++++++++++++++++---------- src/TopicDetail.svelte | 2 +- src/TopicMasonryGrid.svelte | 2 +- src/WantToLearnButton.svelte | 18 +++++++ 10 files changed, 115 insertions(+), 39 deletions(-) create mode 100644 src/Button.svelte create mode 100644 src/WantToLearnButton.svelte diff --git a/db/items.csv b/db/items.csv index 73163f5..1387d42 100644 --- a/db/items.csv +++ b/db/items.csv @@ -4,3 +4,13 @@ sapiens no image,,,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3 sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history sapiens video image,,https://img.youtube.com/vi/p5PvHlk3yig/0.jpg,video|https://www.youtube.com/watch?v=p5PvHlk3yig,history;physics sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history +sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history +sapiens no image,,,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind,history +sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history +sapiens video image,,https://img.youtube.com/vi/p5PvHlk3yig/0.jpg,video|https://www.youtube.com/watch?v=p5PvHlk3yig,history;physics +sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history +sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history +sapiens no image,,,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind,history +sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history +sapiens video image,,https://img.youtube.com/vi/p5PvHlk3yig/0.jpg,video|https://www.youtube.com/watch?v=p5PvHlk3yig,history;physics +sapiens book image,,https://learn-awesome.github.io/assets/book_covers/23692271.jpg,book|https://learnawesome.org/items/6c2ef4c8-a018-430a-9173-3868310a03ea-sapiens-a-brief-history-of-humankind;video|https://www.youtube.com/watch?v=p5PvHlk3yig,history diff --git a/learn.db b/learn.db index 5cdbd9ca6aa9f5592caf5bb3a4ae90d94896d1ac..336f0a5a28fd328ae2c8b655bde042bcec6fdaae 100644 GIT binary patch delta 127 zcmZozz}T>WaRZBi5m-C4B|M&euC{7n+2;G%R1&Y8ynl0 znH%f*7Z=(xGO_YaereOr$h#THVPxc)Tx{3N$PJdM=YlBU1S{ZxC}0OGV1p=N1yP%y I+eiun0IweWaRZA1A1n702EKoM1-yAY&$yp#Y`nzH+*r@LxX_ky^K% + + + + + + + + \ No newline at end of file diff --git a/src/Explore.svelte b/src/Explore.svelte index 0dc6bc5..e69de29 100644 --- a/src/Explore.svelte +++ b/src/Explore.svelte @@ -1,5 +0,0 @@ - - -

Explore

\ No newline at end of file diff --git a/src/Home.svelte b/src/Home.svelte index ddee5b8..eca76a9 100644 --- a/src/Home.svelte +++ b/src/Home.svelte @@ -4,11 +4,11 @@

Coming soon - Data to enrich your - online business + LearnAwesome + Humanity's learning map

-

Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat fugiat aliqua ad ad non deserunt sunt.

+

Today's learning platforms are not actually learner-centric. They want the students to be locked within their apps & websites, learn ONLY from their own content and their own preferred formats. But the way we learn in 21st century is far too rich. We learn from blogs, podcasts, videos, tweetstorms, livestreams, games, newsletters, infographics, Q&A sites, forums and much more. Discovering the right kind of learning material for YOU at the right time is still too hard.

-
★ ★ ★ ★ ★
+ +
+ {item.name} +
+ ★ ★ ★ ★ ★
diff --git a/src/ItemDetail.svelte b/src/ItemDetail.svelte index 74c92c7..121fc34 100644 --- a/src/ItemDetail.svelte +++ b/src/ItemDetail.svelte @@ -1,4 +1,6 @@ + + +