From 1f1032001337f6d79a090cf32cace1e55c070053 Mon Sep 17 00:00:00 2001 From: stg Date: Sat, 3 Feb 2024 10:52:25 +0100 Subject: [PATCH] volume buttons on TV. hover effect. missing JS --- README.md | 1 + css/styles.css | 45 +++++++++++++++++++++++++++++++++++++++-- index.html | 54 ++++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1fa6fc5 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +deployed in pages: https://sergiotorresgarcia.github.io/Proyecto2-TV/ \ No newline at end of file diff --git a/css/styles.css b/css/styles.css index 7ce1d13..6d7582c 100644 --- a/css/styles.css +++ b/css/styles.css @@ -10,7 +10,7 @@ body { display: flex; width: 100vw; max-height: 100vh; - /* background-color: rgb(148, 148, 148); */ + background-color: rgb(148, 148, 148); } #image { /* <<< ---------------- MAIN PICTURE - PROGRAMES -------------- */ @@ -36,7 +36,7 @@ body { flex-direction: column; align-items: center; justify-content: center; - /* background-color: rgb(148, 148, 148); */ + background-color: rgb(148, 148, 148); width: 50em; height: 45.4em; } @@ -61,6 +61,16 @@ body { background-color: rgba(255, 0, 0, 0.429); } +.volLevel { + width: 3.5em; + height: 0.2em; + border: .1em solid lightgray; + position: absolute; + background-color: rgba(0, 255, 115, 0.429); + margin: 37em 0 0 52em; + z-index: 150; +} + #mando { border:1em solid black; background-color: rgb(112, 112, 112); @@ -96,6 +106,9 @@ body { color: gray; font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } +.grayText { + color: gray; +} #displayChannelScreen { margin-top: -28em; margin-left: 30em; @@ -267,3 +280,31 @@ button { background-size:cover; } +#volBg { + width:4em; + height: 14em; + background-color: black; + z-index: 999; + position: absolute; + margin: 10.3em 0 0 50.5em; + display: flex; + flex-direction: column-reverse; +} + +.levelVol { + margin: 0.3em 0.5em 0.3em 1.2em; + border-radius: 50%; + border:0.2em solid gray; + width:2em; + height:0.8em; + z-index: 999; + background-color: rgb(23, 23, 23); +} +.levelVol:hover { + background-color: rgb(7, 67, 1) +} +.levelVol>div { + padding-left:2.5em; + color: gray; + +} \ No newline at end of file diff --git a/index.html b/index.html index 5ee5ab3..bc0c1b8 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,56 @@
+ +
+
+ + + + + + + + + +
+
+
@@ -31,7 +81,7 @@
- +
- +