Skip to content

Commit

Permalink
desafio 09 - seção hero da página
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielalencs committed Sep 19, 2024
1 parent 10271fa commit 3ff2394
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions desafio_09/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import './App.css';

// Components

import Header from './components/Header';
import HeroSection from './components/HeroSection';


const App = () => {
return (
<>
<Header />
<main>
<HeroSection />
</main>
</>
)
}
Expand Down
19 changes: 19 additions & 0 deletions desafio_09/src/components/HeroSection/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import XboxImage from '../../assets/images/xbox.png';

const HeroSection = () => {
return (
<section className='mt-16 mb-96'>
<div className='text-center'>
<h1 className='text-5xl text-white font-semibold md:text-7xl'>Xbox series X</h1>
<h2 className='text-green-primary font-semibold uppercase mt-3 tracking-[.3px] md:text-lg lg:text-xl'>pedido antecipado</h2>
</div>

<div className='max-w-[900px] mx-auto mt-10 relative'>
<div className='after:content-[""] after:absolute after:top-0 after:w-[67%] after:left-[9.3rem] after:h-full after:inline-block after:bg-gradient-to-b after:from-[#00000000] after:to-[#0f130eda]'></div>
<img src={XboxImage} alt="Imagem de um Xbox" className='after' />
</div>
</section>
)
}

export default HeroSection;

0 comments on commit 3ff2394

Please sign in to comment.