From 73fa1716da40f0dc2c8d396cd1c674ccf53e2740 Mon Sep 17 00:00:00 2001 From: Dan Lebo Date: Sun, 5 Feb 2023 23:24:17 -0800 Subject: [PATCH] wip gradient placeholder artwork --- beta/src/components/Layout/HomeContent.js | 64 +++++++++++++---------- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/beta/src/components/Layout/HomeContent.js b/beta/src/components/Layout/HomeContent.js index 1182d3be6..f8d8e7d37 100644 --- a/beta/src/components/Layout/HomeContent.js +++ b/beta/src/components/Layout/HomeContent.js @@ -161,6 +161,25 @@ export function HomeContent() { +
+
+
+

+ Stability without stagnation +

+

+ React approaches changes with care. Every React commit is tested + on business-critical surfaces with hundreds of millions of + users. +

+
+ +
+ +
+
+
+
@@ -187,7 +206,7 @@ export function HomeContent() {
- +
@@ -299,25 +318,6 @@ export function HomeContent() {
-
-
-
-

- Stability without stagnation -

-

- React approaches changes with care. Every React commit is tested - on business-critical surfaces with hundreds of millions of - users. -

-
- -
- Illustration goes here -
-
-
-
@@ -372,7 +372,7 @@ function Example1() { album={{ name: 'Album title', year: 'Release year', - artwork: null, + artwork: 'blue', }} /> @@ -389,19 +389,19 @@ function Example2() { id: 0, name: 'First album', year: 'Release year', - artwork: null, + artwork: 'blue', }, { id: 1, name: 'Second album', year: 'Release year', - artwork: null, + artwork: 'red', }, { id: 2, name: 'Third album', year: 'Release year', - artwork: null, + artwork: 'green', }, ]); @@ -808,11 +808,21 @@ function Row({children, gap}) { function Artwork({image}) { return (
- {image ? null : } + {image !== 'blue' && image !== 'red' && image !== 'green' ? null : ( + + )}
); }