Skip to content

Commit

Permalink
desafio 1 - ajustes nos links do footer
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielalencs committed Jul 18, 2024
1 parent be01a98 commit f2f9adb
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 22 deletions.
2 changes: 1 addition & 1 deletion desafio_01/assets/css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desafio_01/assets/scss/layout/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

&:hover {
color: #674ee2;
color: #f56f54;
}
}
}
Expand Down
12 changes: 0 additions & 12 deletions desafio_04/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ html {
margin: 0 auto;
}

.containerImageHero {
display: none;
}

@media (width >= 1450px) {
body {
Expand All @@ -47,13 +44,4 @@ html {
align-items: center;
height: 100vh;
}

.containerImageHero {
display: block;

img {
width: 50rem;

}
}
}
9 changes: 4 additions & 5 deletions desafio_04/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import './App.css';
import ContainerImageHero from './Components/ContainerImageHero/ContainerImageHero';
import Login from './Components/ContainerLogin/ContainerLogin';
import imageHero from './assets/hero.svg';
import Footer from './Components/Footer/Footer';

function App() {

return (
<>
<div className='containerImageHero'>
<img src={imageHero} alt="" />
</div>

<ContainerImageHero />
<Login />
<Footer />
</>
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.containerImageHero {
display: none;
}

@media (width >= 1450px) {
.containerImageHero {
display: block;

img {
width: 50rem;

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import './ContainerImageHero.css'
import imageHero from '../../assets/hero.svg';

const ContainerImageHero = () => {
return (
<div className='containerImageHero'>
<img src={imageHero} alt="" />
</div>
)
}

export default ContainerImageHero
4 changes: 2 additions & 2 deletions desafio_04/src/Components/ContainerLogin/ContainerLogin.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

.containerLogin {
width: 90%;
margin: 10rem auto;
margin: 10rem auto 0;
max-width: 40rem;
}

@media (width >= 768px) {
.containerLogin {
margin: 7rem auto 4rem;
margin: 7rem auto 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Button from '../Button/Button';

const Login = () => {


return (
<div className='containerLogin'>
<span className='welcomeTitle'>Bem-vindo de volta</span>
Expand Down
19 changes: 19 additions & 0 deletions desafio_04/src/Components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@import '../../App.css';

.footer {
margin-top: 10rem;
padding: 5rem 3rem;
text-align: center;
background-color: var(--gray-30);

.footer-paragraph {
font-size: 1.4rem;
line-height: 2.4rem;
font-weight: 600;
}

a {
color: var(--primary-color);
transition: all .3s;
}
}
15 changes: 15 additions & 0 deletions desafio_04/src/Components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import './Footer.css'

const Footer = () => {
return (
<footer className='footer'>
<p className="footer-paragraph">
Desafio da comunidade
<a href="https://github.com/iuricode/desafios-frontend"> CodeLab</a>. <br /> Desenvolvido por
<a href="https://github.com/gabrielalencs"> Gabriel de Alencar</a>.
</p>
</footer>
)
}

export default Footer

0 comments on commit f2f9adb

Please sign in to comment.