-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
258 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use client'; | ||
import { useLanguageContext } from '../app/context/language'; | ||
import styles from '../css/marquee.module.css'; | ||
import { dotFont } from '../fonts/fonts'; | ||
import dynamic from "next/dynamic"; | ||
|
||
const Marquee = () => { | ||
|
||
const {language} = useLanguageContext(); | ||
|
||
let title:string = ''; | ||
if(language == 'English') | ||
{ | ||
title = 'DUST AND ECHOES' | ||
} | ||
else if(language == 'Spanish') | ||
{ | ||
title = 'POLVO Y ECOS' | ||
} | ||
|
||
return ( | ||
<> | ||
<header className={styles.header}> | ||
<h1 style={dotFont.style}>{title}</h1> | ||
</header> | ||
</> | ||
); | ||
}; | ||
|
||
export default dynamic (() => Promise.resolve(Marquee), {ssr: false}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import styles from '../css/visualizer.module.css'; | ||
|
||
const Visualizer = () => { | ||
return ( | ||
<> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":23 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":21 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":19 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":17 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":15 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":13 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":11 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":9 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":7 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":5 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":3 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":1 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":3 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":5 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":7 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":9 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":11 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":13 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":15 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":17 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":19 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":21 } as React.CSSProperties}></span></article> | ||
<article className={styles.strokeContainer}><span style={{ "--stroke":23 } as React.CSSProperties}></span></article> | ||
</> | ||
); | ||
}; | ||
|
||
export default Visualizer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.header | ||
{ | ||
border: 1px solid rgb(255,255,255); | ||
overflow-x: hidden; | ||
display: flex; | ||
align-items: center; | ||
margin: 30px 30px 0 30px; | ||
white-space: nowrap; | ||
} | ||
|
||
.header>h1 | ||
{ | ||
font-size: 10vh; | ||
animation: slide 10s infinite linear; | ||
} | ||
|
||
@keyframes slide | ||
{ | ||
0%{ | ||
transform: translateX(100vw); | ||
} | ||
|
||
100%{ | ||
transform: translateX(-100%); | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 1250px) and (min-width: 760px) | ||
{ | ||
.header | ||
{ | ||
height: 12vh; | ||
} | ||
.header>h1 | ||
{ | ||
font-size: 7vh; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 760px) | ||
{ | ||
.header | ||
{ | ||
height: 9vh; | ||
} | ||
.header>h1 | ||
{ | ||
font-size: 5vh; | ||
text-align: center; | ||
} | ||
} |
Oops, something went wrong.