diff --git a/src/components/RecorderChip.tsx b/src/components/RecorderChip.tsx
index 9ebd20a..cf82c0e 100644
--- a/src/components/RecorderChip.tsx
+++ b/src/components/RecorderChip.tsx
@@ -21,9 +21,8 @@ export default function RecorderChip(props: Props): JSX.Element {
{recorder.avatar?.data?.attributes && (
)}
diff --git a/src/pages/archives/videos/c/[uid].tsx b/src/pages/archives/videos/c/[uid].tsx
index 9987256..abeb2b7 100644
--- a/src/pages/archives/videos/c/[uid].tsx
+++ b/src/pages/archives/videos/c/[uid].tsx
@@ -7,7 +7,8 @@ import ContentPanel, {
ContentPanelWidthSizes,
} from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
-import VideoPreview from "components/Videos/VideoPreview";
+import Switch from "components/Switch";
+import ThumbnailPreview from "components/ThumbnailPreview";
import { GetVideoChannelQuery } from "graphql/generated";
import { getReadySdk } from "graphql/sdk";
import {
@@ -16,6 +17,8 @@ import {
GetStaticPropsContext,
} from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
+import { getVideoThumbnailURL } from "queries/helpers";
+import { useState } from "react";
interface Props extends AppStaticProps {
channel: Exclude<
@@ -26,6 +29,8 @@ interface Props extends AppStaticProps {
export default function Channel(props: Props): JSX.Element {
const { langui, channel } = props;
+ const [keepInfoVisible, setKeepInfoVisible] = useState(true);
+
const subPanel = (
+
+
+
{"Always show info"}:
+
+
);
@@ -52,7 +62,28 @@ export default function Channel(props: Props): JSX.Element {
{channel?.videos?.data.map((video) => (
- <>{video.attributes && }>
+ <>
+ {video.attributes && (
+
+ )}
+ >
))}
diff --git a/src/pages/archives/videos/index.tsx b/src/pages/archives/videos/index.tsx
index 044da27..156e79a 100644
--- a/src/pages/archives/videos/index.tsx
+++ b/src/pages/archives/videos/index.tsx
@@ -8,12 +8,13 @@ import ContentPanel, {
ContentPanelWidthSizes,
} from "components/Panels/ContentPanel";
import SubPanel from "components/Panels/SubPanel";
-import VideoPreview from "components/Videos/VideoPreview";
+import Switch from "components/Switch";
+import ThumbnailPreview from "components/ThumbnailPreview";
import { GetVideosPreviewQuery } from "graphql/generated";
import { getReadySdk } from "graphql/sdk";
import { GetStaticPropsContext } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
-import { prettyDate } from "queries/helpers";
+import { getVideoThumbnailURL, prettyDate } from "queries/helpers";
import { useState } from "react";
interface Props extends AppStaticProps {
@@ -44,6 +45,7 @@ export default function Videos(props: Props): JSX.Element {
}
const [page, setPage] = useState(0);
+ const [keepInfoVisible, setKeepInfoVisible] = useState(true);
const subPanel = (