Skip to content

Commit

Permalink
Merge branch 'sett/eternal-ai' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sett committed Jan 16, 2024
2 parents 8c3bc56 + d55a3fc commit 4c7f9c6
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
44 changes: 44 additions & 0 deletions public/landing/images/eternail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/landing/loop-videos.webm
Binary file not shown.
9 changes: 9 additions & 0 deletions src/app/eternal-ai/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use client';

import EternalAi from '@/modules/eternal-ai';

export default function EternalAiPage() {
return (
<EternalAi />
);
}
10 changes: 10 additions & 0 deletions src/modules/eternal-ai/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import s from './styles.module.scss';
import Image from 'next/image';

export default function EternalAi() {

return <div className={s.eternalAi}>
<video className={s.eternalAi_video} playsInline loop autoPlay muted src={'landing/loop-videos.webm'} />
<Image loading={'eager'} src={'landing/images/eternail.svg'} width={485} height={213} alt={'eternail'} />
</div>;
}
26 changes: 26 additions & 0 deletions src/modules/eternal-ai/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.eternalAi {
display: flex;
height: 100vh;
align-items: center;
justify-content: center;
padding: 32px;

video {
mix-blend-mode: luminosity;
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
top: 0;
left: 0;
}

img {
aspect-ratio: 485/213;
max-width: 100%;
max-height: 100%;
object-fit: contain;
position: relative;
z-index: 2;
}
}

0 comments on commit 4c7f9c6

Please sign in to comment.