diff --git a/assets/js/collapse.js b/assets/js/collapse.js new file mode 100644 index 0000000..4719eaf --- /dev/null +++ b/assets/js/collapse.js @@ -0,0 +1,15 @@ +var coll = document.getElementsByClassName("collapsed"); +var i; + +for (i = 0; i < coll.length; i++) { + coll[i].nextElementSibling.style.display = "none"; + coll[i].addEventListener("click", function() { + this.classList.toggle("active"); + var content = this.nextElementSibling; + if (content.style.display === "block") { + content.style.display = "none"; + } else { + content.style.display = "block"; + } + }); +} \ No newline at end of file diff --git a/dev/playground/index.php b/dev/playground/index.php new file mode 100644 index 0000000..7b431a7 --- /dev/null +++ b/dev/playground/index.php @@ -0,0 +1,204 @@ + + + +
Error: [$errno] $errstr
in file $errfile line $errline
+ .images{
+ width: 15%;
+ aspect-ratio: 3/2;
+ object-fit: contain;
+ mix-blend-mode: color-burn;
+ }
+
+
+ <figure class="card">
+ <img src="image.jpg" alt="...">
+ <figcaption>Example Image</figcaption>
+ </figure>
+
+
+
+ .card {
+ width: 30rem;
+ overflow: hidden;
+ display: grid;
+ grid-template-areas: "stack";
+ }
+ .card>*{
+ grid-area: stack;
+ }
+ .card>figcaption {
+ display: grid;
+ align-items: end;
+ padding: 1.5rem 2rem;
+ background-image: linear-gradient(to bottom,
+ rgb(33 44 55 / 0),
+ rgb(33 44 55 / 0),
+ rgb(33 44 55 / 0.75)
+ );
+ opacity: 0;
+ transition: opacity 300ms;
+ }
+ .card:hover figcaption{
+ opacity:1;
+ }
+
+
+