From 7c5376cd8c13277439f6045c71e96586b1bdc680 Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Sat, 20 Jan 2024 15:11:24 -0600 Subject: [PATCH] Add css custom property to audioPlayer --- assets/css/main.css | 11 ++++++++++- components/audioPlayer/audioPlayer.js | 23 ++++++++++++++++------- index.html | 4 ++++ 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 69ae20f..0e1ff2d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,7 +1,16 @@ +audio-player { + --background: radial-gradient(circle, rgba(8,5,34,1) 3%, rgba(9,3,62,1) 34%, rgba(15,62,109,1) 57%, rgba(69,130,191,1) 82%, rgba(146,172,226,1) 100%); + color: white; +} +body { + font-family: sans-serif; +} header { margin-bottom: 5rem; } - +h3 { + font-size: 1.5rem; +} main { margin: auto; width: 45rem; diff --git a/components/audioPlayer/audioPlayer.js b/components/audioPlayer/audioPlayer.js index 254f48f..0f91a0e 100644 --- a/components/audioPlayer/audioPlayer.js +++ b/components/audioPlayer/audioPlayer.js @@ -3,13 +3,20 @@ const template = document.createElement('template'); template.innerHTML = ` -
+
- +

TITLE

DESCRIPTION

-