Skip to content
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: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './App.css';
import AutoReview from './components/autoReview'

function App() {
return (
Expand All @@ -9,6 +10,7 @@ function App() {
My really cool blog site
</p>
</header>
<AutoReview/>
</div>
);
}
Expand Down
6 changes: 6 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ test('renders My really cool blog site logo', () => {
const linkElement = screen.getByText(/My really cool blog site/i);
expect(linkElement).toBeInTheDocument();
});

test('renders Auto Review Article', () => {
render(<App />);
const linkElement = screen.getByText(/Auto Review:/i);
expect(linkElement).toBeInTheDocument();
});
24 changes: 24 additions & 0 deletions src/components/autoReview/autoReview.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.autoReview {
border: black 7px solid;
border-radius: 10px;
margin: 5px 0px;
padding: 0px 10px;
display: inherit;
width: 25%;
flex-direction: inherit;
align-items: inherit;
}

.articleHeader{
margin: 15px 0px;
display: flex;
background: #272c35;
padding: 0px 10px;
font-size: calc(5px + 2vmin);
color: white;
text-shadow: 0 0 black;
}

.articleParagraph {
margin: 3% 0%;
}
16 changes: 16 additions & 0 deletions src/components/autoReview/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import './autoReview.css';

function AutoReview() {
return (
<div className="autoReview">
<header className="articleHeader">
<p>
Auto Review: 415 RSX W18
</p>
</header>
<p className="articleParagraph">One technological model for both semi- and fully-autonomous cars is vehicle-to-vehicle communication.</p>
</div>
);
}

export default AutoReview;