File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 border-radius : 8px ;
5151}
5252
53+ .more-toggle {
54+ display : inline-flex;
55+ align-items : center;
56+ gap : 0.4rem ;
57+ margin-top : 1.5rem ;
58+ padding : 0 ;
59+ background : none;
60+ border : none;
61+ color : inherit;
62+ font-size : 1.2rem ;
63+ font-family : inherit;
64+ cursor : pointer;
65+ opacity : 0.8 ;
66+ }
67+
68+ .more-toggle : hover {
69+ opacity : 1 ;
70+ }
71+
72+ .more-arrow {
73+ display : inline-block;
74+ font-size : 0.85em ;
75+ transition : transform 600ms ease;
76+ }
77+
78+ .more-arrow--down {
79+ transform : rotate (90deg );
80+ }
81+
82+ .more-content {
83+ overflow : hidden;
84+ max-height : 0 ;
85+ transition : max-height 1000ms ease;
86+ }
87+
88+ .more-content--open {
89+ max-height : 600px ;
90+ }
91+
5392@media (prefers-color-scheme : light) {
5493 .logo : hover {
5594 filter : drop-shadow (0 0 2em # 6b7280 );
Original file line number Diff line number Diff line change 1+ import { useState } from "react" ;
12import zappermentRocksLogo from "./assets/zapperment-rocks-logo.png" ;
23import "./App.css" ;
34
45function App ( ) {
6+ const [ showMore , setShowMore ] = useState ( false ) ;
7+
58 return (
69 < >
710 < div >
@@ -25,21 +28,28 @@ function App() {
2528 </ audio >
2629 </ div >
2730
28- < div className = "audio-player" >
29- < h2 > Ten Pounds Lost in Ten Minutes</ h2 >
30- < p > Version 2, 26 Jun 2025</ p >
31- < audio controls >
32- < source
33- src = "./audio/zapperment.rocks - Ten Pounds Lost in Ten Minutes.mp3"
34- type = "audio/mpeg"
35- />
36- Your browser does not support the audio element.
37- </ audio >
38- </ div >
31+ < button className = "more-toggle" onClick = { ( ) => setShowMore ( ! showMore ) } >
32+ < span className = { `more-arrow ${ showMore ? "more-arrow--down" : "" } ` } > ▶</ span >
33+ More
34+ </ button >
3935
40- < h2 >
41- < a href = "https://soundcloud.com/hund-1" > More on SoundCloud…</ a >
42- </ h2 >
36+ < div className = { `more-content ${ showMore ? "more-content--open" : "" } ` } >
37+ < div className = "audio-player" >
38+ < h2 > Ten Pounds Lost in Ten Minutes</ h2 >
39+ < p > Version 2, 26 Jun 2025</ p >
40+ < audio controls >
41+ < source
42+ src = "./audio/zapperment.rocks - Ten Pounds Lost in Ten Minutes.mp3"
43+ type = "audio/mpeg"
44+ />
45+ Your browser does not support the audio element.
46+ </ audio >
47+ </ div >
48+
49+ < h2 >
50+ < a href = "https://soundcloud.com/hund-1" > More on SoundCloud…</ a >
51+ </ h2 >
52+ </ div >
4353 </ >
4454 ) ;
4555}
You can’t perform that action at this time.
0 commit comments