update hero component (left and right section)

This commit is contained in:
Nikita 2026-09-08 09:33:13 +05:00
parent 94be4b892c
commit e1caf6b998
5 changed files with 34 additions and 29 deletions

View file

@ -1,17 +1,18 @@
import styles from "@/static/hero/hero.module.css"
const Hero = () => { const Hero = () => {
return( return(
<div <section className={styles.hero}>
style={{ <div className="cont-header">
height: "500px", <div className={styles.left}>
background: "red", <h1>left</h1>
color: "white",
fontSize: "40px",
padding: "100px",
}}
>
HERO COMPONENT
</div> </div>
); <div className={styles.right}>
<h1>right</h1>
</div>
</div>
</section>
)
}; };
export default Hero; export default Hero;

View file

@ -26,3 +26,12 @@ body {
h1, a { h1, a {
color: #fff; color: #fff;
} }
.cont-header {
width: 100%;
margin: 0 auto;
padding: 0 var(--container-padding, 40px);
display: flex;
justify-content: space-between;
align-items: center;
}

View file

@ -1,5 +1,4 @@
.header { .header {
position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
@ -13,16 +12,6 @@
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
} }
.cont-header {
width: 100%;
max-width: var(--container-max-width, 1400px);
margin: 0 auto;
padding: 0 var(--container-padding, 40px);
display: flex;
justify-content: space-between;
align-items: center;
}
/* LEFT */ /* LEFT */
.left a { .left a {

View file

@ -1,5 +1,11 @@
.hero { .hero {
height: 500px; background-color: aquamarine;
background: aqua; height: calc(100vh - 90px);
font-size: 40px; }
.left,
.right {
width: 49%;
height: 90vh;
background-color: red;
} }

View file

@ -4,7 +4,7 @@ import styles from "@/static/header/header.module.css";
const Header = () => { const Header = () => {
return ( return (
<header className={styles.header}> <header className={styles.header}>
<div className={styles["cont-header"]}> <div className="cont-header">
{/* LEFT */} {/* LEFT */}
<div className={styles.left}> <div className={styles.left}>
<a href="/"> <a href="/">