made main page
This commit is contained in:
1 parent
b98b531162
commit
2048c17eee
4 files changed
+72
-13
No files matched your search
@@ -1,15 +1,48 @@
|
||||
.page {
|
||||
display: grid;
|
||||
gap: var(--space-12);
|
||||
min-height: 100vh;
|
||||
padding: var(--space-10);
|
||||
align-content: center;
|
||||
background: var(--color-bg);
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: var(--space-4);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: min(540px, 86vw);
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 24px 56px rgba(53, 216, 255, 0.2));
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: 32px;
|
||||
line-height: 1.15;
|
||||
font-size: clamp(40px, 8vw, 88px);
|
||||
font-weight: 900;
|
||||
line-height: 0.95;
|
||||
color: var(--color-text);
|
||||
text-shadow: 0 0 32px rgba(53, 216, 255, 0.28);
|
||||
}
|
||||
|
||||
.text {
|
||||
margin: 0;
|
||||
color: var(--color-text-muted);
|
||||
.cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.page {
|
||||
gap: var(--space-8);
|
||||
padding-block: var(--space-8);
|
||||
}
|
||||
|
||||
.cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
+32
-5
@@ -1,15 +1,42 @@
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import GeneratorCard from "../../components/GeneratorCard/GeneratorCard";
|
||||
import logo from "../../assets/common/HITGENERATOR-Logo.png";
|
||||
import styles from "./Main.module.css";
|
||||
import {useNavigate} from "react-router-dom";
|
||||
|
||||
export default function Main() {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<main className={styles.page}>
|
||||
<h1 className={styles.title}>Главная</h1>
|
||||
<p className={styles.text}>Базовая страница приложения готова.</p>
|
||||
<button onClick={() => navigate('/picture')}>Go to Picture</button>
|
||||
<button onClick={() => navigate('/video')}>Go to Video</button>
|
||||
<section className={styles.hero} aria-labelledby="main-title">
|
||||
<img
|
||||
className={styles.logo}
|
||||
src={logo}
|
||||
alt="ShitGenerator"
|
||||
width="1080"
|
||||
height="608"
|
||||
/>
|
||||
<h1 className={styles.title} id="main-title">
|
||||
ShitGenerator
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
<section className={styles.cards} aria-label="Выбор генератора">
|
||||
<GeneratorCard
|
||||
title="Генерация видео"
|
||||
description="Собирай видеоролики из идеи, промпта и нужного визуального направления."
|
||||
label="Видео"
|
||||
accent="cyan"
|
||||
onClick={() => navigate("/video")}
|
||||
/>
|
||||
<GeneratorCard
|
||||
title="Генерация картинок"
|
||||
description="Создавай изображения под задачу, стиль и настроение за пару кликов."
|
||||
label="Картинки"
|
||||
accent="violet"
|
||||
onClick={() => navigate("/picture")}
|
||||
/>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user