This commit is contained in:
Jordan Vidrine 2025-01-03 20:20:20 -06:00
parent 6c4142b4d4
commit 4d7aad782d
5 changed files with 26 additions and 79 deletions

View File

@ -29,9 +29,6 @@ export default class Rewind extends Component {
@tracked fullScreen = true; @tracked fullScreen = true;
@tracked loadingRewind = false; @tracked loadingRewind = false;
imageIndex = 1;
frameCount = 11;
@action @action
registerScrollWrapper(element) { registerScrollWrapper(element) {
this.scrollWrapper = element; this.scrollWrapper = element;
@ -69,20 +66,6 @@ export default class Rewind extends Component {
children[i].style.transform = `translateY(-${ children[i].style.transform = `translateY(-${
(target.scrollTop * (i + 1)) / 5 (target.scrollTop * (i + 1)) / 5
}px)`; }px)`;
// if (
// children[i].classList.contains("background-2") &&
// target.scrollTop % 6 === 0
// ) {
// children[i].style.setProperty(
// "--frame",
// `var(--frame-${this.imageIndex})`
// );
// if (this.imageIndex === 10) {
// this.imageIndex = 1;
// } else {
// this.imageIndex++;
// }
// }
} }
} }

View File

@ -9,7 +9,6 @@ body {
.rewind-report-container { .rewind-report-container {
perspective: 1000px; perspective: 1000px;
transform-style: preserve-3d;
gap: 0.5em; gap: 0.5em;
} }
@ -72,7 +71,7 @@ body {
.rewind-card { .rewind-card {
background-color: var(--secondary); background-color: var(--secondary);
box-shadow: 0 0 0 1px var(--primary-200); box-shadow: 0 0 0 1px var(--primary-300), 0 0 0 3px var(--primary-100);
border-radius: var(--d-border-radius); border-radius: var(--d-border-radius);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -82,12 +81,14 @@ body {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&__title { &__title {
font-family: var(--heading-font) !important;
font-weight: 600; font-weight: 600;
-webkit-font-smoothing: antialiased;
} }
&__data { &__data {
font-family: monospace;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
-webkit-font-smoothing: antialiased;
} }
} }
@ -103,57 +104,6 @@ body {
} }
} }
@keyframes card-hover {
0% {
transform: translateY(0) rotate(0);
}
25% {
transform: translateY(-2px) rotate(2deg);
}
50% {
transform: translateY(-4px) rotate(-1deg);
}
75% {
transform: translateY(2px) rotate(-2deg);
}
100% {
transform: translateY(0) rotate(0);
}
}
@keyframes easeOutElastic {
0% {
--easeAmount: 0;
}
16% {
--easeAmount: 1.3227;
}
28% {
--easeAmount: 0.8688;
}
44% {
--easeAmount: 1.0463;
}
59% {
--easeAmount: 0.9836;
}
73% {
--easeAmount: 1.0058;
}
88% {
--easeAmount: 0.998;
}
100% {
--easeAmount: 1;
}
}
@property --easeAmount {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@property --ambientAmount { @property --ambientAmount {
syntax: "<number>"; syntax: "<number>";
inherits: true; inherits: true;

View File

@ -0,0 +1,19 @@
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
.rewind {
--heading-font: "Rubik", Helvetica, Arial, sans-serif;
--regular-font: "Open Sans", Helvetica, Arial, sans-serif;
h1,
h2,
h3,
h4,
h5 {
font-family: var(--heading-font);
}
p,
span {
font-family: var(--regular-font);
}
}

View File

@ -9,11 +9,4 @@
@import "word-cloud"; @import "word-cloud";
@import "favorite-tags"; @import "favorite-tags";
@import "favorite-categories"; @import "favorite-categories";
@import "fonts";
h1,
h2,
h3,
h4,
h5 {
font-family: "Rubik", Helvetica, Arial, sans-serif;
}

View File

@ -44,6 +44,7 @@
transform: translateY(0px); transform: translateY(0px);
width: 100%; width: 100%;
height: 1000%; height: 1000%;
opacity: 0.45;
} }
.background-2 { .background-2 {
@ -53,6 +54,7 @@
background: url(/plugins/discourse-rewind/images/bg-2.png); background: url(/plugins/discourse-rewind/images/bg-2.png);
background-size: contain; background-size: contain;
transform: translateY(0px); transform: translateY(0px);
opacity: 0.85;
} }
.rewind__scroll-wrapper { .rewind__scroll-wrapper {