Skip to content

Commit

Permalink
update onboarding videos and swiper
Browse files Browse the repository at this point in the history
  • Loading branch information
kindOfCurly committed Apr 18, 2024
1 parent 12e34b4 commit d8831be
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 95 deletions.
File renamed without changes.
Binary file added public/videos/BeweisErstellen.mp4
Binary file not shown.
Binary file added public/videos/Bezugnahme.mp4
Binary file not shown.
Binary file added public/videos/Darstellungen.mp4
Binary file not shown.
Binary file added public/videos/Export.mp4
Binary file not shown.
Binary file added public/videos/Gliederung.mp4
Binary file not shown.
Binary file added public/videos/GliederungBeitragErstellen.mp4
Binary file not shown.
Binary file added public/videos/Hinweise.mp4
Binary file not shown.
Binary file added public/videos/Lesezeichen.mp4
Binary file not shown.
Binary file added public/videos/Markierung.mp4
Binary file not shown.
Binary file added public/videos/Notiz.mp4
Binary file not shown.
Binary file added public/videos/Öffnen.mp4
Binary file not shown.
146 changes: 58 additions & 88 deletions src/components/popups/OnboardingSwiper.tsx

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions src/components/popups/OnboardingSwiperItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ interface OnboardingSwiperItemProps {

enum MediaType {
IMAGE,
VIDEO
VIDEO,
}

export const OnboardingSliderItem = ({
src,
title,
desc,
alt
alt,
}: OnboardingSwiperItemProps) => {

const mediaType = src.split(".")[src.split(".").length - 1] === "png" ? MediaType.IMAGE : MediaType.VIDEO;
const mediaType =
src.split(".")[src.split(".").length - 1] === "png"
? MediaType.IMAGE
: MediaType.VIDEO;

return (
<div>
Expand All @@ -33,9 +35,11 @@ export const OnboardingSliderItem = ({
src={`${process.env.PUBLIC_URL}/${src}`}
/>
) : (
<img className="overflow-hidden w-full max-w-xl h-auto mx-auto"
<img
className="overflow-hidden w-full max-w-xl h-auto mx-auto"
src={src}
alt={alt} />
alt={alt}
/>
)}
</div>
<div className="p-4 max-w-[800px] m-auto">
Expand All @@ -46,4 +50,4 @@ export const OnboardingSliderItem = ({
</div>
</div>
);
};
};

0 comments on commit d8831be

Please sign in to comment.