diff --git a/product-preview-card-component/index.html b/product-preview-card-component/index.html index 5f1067e..fa64069 100644 --- a/product-preview-card-component/index.html +++ b/product-preview-card-component/index.html @@ -11,7 +11,7 @@ @@ -26,34 +26,42 @@ -
- - - - Gabrielle Essence perfume bottle - +
+
+ + + + Gabrielle Essence perfume bottle + -
Perfume
+
Perfume
-

Gabrielle Essence Eau De Parfum

+

Gabrielle Essence Eau De Parfum

-

- A floral, solar and voluptuous interpretation composed by Olivier Polge, Perfumer-Creator for - the House of CHANEL. -

+

+ A floral, solar and voluptuous interpretation composed by Olivier Polge, Perfumer-Creator for + the House of CHANEL. +

-
- $149.99 - $169.99 -
+
+ $149.99 + $169.99 +
- -
+ +
+
Challenge by Frontend Mentor. Coded by Marley Rae.
+ + diff --git a/product-preview-card-component/src/style.css b/product-preview-card-component/src/style.css index c4e3498..1ce4f77 100644 --- a/product-preview-card-component/src/style.css +++ b/product-preview-card-component/src/style.css @@ -1,11 +1,11 @@ /* ----------------------------------------------------------------------------------- &root ---- */ :root { - --c-dark-cyan: 158, 36%, 37%; - --c-cream: 30, 38%, 92%; + --c-dark-cyan: hsl(158, 36%, 37%); + --c-cream: hsl(30, 38%, 92%); - --c-dark-blue: 212, 21%, 14%; - --c-gray-blue: 228, 12%, 48%; + --c-dark-blue: hsl(212, 21%, 14%); + --c-gray-blue: hsl(228, 12%, 48%); --t-family-body: 'Montserrat'; --t-weight-body: 500; @@ -17,6 +17,36 @@ font-size: 14px; } +html, body, .wrapper { + width: 100vw; + height: 100vh; +} + body { font-size: 1rem; + background-color: var(--c-cream); + font-family: var(--t-family-body); + font-weight: var(--t-weight-body); +} + +.wrapper { + display: flex; + align-items: center; + justify-content: center; +} + +/* ---------------------------------------------------------------------------- &ProductCard ---- */ + +.ProductCard { + --border-radius: 10px; + + height: 90%; + width: 90%; + background-color: white; + border-radius: var(--border-radius); +} + +.ProductCard-picture { + width: 100%; + border-radius: var(--border-radius) var(--border-radius) 0 0; }