Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #4

Merged
merged 3 commits into from
Sep 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
V0.5 Estilo de acordo com o Portal de noticias
  • Loading branch information
matheus1994santos committed Sep 10, 2022
commit 056d7d95b8628157261d1383b6813cf21dfe0652
2 changes: 1 addition & 1 deletion src/components/Main/Main.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ const Main = () => {
{ dados && dados.map( ({id, imageUrl, newsSite, publisheAt, summary, title, updateAt, url }) => (
// <section className={(id) % 2 != 0 ? styles.container0 : styles.container1}>
<Article key={id}>
<div className={`cont`} >
<div className={ `cont ${newsSite}` } >
<h1>{title}</h1>
<p className='Report'>Reportagem do <span><b>{newsSite}</b></span></p>
<div>
1 change: 1 addition & 0 deletions src/components/Main/Main.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container0{
max-width: 1280px;
background-color: rgba(221, 255, 71, 0.419);
background-color: #ff4e00;
margin: 4px auto;
padding: 24px 2%;
}
38 changes: 11 additions & 27 deletions src/components/Main/StyleMain.js
Original file line number Diff line number Diff line change
@@ -76,35 +76,19 @@ export const Article = styled.article`
}
}

& .cont1{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 4% 0;

& p{
text-align: center;
margin-bottom: 12px;
}
& .NASASpaceflight{
background-color: #d15e60;
}

& div{
display: flex;
text-align: justify;
align-items: center;
max-width: 760px;
gap: 12px;
& .SpaceNews{
background-color: #EB1D24;
}

& p{
text-align: justify;
font-size: 18px;
}
}
& .Teslarati{
background-color: #23d100;
}

& img{
max-width: 440px;
max-height: 280px;
border: 0.3px solid rgb(135, 218, 235);
}
& .Arstechnica{
background-color: #ff4e00;
}
`;