Remove home page
Build and push Docker image / build-and-push (push) Successful in 1m39s

This commit is contained in:
2026-08-31 06:12:09 +02:00
parent 6f27bfdba5
commit 74474ad727
3 changed files with 28 additions and 21 deletions
+19 -16
View File
@@ -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`);
}
+2 -2
View File
@@ -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 ? (
<>
+7 -3
View File
@@ -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;
}
}