This commit is contained in:
+19
-16
@@ -3,24 +3,27 @@
|
||||
import { useConfig } from '@/contexts/configExports';
|
||||
import Link from 'next/link';
|
||||
import styles from './styles.module.scss';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default function HomePage() {
|
||||
const { config } = useConfig();
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={styles.home}>
|
||||
<div className={styles.homeText}>
|
||||
<h1
|
||||
className={styles.homeTextHeadline}
|
||||
dangerouslySetInnerHTML={{ __html: config?.home.headline || '' }}></h1>
|
||||
<p className={styles.homeTextParagraph} dangerouslySetInnerHTML={{ __html: config?.home.text || '' }}></p>
|
||||
<Link
|
||||
href="/gallery"
|
||||
className={styles.homeButton}
|
||||
dangerouslySetInnerHTML={{ __html: config?.home.buttonText || '' }}></Link>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
// return (
|
||||
// <>
|
||||
// <div className={styles.home}>
|
||||
// <div className={styles.homeText}>
|
||||
// <h1
|
||||
// className={styles.homeTextHeadline}
|
||||
// dangerouslySetInnerHTML={{ __html: config?.home.headline || '' }}></h1>
|
||||
// <p className={styles.homeTextParagraph} dangerouslySetInnerHTML={{ __html: config?.home.text || '' }}></p>
|
||||
// <Link
|
||||
// href="/gallery"
|
||||
// className={styles.homeButton}
|
||||
// dangerouslySetInnerHTML={{ __html: config?.home.buttonText || '' }}></Link>
|
||||
// </div>
|
||||
// </div>
|
||||
// </>
|
||||
// );
|
||||
|
||||
redirect(`/gallery`);
|
||||
}
|
||||
|
||||
@@ -49,12 +49,12 @@ export default function Header() {
|
||||
<Image src={logo} alt="Logo F1r3wave" priority />
|
||||
</Link>
|
||||
<nav className={styles.nav}>
|
||||
<Link href="/" className={`${styles.navLink} ${isActive('/') ? styles.navLinkActive : ''}`}>
|
||||
{/* <Link href="/" className={`${styles.navLink} ${isActive('/') ? styles.navLinkActive : ''}`}>
|
||||
Home
|
||||
</Link>
|
||||
<Link href="/gallery" className={`${styles.navLink} ${isActive('/gallery') ? styles.navLinkActive : ''}`}>
|
||||
Gallery
|
||||
</Link>
|
||||
</Link> */}
|
||||
|
||||
{isAuth ? (
|
||||
<>
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: var(--header-height);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: 30px;
|
||||
|
||||
flex: 1;
|
||||
img {
|
||||
height: 18px;
|
||||
width: auto;
|
||||
@@ -22,6 +24,8 @@
|
||||
align-items: center;
|
||||
gap: 30px;
|
||||
padding: 0 20px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
|
||||
&Link {
|
||||
transition: all 50ms ease-in-out;
|
||||
@@ -42,6 +46,6 @@
|
||||
|
||||
&Socials {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
gap: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user