Skip to content

Commit

Permalink
style setup for book section
Browse files Browse the repository at this point in the history
  • Loading branch information
rrigato committed Nov 26, 2023
1 parent 1f28b40 commit fe0097a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/css/homepageSection.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ ul{
margin-right: 10px;
}

.book-details{
list-style-position: inside;
}

.homepage-content{
background-color: #aaaaaa;
border-radius: 5%;
Expand Down
9 changes: 9 additions & 0 deletions static/js/BookRecommendations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ export function BookRecommendations(){
<div>
<ul>
<h3>Everyday Reads</h3>
<li>Incerto by
<a href='https://en.wikipedia.org/wiki/Nassim_Nicholas_Taleb#Writing_career'>Nassim Taleb</a>
<li className='book-details'>
Five book collection centered around the understanding of randomness in your everyday life.

</li>

</li>

<h3>Software Engineering</h3>
</ul>
</div>
Expand Down
5 changes: 5 additions & 0 deletions static/tests/BookRecommendations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ describe('BookRecommendations displayed on screen', () => {
const {getAllByRole, getByRole} = render(<BookRecommendations/>);


const bookLinks = getAllByRole(
'link'
);
const numHeaders = getAllByRole(
'heading'
);
expect(bookLinks.length).toBe(1);
expect(numHeaders.length).toBe(2);

});
});

0 comments on commit fe0097a

Please sign in to comment.