Skip to content

Commit

Permalink
feat: update main block text to the finish point
Browse files Browse the repository at this point in the history
  • Loading branch information
viktoriabakun committed May 3, 2024
1 parent 84fc718 commit bcb3d5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions src/pages/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { useEffect } from 'react';
import styles from './styles.module.scss';

const MainPage = () => {

useEffect(() => {
window.addEventListener('scroll', function() {
window.addEventListener('scroll', function () {
document.documentElement.style.setProperty('--scroll-y', `${this.scrollY}px`);
});
}, []);

return (
<>
<header>
Expand All @@ -25,14 +25,11 @@ const MainPage = () => {
</div>
</header>

<div className={styles.main}>
<main className={styles.main}>
<div className={styles.mainContent}>
<h2 className={styles.title}>This is the place</h2>
<p className={`${styles.mainText} ${styles.mainContentParagraph}`}>where you can try your luck by
mixing various types of magic mushrooms. <br/>
Choose two — and you will see the future...</p>
<h2 className={styles.title}>This is the place where dreams intertwine with reality.</h2>
</div>
</div>
</main>

<footer className={styles.footer}>© viktoriabakun</footer>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/main/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ header::after {

.mainContentParagraph {
letter-spacing: calc($viewIndex / 10);
max-width: 400px;
width: 100%;
}

footer {
Expand Down

0 comments on commit bcb3d5c

Please sign in to comment.