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

desafio instrutor VNW #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .eslintcache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"C:\\Users\\kelvg\\OneDrive\\Documentos\\Estuding\\challenge-instructor-vnw\\src\\App.js":"1","C:\\Users\\kelvg\\OneDrive\\Documentos\\Estuding\\challenge-instructor-VnW\\src\\reportWebVitals.js":"2"},{"size":154,"mtime":1610391075015,"results":"3","hashOfConfig":"4"},{"size":362,"mtime":1610389957571,"results":"5","hashOfConfig":"6"},{"filePath":"7","messages":"8","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ove6uw",{"filePath":"9","messages":"10","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"m5t2k1","C:\\Users\\kelvg\\OneDrive\\Documentos\\Estuding\\challenge-instructor-vnw\\src\\App.js",[],"C:\\Users\\kelvg\\OneDrive\\Documentos\\Estuding\\challenge-instructor-VnW\\src\\reportWebVitals.js",[]]
[{"C:\\Users\\pamel\\OneDrive\\Documentos\\aula git\\desafio-instrutor-VnW\\challenge-instructor-VnW\\src\\App.js":"1"},{"size":5470,"mtime":1610983288556,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"warningCount":9,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"1h7y7bu","C:\\Users\\pamel\\OneDrive\\Documentos\\aula git\\desafio-instrutor-VnW\\challenge-instructor-VnW\\src\\App.js",["6","7","8","9","10","11","12","13","14"],{"ruleId":"15","severity":1,"message":"16","line":32,"column":9,"nodeType":"17","endLine":32,"endColumn":88},{"ruleId":"15","severity":1,"message":"16","line":35,"column":10,"nodeType":"17","endLine":35,"endColumn":652},{"ruleId":"15","severity":1,"message":"16","line":39,"column":9,"nodeType":"17","endLine":39,"endColumn":98},{"ruleId":"18","severity":1,"message":"19","line":40,"column":9,"nodeType":"17","endLine":40,"endColumn":20},{"ruleId":"20","severity":1,"message":"21","line":40,"column":9,"nodeType":"17","endLine":40,"endColumn":20},{"ruleId":"15","severity":1,"message":"16","line":49,"column":9,"nodeType":"17","endLine":49,"endColumn":61},{"ruleId":"15","severity":1,"message":"16","line":58,"column":9,"nodeType":"17","endLine":58,"endColumn":61},{"ruleId":"15","severity":1,"message":"16","line":65,"column":9,"nodeType":"17","endLine":65,"endColumn":61},{"ruleId":"15","severity":1,"message":"16","line":82,"column":9,"nodeType":"17","endLine":82,"endColumn":61},"jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","jsx-a11y/anchor-has-content","Anchors must have content and the content must be accessible by a screen reader.","jsx-a11y/anchor-is-valid","The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md"]
235 changes: 235 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* html{
width: 1920px;
height: 4158px;

background: #FFFFFF 0% 0% no-repeat padding-box;

} */
.App {
text-align: center;
}
Expand Down Expand Up @@ -36,3 +48,226 @@
transform: rotate(360deg);
}
}

.Container{
background: #6D6DD1 0% 0% no-repeat padding-box;

width: 1920px;
height: 122px;

display: flex;
justify-items: flex-start;
}

.Logo{
margin-left: auto;
margin-right: auto;

width: 184px;
height: 92px;
}
.Menu{
width: 18px;
height: 12px;

display: none;
}
.Facebook-image{
width: 20px;
height: 17px;
display: flex;
}
.Twitter-image{
width: 20px;
height: 17px;
display: flex;

}
.Facebook{
margin-right: 2%;
}
.Twitter{
margin-right: 5%;
}
.Facebook-text{
text-align: center;
font: normal normal 300 10px/14px Open Sans;
color: #000000;
text-transform: uppercase;
opacity: 1;
align-items: center;

width: 109px;
height: 35px;
background: #FFFFFF 0% 0% no-repeat padding-box;
border-radius: 5px;
opacity: 1;

display: flex;
justify-content: center;
}
.Twitter-text{
text-align: center;
font: normal normal 300 10px/14px Open Sans;
color: #000000;
text-transform: uppercase;
opacity: 1;
align-items: center;

width: 109px;
height: 35px;
background: #FFFFFF 0% 0% no-repeat padding-box;
border-radius: 5px;
opacity: 1;

display: flex;
justify-content: center;
}
.Logo{
display: flex;
align-items: center;

width: 184px;
height: 92px;
}
.images-map1{
display: flex;
margin-top: 7rem;
margin-left: 7rem;

width: 100%;
height: 682px;
opacity: 1;
}
.title-map1{
position: absolute;
top: 743px;
left: 207px;
width: 311px;
height: 46px;
background: #58C7E4 0% 0% no-repeat padding-box;
opacity: 1;
text-align: center;
align-items: center;
}
.description-map1{
margin-top: -115px;
top: 806px;
left: 207px;
width: 500px;
height: 150px;

font: normal normal 600 15px/15px Open Sans;
letter-spacing: 0px;
color: #FFFFFF;
opacity: 1;
}
.images-map2,.images-map3{
display: flex;
margin-top: 5rem;
margin-left: 7rem;

width: 300px;
height: 200px;
opacity: 1;
}
.Map2, .Map3{
width: 30%;
height: 14%;
padding: 1rem;
}
.Map-2, .Map-3{
display: flex;
flex-wrap: wrap;
}
.title-map3,.description-map3{
display: flex;
align-items: center;
width: 300px;
}
.Map-4{
text-align: left;
font: normal normal normal 20px/27px Open Sans;
letter-spacing: 0px;
color: #000000;
opacity: 1;

width: 526px;
height: 353px;

}
.images-map5{
width: 248px;
height: 248px;
}
.Map-5{
display: flex;
flex-direction: column;
align-items: flex-end;
justify-items: flex-end;
}
.Footer-box{
display: flex;
}
.Footer-back{
width:1920px;
height: 70px;
background: #6D6DD1 0% 0% no-repeat padding-box;
opacity: 1;
}
.Footer-back-text{
width: 274px;
height: 27px;
text-align: center;
font: normal 600 20px/27px Open Sans;
letter-spacing: 0px;
color: #FFFFFF;
text-transform: uppercase;
opacity: 1;

display: flex;
flex-direction: row;
}
.Footer-text{
width: 1920px;
height: 140px;
background: #4F4F72 0% 0% no-repeat padding-box;
opacity: 1;
}
.Footer-logo{
width: 184px;
height: 92px;
}
.Footer-box1{
display: flex;

width: 39px;
height: 39px;
background: #FFFFFF 0% 0% ;

box-sizing: border-box;
border-radius: 100%;
}
.Footer-box2{
display: flex;

margin-left: 3%;
width: 39px;
height: 39px;
background: #FFFFFF 0% 0% ;

box-sizing: border-box;
border-radius: 50%;
}
.Footer-box3{
display: flex;
justify-items: self-end;
margin-left: 3%;
width: 39px;
height: 39px;
background: #FFFFFF 0% 0% ;

box-sizing: border-box;
border-radius: 50%;
}

109 changes: 103 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,108 @@
import React, { Component } from 'react'
import axios from 'axios'
import './App.css';
import img from './tudum.jpg'
import image from './tudum2.jpg'

function App() {

const api = axios.create({
baseURL: 'http://newsapi.org/v2/everything?domains=wsj.com&apiKey=8c7760aebb6b4f61890b5311b4c355d5'
})

class Tudum extends Component {

state = {
series: []
}

async componentDidMount() {
const response = await api.get()

this.setState({
series: response.data.articles
})
console.log(response.data.articles)
}

render(){
return (
<div className="App">
<h1>challenge-instructor-VnW</h1>
</div>
);
<div>
<header>
<div className='Container'>
<img className='Menu' src='https://img.icons8.com/android/24/000000/menu.png'/>
<img className='Logo' src= {img} alt='logo'></img>
<div className='Facebook'>
<img className='Facebook-image' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAABZklEQVRoge2YMUvDQBTH/1ebBCodOgrioASELKL5Ek5Sip9Ah6zFT9F+gfYz5CN0F5esXapDpWMxCNlU8hx0KEUbenmXS+D9lgyXe+/9eLm7cIAglEKZThDEc7eTen0CbgBcAnQM4BBApoAvAjKlsCbCOon8633jt9kr3iCcLAZI1ZhAp38Md+nn2SPCiW4OIwK3MR0s315GpPBgIv4mLRNBqyoeMCAQThaDqooHmAWCeO5CqRFnzCJYBTqp1wdwxhmzCNZF/LtVFrEC0dBz89nj3XlWNifzLkRXBS+snPbHxdN9kHJl5F7ERztHiYacxQP8At1dg56bz5jzmTkH/oPjm9+mUgETiIBttH6nw+kzcRcC4D2J/N6+k+rUgaXOJBFgpOECCq8602ojQFDN7kBL5c0W+HQcLQHWa5Wi8yGJfPZrnNp0QBcRsI0I2EYEbCMCthEB24iAbUTANiJgm8YLCEJJvgGn0FPFLWdy4AAAAABJRU5ErkJggg=='/>
<p className='Facebook-text'>Curtir</p>
</div>
<div className='Twitter'>
<img className='Twitter-image' src="https://img.icons8.com/metro/26/4a90e2/twitter.png"/>
<a href=""></a>
<p className='Twitter-text'>Seguir</p>
</div>
</div>
</header>
<body>
<div className='Map-1'>
{this.state.series.slice(0,1).map((item, index) => (
<div className='Map-1' key={index}>
<img className='images-map1' src={item.urlToImage}/>
<p className='title-map1'>{item.author}</p>
<p className='description-map1'>{item.content}</p>
</div>
))}
</div>
<div className='Map-2'>
{this.state.series.slice(1,4).map((item, index) => (
<div className='Map2' key={index}>
<img className='images-map2' src={item.urlToImage}/>
</div>
))}
</div>
<div className='Map-3'>
{this.state.series.slice(4,10).map((item, index) => (
<div className='Map' key={index}>
<img className='images-map3' src={item.urlToImage}/>
<p className='title-map3'>{item.author}</p>
<p className='description-map3'>{item.content}</p>
</div>
))}
</div>
<div className='Map-4'>
{this.state.series.slice(10,15).map((item, index) => (
<div className='Map4' key={index}>
<p className='title-map4'>{item.author}</p>
<p className='description-map4'>{item.content}</p>
</div>
))}
</div>
<div className='Map-5'>
{this.state.series.slice(15,17).map((item, index) => (
<div className='Map5' key={index}>
<img className='images-map5' src={item.urlToImage}/>
<p className='title-map5'>{item.author}</p>
<p className='description-map5'>{item.content}</p>
</div>
))}
</div>
</body>
<footer>
<div className='Footer-back'>
<p className='Footer-back-text'>Voltar ao topo</p>
</div>
<div className='Footer-text'>
<p>Direitos exclusivos do jornal Wall Street para devidos fins lucrativos</p>
<div className='Footer-box'>
<img className='Footer-logo' src= {image} alt='logo'></img>
<img className ='Footer-box1'src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAA0ElEQVRYhe2WMQ6CQBBF/xCk9RKWFnSewQZobI1XUFsrY6OJeBPNMrfwBHoN7RcLoiFmMRBHsJjX7Tb/5e8mM4CidAyVD3G8yNsINSZ95XptBH7Cd12WDSVxNdx5AyqgAiqgAiqgAs5p6JpazwkZRfMBEZ0ADCUEGjWQJMsxEZ2lwoG3jchFqY0VgDUAjyg/WtubZdnu/q1AkwY2KIS3YdifSIQDFX+ggpu1+ZT5YIyRiG4kQFdrkTCnF7noghpPQBwE/oh5Lx5el58sqMrf8AA/GTFYDuk6/QAAAABJRU5ErkJggg==" alt='caixa comentário'></img>
<img className='Footer-box2'src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAABvElEQVRIieWWsWoUURSGv3M3aBrZpEsrdsEuLzCNYCG702zwKSRsJIKNM52RZCJo5QsICjozrYsIxsLGR0ghaCtELHY197dYTNZk2HHIXRP0r2buuef/uHPPnHvhf5PVTYjjtQVorUpabOh9AHpfFDtvG4PjeG1Bch+Ayw2hRwCzW3m+/ej4uJuW5L3dPA0UQNLdqvG5aUnO2ZI0fi6KrHZbJhXH/UTiHrBU6d3ELKSmrljSLtjmXwcXxc4AGMwCfH4+dRzfjiT/GFim4nczI83zLAkK7nQ2Lkk/XgBNm8XpwK3W6Kr3bhFA4qkZH48njAsuMFiauwgeAOfckzzfehMCUqUzK66zrepOZ/2aGRuSPywqyW91u+tfJB6U5far0GAHMDbWAFiZiK1I2p0F9BAMUBTZphnpr3cz0rLMUoAoSuZnBgbI8ywxI51sElGUzLfb+y9Dg090rsmu1OslF4bD/efA9dDgqVU9Gn3tm3EjNLQWbKbge/tH4Fnq/ByLv8s+w/jS1e321cRYR7M/VcVrVnzwTGKvCfAEX7pfFai9OfZ6d9rD4fdVM640IZrxzXv/uiwfvmuS9+/qJ6hAl0Aa2m+oAAAAAElFTkSuQmCC" alt='girar tela'></img>
<img className='Footer-box3'src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABmJLR0QA/wD/AP+gvaeTAAAAqElEQVRYhe3UMQ6CQBSE4V/fcgGw0ptwA4ml5/QanITOxwVwo40aCDYmhifJfMk2m9lkmh0QEVmOmZ3MUg/cX8csOdBEZAA204LJ6/pcluX+fefe0bYXz3nYLZ0B2I4L5nybPACoqgM5D1VEZlbwH62roFnq3btJwL3DrPCIzCfN8yeNflZxBY5BGfktDbWGOsC6CmqoNdTRNNQa6gDrKqih1lCLiHztAdSasHOZtMLZAAAAAElFTkSuQmCC" alt='tela grau de atividade'></img>
</div>
</div>
</footer>
</div>
);
}
}

export default App;
export default Tudum;
Binary file added src/box.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/box1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/box2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/box3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/tudum.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/tudum2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.