Skip to content

Commit

Permalink
corrected section title and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieWesolowska committed May 17, 2023
1 parent 9b3ad87 commit d93da64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/SectionTitle/SectionTitle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import css from './SectionTitle.module.css';

export const SectionTitle = ({ title, children }) => (
<div>
<h2 className={css.title}>{title}</h2>
{title && <h2 className={css.title}>{title}</h2>}
{children}
</div>
);
Expand Down
6 changes: 1 addition & 5 deletions src/components/SectionTitle/SectionTitle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
display: block;
text-align: center;
font-size: 50px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.4);
padding: 5px 10px;
border-radius: 5px;
background-color: white;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}
3 changes: 2 additions & 1 deletion src/components/Statistics/Statistics.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
color: #fff;
padding: 10px 15px;
font-size: 18px;
border-radius: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border: none;
cursor: pointer;
background: #6e6d70;
Expand Down

0 comments on commit d93da64

Please sign in to comment.