Browse Source

Add new event

environments/production/deployments/101
Yannik Rödel 1 month ago
parent
commit
d04630648e
6 changed files with 29 additions and 13 deletions
  1. BIN
      assets/venues/Stadtbuecherei-SJR-MMZG.png
  2. +0
    -1
      data/events/2019-07-27/recap.md
  3. +5
    -0
      data/events/2019-10-18/recap.md
  4. +15
    -0
      data/events/2019-11-30/event.md
  5. +7
    -10
      src/components/upcomingEvent.tsx
  6. +2
    -2
      src/pages/index.tsx

BIN
assets/venues/Stadtbuecherei-SJR-MMZG.png View File

Before After
Width: 7414  |  Height: 1531  |  Size: 609KB

+ 0
- 1
data/events/2019-07-27/recap.md View File

@@ -2,7 +2,6 @@
date: '2019-07-27'
participants: 42
team: 13
coverPhoto: './cover.jpg'
albumLink: 'https://flic.kr/s/aHsmFxmmcb'
---


+ 5
- 0
data/events/2019-10-18/recap.md View File

@@ -0,0 +1,5 @@
---
date: '2019-10-18'
participants: 10
team: 5
---

+ 15
- 0
data/events/2019-11-30/event.md View File

@@ -0,0 +1,15 @@
---
title: 'November 2019'
date: '2019-11-30'
start: '10:00'
end: '16:00'
location: 'Stadtbücherei Würzburg'
address: 'Marktplatz 9'
city: '97070 Würzburg'
latlon: [49.79505, 9.93005]
venueLogo: '../../../assets/venues/Stadtbuecherei-SJR-MMZG.png'
venueLink: 'https://www.wuerzburg.de/themen/kultur-bildung-kulturangebot/stadtbuecherei/makerspace/index.html'
enrollLink: 'https://coderdojo-wue.typeform.com/to/gHSCNX'
---

Die Stadtbücherei und der [SJR](https://www.sjr-wuerzburg.de/mit-medien-zukunft-gestalten/) laden wieder herzlich zum CoderDojo ein! Meldet euch jetzt schon an, wir werden wieder spannende Workshops dabei haben!

+ 7
- 10
src/components/upcomingEvent.tsx View File

@@ -43,15 +43,12 @@ const Wrap = styled.div`
'where'
'enroll'
'map';
margin-top: 3rem; /* For the logo */
`}
`;

const Logo = styled.a`
position: absolute !important;
right: 0;
bottom: 100%;
display: inline-block;
display: block;
text-align: right;
`;

const When = styled.p`
@@ -144,12 +141,12 @@ export interface UpcomingEventProps {
}
const UpcomingEvent = ({ event }: UpcomingEventProps): JSX.Element => (
<>
{event.venueLogo && (
<Logo href={event.venueLink || undefined}>
<Img fixed={event.venueLogo.childImageSharp.fixed} />
</Logo>
)}
<Wrap>
{event.venueLogo && (
<Logo href={event.venueLink || undefined}>
<Img fixed={event.venueLogo.childImageSharp.fixed} />
</Logo>
)}
<When>
<strong>{event.dateFormatted}</strong>
<br />

+ 2
- 2
src/pages/index.tsx View File

@@ -164,7 +164,7 @@ const IndexPage = ({ data }: IndexPageProps): JSX.Element => (
}
return (
<>
<h1>Nächstes CoderDojo</h1>
<h1>Kommende Veranstaltung:</h1>
<UpcomingEvent
event={{
...nextEvent.frontmatter,
@@ -250,7 +250,7 @@ export const query = graphql`
latlon
venueLogo {
childImageSharp {
fixed(height: 48) {
fixed(height: 96) {
...GatsbyImageSharpFixed_withWebp_tracedSVG
}
}

Loading…
Cancel
Save