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

WIP podpora pro medailonky dobrovolníků a oprava odsazení položek v seznamu #74

Merged
merged 2 commits into from
Mar 10, 2020
Merged
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
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ Do not use heading level 1:
...
```

### Volunteers section (WIP)

You can also add volunteers to the article by adding this HTML:
```html
<div class="volunteers">
<div class="volunteer">
<img width="80px" height="80px" src="https://data.cesko.digital/picture.jpg" alt=""/>
<div class="name">John Doe</div>
<div class="note">Software Developer</div>
</div>
</div>
```

## How to Insert News Items

News items are stored in the `content/news.yaml` file in the following format:
Expand Down
41 changes: 39 additions & 2 deletions src/components/post/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ export const Content = styled.div`
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 160%;
/* or 26px */

color: #000000;
}

p, li {
line-height: 26px;
}

img {
border-radius: 10px;
Expand Down Expand Up @@ -147,6 +149,41 @@ export const Content = styled.div`
h2 {
margin-top: 50px;
}

.volunteers {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}

.volunteer {
display: flex;
flex-direction: column;
align-items: center;
margin: 15px;
width: 170px;
text-align: center;

img {
width: 80px;
height: 80px;
border-radius: 40px;
object-fit: cover;
}

.name {
margin-top: 10px;
margin-bottom: 5px;
}

.note {
font-size: 14px;
opacity: 0.5;

}

}
`;

export const Arrow = styled.img`
Expand Down