From 0ff761a286886404f97e29e2fca9163985e79891 Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 1 Feb 2017 10:11:09 +0100 Subject: Add covers --- public/cover/EverWorld.gif | Bin 229690 -> 0 bytes public/cover/Le Livre de Perle.jpg | Bin 0 -> 51150 bytes public/cover/Le Manoir.jpg | Bin 0 -> 209232 bytes public/cover/Le Monde Secret de Sombreterre.jpg | Bin 0 -> 43923 bytes public/cover/Le Monde dans la main.jpg | Bin 0 -> 20894 bytes public/cover/Le Passage du diable.jpg | Bin 0 -> 198528 bytes public/cover/Le Premier qui pleure a perdu.jpg | Bin 0 -> 95636 bytes public/cover/Le Retour de Martin GUERRE.jpg | Bin 0 -> 27343 bytes public/cover/Le Singe de Hartlepool.jpg | Bin 0 -> 39688 bytes public/cover/Le Suivant sur la liste.jpg | Bin 0 -> 34755 bytes public/cover/Le Temps des miracles.jpg | Bin 0 -> 25498 bytes public/cover/Le Temps des mitaines.jpg | Bin 0 -> 110401 bytes public/cover/Le Voyage de Samson.jpg | Bin 0 -> 122943 bytes .../cover/Les Mondes de l\342\200\231Alliance.jpg" | Bin 0 -> 114906 bytes "public/cover/Les Myst\303\250res de LARISPEM.jpg" | Bin 0 -> 83010 bytes public/cover/Les Petites reines.jpg | Bin 0 -> 68566 bytes .../L\303\240 o\303\271 naissent les nuages.jpg" | Bin 0 -> 75986 bytes public/cover/Ma Raison de vivre.jpg | Bin 0 -> 74322 bytes "public/cover/Maestro\302\240!.jpg" | Bin 0 -> 21313 bytes "public/cover/Maestro\302\240!.png" | Bin 0 -> 576600 bytes public/cover/Malenfer.jpg | Bin 0 -> 110320 bytes public/cover/Max.jpg | Bin 0 -> 855789 bytes "public/cover/Ma\303\257t\303\251 Coiffure.jpg" | Bin 0 -> 20742 bytes public/cover/Mon Cher VOLTAIRE.jpg | Bin 0 -> 105331 bytes public/cover/Mots rumeurs, mots cutter.jpg | Bin 0 -> 17750 bytes public/cover/Naruto.jpg | Bin 0 -> 146085 bytes "public/cover/Oh, boy\302\240!.jpg" | Bin 0 -> 40621 bytes public/cover/One Piece.jpg | Bin 0 -> 77778 bytes public/cover/Platinum End.jpg | Bin 0 -> 34616 bytes public/cover/Refuges.jpg | Bin 0 -> 150792 bytes public/cover/Robin des graffs.jpg | Bin 0 -> 24658 bytes public/cover/Sauveur et fils.jpg | Bin 0 -> 11614 bytes public/cover/Skeleton Creek.jpg | Bin 0 -> 45117 bytes public/cover/Susan HOPPER.jpg | Bin 0 -> 38506 bytes public/cover/Tabou.jpg | Bin 0 -> 35841 bytes public/cover/Terrienne.jpg | Bin 0 -> 16075 bytes ...3\251ros s\342\200\231appellent Ph\303\251nix.jpg" | Bin 0 -> 86148 bytes public/cover/Tout revivre.jpg | Bin 0 -> 22231 bytes .../cover/Tu ne sais rien de l\342\200\231amour.jpg" | Bin 0 -> 66276 bytes "public/cover/Une Preuve d\342\200\231amour.jpg" | Bin 0 -> 42181 bytes src/main/scala/reading/Books.scala | 8 ++++---- .../scala/reading/component/index/style/Books.scala | 8 ++++++-- .../scala/reading/component/index/style/Header.scala | 6 +++--- src/main/scala/reading/component/style/Color.scala | 18 +++++++----------- src/main/scala/reading/models/Compare.scala | 4 +++- 45 files changed, 23 insertions(+), 21 deletions(-) delete mode 100644 public/cover/EverWorld.gif create mode 100644 public/cover/Le Livre de Perle.jpg create mode 100644 public/cover/Le Manoir.jpg create mode 100644 public/cover/Le Monde Secret de Sombreterre.jpg create mode 100644 public/cover/Le Monde dans la main.jpg create mode 100644 public/cover/Le Passage du diable.jpg create mode 100644 public/cover/Le Premier qui pleure a perdu.jpg create mode 100644 public/cover/Le Retour de Martin GUERRE.jpg create mode 100644 public/cover/Le Singe de Hartlepool.jpg create mode 100644 public/cover/Le Suivant sur la liste.jpg create mode 100644 public/cover/Le Temps des miracles.jpg create mode 100644 public/cover/Le Temps des mitaines.jpg create mode 100644 public/cover/Le Voyage de Samson.jpg create mode 100644 "public/cover/Les Mondes de l\342\200\231Alliance.jpg" create mode 100644 "public/cover/Les Myst\303\250res de LARISPEM.jpg" create mode 100644 public/cover/Les Petites reines.jpg create mode 100644 "public/cover/L\303\240 o\303\271 naissent les nuages.jpg" create mode 100644 public/cover/Ma Raison de vivre.jpg create mode 100644 "public/cover/Maestro\302\240!.jpg" create mode 100644 "public/cover/Maestro\302\240!.png" create mode 100644 public/cover/Malenfer.jpg create mode 100644 public/cover/Max.jpg create mode 100644 "public/cover/Ma\303\257t\303\251 Coiffure.jpg" create mode 100644 public/cover/Mon Cher VOLTAIRE.jpg create mode 100644 public/cover/Mots rumeurs, mots cutter.jpg create mode 100644 public/cover/Naruto.jpg create mode 100644 "public/cover/Oh, boy\302\240!.jpg" create mode 100644 public/cover/One Piece.jpg create mode 100644 public/cover/Platinum End.jpg create mode 100644 public/cover/Refuges.jpg create mode 100644 public/cover/Robin des graffs.jpg create mode 100644 public/cover/Sauveur et fils.jpg create mode 100644 public/cover/Skeleton Creek.jpg create mode 100644 public/cover/Susan HOPPER.jpg create mode 100644 public/cover/Tabou.jpg create mode 100644 public/cover/Terrienne.jpg create mode 100644 "public/cover/Tous les h\303\251ros s\342\200\231appellent Ph\303\251nix.jpg" create mode 100644 public/cover/Tout revivre.jpg create mode 100644 "public/cover/Tu ne sais rien de l\342\200\231amour.jpg" create mode 100644 "public/cover/Une Preuve d\342\200\231amour.jpg" diff --git a/public/cover/EverWorld.gif b/public/cover/EverWorld.gif deleted file mode 100644 index b17001a..0000000 Binary files a/public/cover/EverWorld.gif and /dev/null differ diff --git a/public/cover/Le Livre de Perle.jpg b/public/cover/Le Livre de Perle.jpg new file mode 100644 index 0000000..25f0b52 Binary files /dev/null and b/public/cover/Le Livre de Perle.jpg differ diff --git a/public/cover/Le Manoir.jpg b/public/cover/Le Manoir.jpg new file mode 100644 index 0000000..c74bd65 Binary files /dev/null and b/public/cover/Le Manoir.jpg differ diff --git a/public/cover/Le Monde Secret de Sombreterre.jpg b/public/cover/Le Monde Secret de Sombreterre.jpg new file mode 100644 index 0000000..f312821 Binary files /dev/null and b/public/cover/Le Monde Secret de Sombreterre.jpg differ diff --git a/public/cover/Le Monde dans la main.jpg b/public/cover/Le Monde dans la main.jpg new file mode 100644 index 0000000..bdf18db Binary files /dev/null and b/public/cover/Le Monde dans la main.jpg differ diff --git a/public/cover/Le Passage du diable.jpg b/public/cover/Le Passage du diable.jpg new file mode 100644 index 0000000..92ddb53 Binary files /dev/null and b/public/cover/Le Passage du diable.jpg differ diff --git a/public/cover/Le Premier qui pleure a perdu.jpg b/public/cover/Le Premier qui pleure a perdu.jpg new file mode 100644 index 0000000..a9ecc7e Binary files /dev/null and b/public/cover/Le Premier qui pleure a perdu.jpg differ diff --git a/public/cover/Le Retour de Martin GUERRE.jpg b/public/cover/Le Retour de Martin GUERRE.jpg new file mode 100644 index 0000000..2e76f1b Binary files /dev/null and b/public/cover/Le Retour de Martin GUERRE.jpg differ diff --git a/public/cover/Le Singe de Hartlepool.jpg b/public/cover/Le Singe de Hartlepool.jpg new file mode 100644 index 0000000..91294b9 Binary files /dev/null and b/public/cover/Le Singe de Hartlepool.jpg differ diff --git a/public/cover/Le Suivant sur la liste.jpg b/public/cover/Le Suivant sur la liste.jpg new file mode 100644 index 0000000..5b9fde3 Binary files /dev/null and b/public/cover/Le Suivant sur la liste.jpg differ diff --git a/public/cover/Le Temps des miracles.jpg b/public/cover/Le Temps des miracles.jpg new file mode 100644 index 0000000..d67cd4e Binary files /dev/null and b/public/cover/Le Temps des miracles.jpg differ diff --git a/public/cover/Le Temps des mitaines.jpg b/public/cover/Le Temps des mitaines.jpg new file mode 100644 index 0000000..92baccb Binary files /dev/null and b/public/cover/Le Temps des mitaines.jpg differ diff --git a/public/cover/Le Voyage de Samson.jpg b/public/cover/Le Voyage de Samson.jpg new file mode 100644 index 0000000..21ba83c Binary files /dev/null and b/public/cover/Le Voyage de Samson.jpg differ diff --git "a/public/cover/Les Mondes de l\342\200\231Alliance.jpg" "b/public/cover/Les Mondes de l\342\200\231Alliance.jpg" new file mode 100644 index 0000000..b1a77b3 Binary files /dev/null and "b/public/cover/Les Mondes de l\342\200\231Alliance.jpg" differ diff --git "a/public/cover/Les Myst\303\250res de LARISPEM.jpg" "b/public/cover/Les Myst\303\250res de LARISPEM.jpg" new file mode 100644 index 0000000..744f01a Binary files /dev/null and "b/public/cover/Les Myst\303\250res de LARISPEM.jpg" differ diff --git a/public/cover/Les Petites reines.jpg b/public/cover/Les Petites reines.jpg new file mode 100644 index 0000000..8de417b Binary files /dev/null and b/public/cover/Les Petites reines.jpg differ diff --git "a/public/cover/L\303\240 o\303\271 naissent les nuages.jpg" "b/public/cover/L\303\240 o\303\271 naissent les nuages.jpg" new file mode 100644 index 0000000..c069fde Binary files /dev/null and "b/public/cover/L\303\240 o\303\271 naissent les nuages.jpg" differ diff --git a/public/cover/Ma Raison de vivre.jpg b/public/cover/Ma Raison de vivre.jpg new file mode 100644 index 0000000..850b227 Binary files /dev/null and b/public/cover/Ma Raison de vivre.jpg differ diff --git "a/public/cover/Maestro\302\240!.jpg" "b/public/cover/Maestro\302\240!.jpg" new file mode 100644 index 0000000..4c499e6 Binary files /dev/null and "b/public/cover/Maestro\302\240!.jpg" differ diff --git "a/public/cover/Maestro\302\240!.png" "b/public/cover/Maestro\302\240!.png" new file mode 100644 index 0000000..b93ceb7 Binary files /dev/null and "b/public/cover/Maestro\302\240!.png" differ diff --git a/public/cover/Malenfer.jpg b/public/cover/Malenfer.jpg new file mode 100644 index 0000000..283b7a1 Binary files /dev/null and b/public/cover/Malenfer.jpg differ diff --git a/public/cover/Max.jpg b/public/cover/Max.jpg new file mode 100644 index 0000000..b11d1b5 Binary files /dev/null and b/public/cover/Max.jpg differ diff --git "a/public/cover/Ma\303\257t\303\251 Coiffure.jpg" "b/public/cover/Ma\303\257t\303\251 Coiffure.jpg" new file mode 100644 index 0000000..b006ac8 Binary files /dev/null and "b/public/cover/Ma\303\257t\303\251 Coiffure.jpg" differ diff --git a/public/cover/Mon Cher VOLTAIRE.jpg b/public/cover/Mon Cher VOLTAIRE.jpg new file mode 100644 index 0000000..fcf5659 Binary files /dev/null and b/public/cover/Mon Cher VOLTAIRE.jpg differ diff --git a/public/cover/Mots rumeurs, mots cutter.jpg b/public/cover/Mots rumeurs, mots cutter.jpg new file mode 100644 index 0000000..e417c38 Binary files /dev/null and b/public/cover/Mots rumeurs, mots cutter.jpg differ diff --git a/public/cover/Naruto.jpg b/public/cover/Naruto.jpg new file mode 100644 index 0000000..68fefb3 Binary files /dev/null and b/public/cover/Naruto.jpg differ diff --git "a/public/cover/Oh, boy\302\240!.jpg" "b/public/cover/Oh, boy\302\240!.jpg" new file mode 100644 index 0000000..790ed23 Binary files /dev/null and "b/public/cover/Oh, boy\302\240!.jpg" differ diff --git a/public/cover/One Piece.jpg b/public/cover/One Piece.jpg new file mode 100644 index 0000000..6611d4c Binary files /dev/null and b/public/cover/One Piece.jpg differ diff --git a/public/cover/Platinum End.jpg b/public/cover/Platinum End.jpg new file mode 100644 index 0000000..5675124 Binary files /dev/null and b/public/cover/Platinum End.jpg differ diff --git a/public/cover/Refuges.jpg b/public/cover/Refuges.jpg new file mode 100644 index 0000000..c48969c Binary files /dev/null and b/public/cover/Refuges.jpg differ diff --git a/public/cover/Robin des graffs.jpg b/public/cover/Robin des graffs.jpg new file mode 100644 index 0000000..f4b0d08 Binary files /dev/null and b/public/cover/Robin des graffs.jpg differ diff --git a/public/cover/Sauveur et fils.jpg b/public/cover/Sauveur et fils.jpg new file mode 100644 index 0000000..1abe075 Binary files /dev/null and b/public/cover/Sauveur et fils.jpg differ diff --git a/public/cover/Skeleton Creek.jpg b/public/cover/Skeleton Creek.jpg new file mode 100644 index 0000000..48fb28e Binary files /dev/null and b/public/cover/Skeleton Creek.jpg differ diff --git a/public/cover/Susan HOPPER.jpg b/public/cover/Susan HOPPER.jpg new file mode 100644 index 0000000..32081b5 Binary files /dev/null and b/public/cover/Susan HOPPER.jpg differ diff --git a/public/cover/Tabou.jpg b/public/cover/Tabou.jpg new file mode 100644 index 0000000..6b63cfd Binary files /dev/null and b/public/cover/Tabou.jpg differ diff --git a/public/cover/Terrienne.jpg b/public/cover/Terrienne.jpg new file mode 100644 index 0000000..6350a30 Binary files /dev/null and b/public/cover/Terrienne.jpg differ diff --git "a/public/cover/Tous les h\303\251ros s\342\200\231appellent Ph\303\251nix.jpg" "b/public/cover/Tous les h\303\251ros s\342\200\231appellent Ph\303\251nix.jpg" new file mode 100644 index 0000000..7c2e287 Binary files /dev/null and "b/public/cover/Tous les h\303\251ros s\342\200\231appellent Ph\303\251nix.jpg" differ diff --git a/public/cover/Tout revivre.jpg b/public/cover/Tout revivre.jpg new file mode 100644 index 0000000..a1aec10 Binary files /dev/null and b/public/cover/Tout revivre.jpg differ diff --git "a/public/cover/Tu ne sais rien de l\342\200\231amour.jpg" "b/public/cover/Tu ne sais rien de l\342\200\231amour.jpg" new file mode 100644 index 0000000..c4bc5e4 Binary files /dev/null and "b/public/cover/Tu ne sais rien de l\342\200\231amour.jpg" differ diff --git "a/public/cover/Une Preuve d\342\200\231amour.jpg" "b/public/cover/Une Preuve d\342\200\231amour.jpg" new file mode 100644 index 0000000..2b85eed Binary files /dev/null and "b/public/cover/Une Preuve d\342\200\231amour.jpg" differ diff --git a/src/main/scala/reading/Books.scala b/src/main/scala/reading/Books.scala index b86a008..0c40f79 100644 --- a/src/main/scala/reading/Books.scala +++ b/src/main/scala/reading/Books.scala @@ -1587,7 +1587,7 @@ object Books { ), Book( - title = "Une preuve d’amour", + title = "Une Preuve d’amour", author = "Valentine GOBY", year = "xxx", period = Some(Contemporain), @@ -1902,7 +1902,7 @@ object Books { ), Book( - title = "Tous les héros s'appellent Phénix", + title = "Tous les héros s’appellent Phénix", author = "Nastasia RUGANI", year = "2014", period = Some(Contemporain), @@ -1968,7 +1968,7 @@ object Books { ), Book( - title = "Oh, boy !", + title = "Oh, boy !", author = "Marie-Aude MURAIL", year = "2000", period = Some(Contemporain), @@ -2080,7 +2080,7 @@ object Books { ), Book( - title = "Les Mondes de l'Alliance", + title = "Les Mondes de l’Alliance", author = "David MOITET", year = "2014-2015", parts = 3, diff --git a/src/main/scala/reading/component/index/style/Books.scala b/src/main/scala/reading/component/index/style/Books.scala index f5deb53..ca52328 100644 --- a/src/main/scala/reading/component/index/style/Books.scala +++ b/src/main/scala/reading/component/index/style/Books.scala @@ -4,6 +4,8 @@ import scalacss.Defaults._ import reading.Media +import reading.component.style.{ Color => C } + object Books extends StyleSheet.Inline { import dsl._ @@ -21,6 +23,9 @@ object Books extends StyleSheet.Inline { ) val cover = style( + display.inlineBlock, + backgroundColor(C.gray.lighten(90).value), + cursor.pointer, Media.desktop( height(250.px), maxWidth(200.px) @@ -28,7 +33,6 @@ object Books extends StyleSheet.Inline { Media.mobile( height(150.px), maxWidth(120.px) - ), - cursor.pointer + ) ) } diff --git a/src/main/scala/reading/component/index/style/Header.scala b/src/main/scala/reading/component/index/style/Header.scala index c29bd56..d2149a7 100644 --- a/src/main/scala/reading/component/index/style/Header.scala +++ b/src/main/scala/reading/component/index/style/Header.scala @@ -38,7 +38,7 @@ object Header extends StyleSheet.Inline { padding(15.px), marginRight(20.px), borderRadius(2.px), - border(1.px, solid, C.gray.lighten(80).value), + border(1.px, solid, C.gray.lighten(60).value), fontSize(18.px), &.hover(cursor.pointer) ) @@ -47,12 +47,12 @@ object Header extends StyleSheet.Inline { box, backgroundColor(C.mickado.value), color(C.white.value), - &.hover(backgroundColor(C.mickado.lighten(20).value)) + &.hover(backgroundColor(C.mickado.lighten(30).value)) ) val filter = style( box, - &.hover(borderColor(C.gray.lighten(50).value)) + &.hover(borderColor(C.gray.lighten(80).value)) ) val name = style( diff --git a/src/main/scala/reading/component/style/Color.scala b/src/main/scala/reading/component/style/Color.scala index 1f44eb5..ed2041f 100644 --- a/src/main/scala/reading/component/style/Color.scala +++ b/src/main/scala/reading/component/style/Color.scala @@ -7,19 +7,14 @@ import scalacss.internal.{ ValueT, Color => ScalaCssColor } case class Color(red: Int, green: Int, blue: Int, alpha: Double = 1.0) { val value: ValueT[ValueT.Color] = ScalaCssColor.rgba(red, green, blue, alpha) - def lighten(n: Int): Color = - Color( - red = Color.bound(red + n), - green = Color.bound(green + n), - blue = Color.bound(blue + n), - alpha = alpha - ) + def lighten(pct: Int): Color = ratio(1.0 + pct / 100.0) + def darken(pct: Int): Color = ratio(1.0 - pct / 100.0) - def darken(n: Int): Color = + private def ratio(r: Double): Color = Color( - red = Color.bound(red - n), - green = Color.bound(green - n), - blue = Color.bound(blue - n), + red = Color.bound(red * r), + green = Color.bound(green * r), + blue = Color.bound(blue * r), alpha = alpha ) } @@ -44,4 +39,5 @@ object Color { ) def bound(n: Int): Int = Math.max(0, Math.min(255, n)) + def bound(d: Double): Int = bound(d.toInt) } diff --git a/src/main/scala/reading/models/Compare.scala b/src/main/scala/reading/models/Compare.scala index dd763fe..b59d2f2 100644 --- a/src/main/scala/reading/models/Compare.scala +++ b/src/main/scala/reading/models/Compare.scala @@ -11,7 +11,9 @@ object Compare { .replaceAll("^à ", "") .replaceAll("^au ", "") .replaceAll("^aux ", "") - .replaceAll("^années ", "") + .replaceAll("^ma ", "") + .replaceAll("^mon ", "") + .replaceAll("^mes ", "") .replaceAll("é", "e") .replaceAll("è", "e") } -- cgit v1.2.3