Browse Source

first commit

master
Rino Grupp 2 years ago
parent
commit
6e1dc37521
27 changed files with 16839 additions and 31 deletions
  1. +25
    -0
      manifest.json
  2. +16031
    -0
      package-lock.json
  3. +20
    -1
      package.json
  4. BIN
      public/banner.jpg
  5. BIN
      public/bannerBackup.jpg
  6. BIN
      public/bannerStripes.jpg
  7. BIN
      public/logo-mvo.png
  8. BIN
      public/media/image/ausklang.jpg
  9. BIN
      public/media/image/gemeinderat.jpg
  10. BIN
      public/media/image/kirche.jpg
  11. BIN
      public/media/image/rathaus.jpg
  12. BIN
      public/media/image/umzug.jpg
  13. BIN
      public/media/image/wecken.jpg
  14. BIN
      public/media/maientag.jpg
  15. BIN
      public/media/video/0500_wecken.mp4
  16. BIN
      public/media/video/0505_gemeinderat.mp4
  17. +315
    -23
      src/App.js
  18. BIN
      src/Intro.wav
  19. +37
    -0
      src/Timeline.js
  20. +120
    -0
      src/TimelineItem.js
  21. +20
    -5
      src/index.css
  22. +4
    -2
      src/index.js
  23. BIN
      src/logo-mvo.png
  24. +72
    -0
      src/service-worker.js
  25. +137
    -0
      src/serviceWorkerRegistration.js
  26. +58
    -0
      src/timelineItems.json
  27. BIN
      static/Intro.wav

+ 25
- 0
manifest.json View File

@ -0,0 +1,25 @@
{
"short_name": "MVO-APP",
"name": "Maientag",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

+ 16031
- 0
package-lock.json
File diff suppressed because it is too large
View File


+ 20
- 1
package.json View File

@ -2,14 +2,33 @@
"name": "maientag",
"version": "0.1.0",
"private": true,
"homepage": "https://mv-owen.de/maientag_beta",
"dependencies": {
"@material-ui/core": "^4.11.4",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.58",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"material-ui": "^0.20.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-player": "^2.9.0",
"react-scripts": "4.0.3",
"web-vitals": "^1.0.1"
"reactjs-media": "^1.5.1",
"web-vitals": "^1.0.1",
"workbox-background-sync": "^5.1.3",
"workbox-broadcast-update": "^5.1.3",
"workbox-cacheable-response": "^5.1.3",
"workbox-core": "^5.1.3",
"workbox-expiration": "^5.1.3",
"workbox-google-analytics": "^5.1.3",
"workbox-navigation-preload": "^5.1.3",
"workbox-precaching": "^5.1.3",
"workbox-range-requests": "^5.1.3",
"workbox-routing": "^5.1.3",
"workbox-strategies": "^5.1.3",
"workbox-streams": "^5.1.3"
},
"scripts": {
"start": "react-scripts start",

BIN
public/banner.jpg View File

Before After
Width: 30000  |  Height: 650  |  Size: 571 KiB

BIN
public/bannerBackup.jpg View File

Before After
Width: 10000  |  Height: 606  |  Size: 239 KiB

BIN
public/bannerStripes.jpg View File

Before After
Width: 7920  |  Height: 606  |  Size: 127 KiB

BIN
public/logo-mvo.png View File

Before After
Width: 2004  |  Height: 606  |  Size: 88 KiB

BIN
public/media/image/ausklang.jpg View File

Before After
Width: 3648  |  Height: 2048  |  Size: 2.7 MiB

BIN
public/media/image/gemeinderat.jpg View File

Before After
Width: 1344  |  Height: 760  |  Size: 135 KiB

BIN
public/media/image/kirche.jpg View File

Before After
Width: 3648  |  Height: 2048  |  Size: 2.7 MiB

BIN
public/media/image/rathaus.jpg View File

Before After
Width: 5472  |  Height: 3072  |  Size: 10 MiB

BIN
public/media/image/umzug.jpg View File

Before After
Width: 1280  |  Height: 792  |  Size: 138 KiB

BIN
public/media/image/wecken.jpg View File

Before After
Width: 3543  |  Height: 2362  |  Size: 8.6 MiB

BIN
public/media/maientag.jpg View File

Before After
Width: 1024  |  Height: 634  |  Size: 106 KiB

BIN
public/media/video/0500_wecken.mp4 View File


BIN
public/media/video/0505_gemeinderat.mp4 View File


+ 315
- 23
src/App.js View File

@ -1,25 +1,317 @@
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
import React, { Component } from 'react';
// Material-UI
import { Grid, withStyles, BottomNavigation, BottomNavigationAction, Switch } from '@material-ui/core';
import IconButton from '@material-ui/core/IconButton';
//Icons
import FavoriteIcon from '@material-ui/icons/Favorite';
import InfoIcon from '@material-ui/icons/Info';
import NotificationsIcon from '@material-ui/icons/Notifications';
import InstagramIcon from '@material-ui/icons/Instagram';
import NotificationsOffIcon from '@material-ui/icons/NotificationsOff';
import { Button } from '@material-ui/core'
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import Timeline from '@material-ui/lab/Timeline';
import Typography from '@material-ui/core/Typography';
//Custom
import CustomTimelineItem from './TimelineItem';
var { timelineContents } = require('./timelineItems.json')
const CONTENT = {
MAINMENU: 0,
NEWEST: 1,
TIMELINE: 2,
GALLERY: 3
}
const styles = theme => ({
root: {
flexGrow: 1
},
title: {
flexGrow: 1,
},
content: {
margin: 20
},
navigation: {
position: 'absolute',
bottom: 0
},
appBar: {
backgroundColor: "#fff"
},
timelineContents: {
marginBottom: "20px"
},
headerLogo: {
height: "50px",
backgroundImage: `url("${process.env.PUBLIC_URL}/banner.jpg")`,
backgroundSize: "cover",
backgroundRepeat: "no-repeat",
marginBottom: "10px",
borderTopLeftRadius: "15px",
},
alertButton: {
float: "right",
marginRight: "0px",
backgroundColor: "#b51d48",
'&:hover': {
background: "#4a0013",
},
borderTopRightRadius: "0px",
borderBottomRightRadius: "0px",
height: "100%"
}
})
const theme = createMuiTheme({
palette: {
primary: {
main: "#4A0013"
},
secondary: {
main: '#fff'
}
}
})
class App extends Component {
state = {
selected: CONTENT.MAINMENU,
mustAlert: false,
alertActivated: false,
alertAllowed: false,
alertSupported: true,
latestPublished: 0,
nextToPublish: 0,
currentTime: 0,
publishedItemsCount: 0,
finalItemsCount: timelineContents.length,
debug: false,
dayOffset:6
}
componentDidMount() {
if (!("Notification" in window)) {
console.log("This browser does not support desktop notification");
this.setState({ alertSupported: false })
}
//First initally counting the already published items to prevent a lot of notifications at the beginning
let initialCount = 0;
let currentTime = new Date().getTime() + (86400000*this.state.dayOffset)
timelineContents.forEach(timelineItem => {
if (timelineItem.publishAt < currentTime) {
initialCount++;
}
})
this.setState({ publishedItemsCount: initialCount })
setInterval(() => {
let currentTime = new Date().getTime() + (86400000*this.state.dayOffset)
let newCount = 0;
timelineContents.forEach(timelineItem => {
if (timelineItem.publishAt < currentTime) {
newCount++;
}
})
if (this.state.publishedItemsCount < newCount) {
this.setState({ publishedItemsCount: newCount })
this.showNotification()
}
}, 5000)
}
constructor(props) {
super(props)
this.showNotification = this.showNotification.bind(this);
}
showNotification() {
if (this.state.alertActivated && this.state.alertSupported) {
new Notification("Neues Event am Maientag",
{
body: "Endlich, der nächste Schritt am Maientag ist erreicht",
icon: "https://img.icons8.com/emoji/452/smiling-face-with-hearts.png"
})
}
}
switchAlert = () => {
if (!this.state.alertAllowed) {
Notification.requestPermission()
.then(permission => {
if (permission === "granted") {
this.setState({ alertAllowed: true })
}
});
}
this.setState({ alertActivated: !this.state.alertActivated })
}
handleSwitch = () => {
this.setState({ debug: !this.state.debug })
}
createNewest = () => {
return (
<Grid container justify="center">
<Grid item>
<p>Hier kommen einleitende Worte hin</p>
</Grid>
</Grid>
)
}
createGallery = () => {
return (
<Grid container justify="center" >
<Grid item>
<p>Hier evtl ne Gallerie oder Instabilder mit #maientagOwen ?</p>
</Grid>
</Grid >
)
}
createTimelineItems() {
let timelineItems = []
let currentTime = new Date().getTime() + (86400000*this.state.dayOffset)
console.log(currentTime)
timelineContents.forEach(timelineItem => {
if ((timelineItem.publishAt < currentTime) || this.state.debug) {
timelineItems.push(<CustomTimelineItem data={timelineItem} key={timelineItem.title} />)
}
})
return timelineItems
}
createTimeline = () => {
const { classes } = this.props;
return (
<div className={classes.timelineContent}>
<Timeline align="alternate">
{this.createTimelineItems()}
</Timeline>
{this.state.publishedItemsCount < this.state.finalItemsCount ?
<Grid container justify="center">
<Grid item>
<Typography variant="h5">Mehr kommt später</Typography>
</Grid>
</Grid> : <div></div>
}
</div>
)
}
contentSwitch = () => {
switch (this.state.selected) {
case CONTENT.MAINMENU:
return this.createNewest()
case CONTENT.NEWEST:
return this.createTimeline()
case CONTENT.TIMELINE:
return this.createGallery()
default:
return (<p>Fehler</p>)
}
}
render() {
const { classes } = this.props;
return (
<div className={classes.root}>
<ThemeProvider theme={theme}>
<header className={classes.headerLogo}>
<IconButton onClick={this.switchAlert} className={classes.alertButton}>
{this.state.alertActivated ? <NotificationsIcon color="secondary" /> : <NotificationsOffIcon color="secondary" />}
</IconButton>
</header>
<BottomNavigation
value={this.state.selected}
onChange={(event, newValue) => {
this.setState({ selected: newValue });
}}
showLabels
>
<BottomNavigationAction label="Startseite" icon={<InfoIcon />} />
<BottomNavigationAction label="Timeline" icon={<FavoriteIcon />} />
<BottomNavigationAction label="Gallery" icon={<InstagramIcon />} />
</BottomNavigation>
<div>
{this.contentSwitch()}
</div>
</ThemeProvider>
<Grid container justify="space-around">
<Grid item>
<Button onClick={this.showNotification}>
Test Notification
</Button>
</Grid>
<Grid item>
<Typography>Debugmodus </Typography>
<Switch
checked={this.state.debug}
onChange={this.handleSwitch}
color="primary"
name="checkedB"
inputProps={{ 'aria-label': 'primary checkbox' }}
/>
</Grid>
</Grid>
</div >
)
}
}
export default App;
App.propTypes = {
classes: PropTypes.object.isRequired,
};
export default withStyles(styles)(App)
/*
<AppBar position="static" classes={classes.Appbar}>
<Grid container direction="row" justify="space-between" align-items="center">
<Grid item>
<img src={logo} width={100} alt="logo"></img>
</Grid>
<Grid item>
</Grid>
{this.state.alertSupported ?
<Grid item>
<IconButton onClick={this.switchAlert}>
{this.state.alertActivated ? <NotificationsIcon color="secondary" /> : <NotificationsOffIcon color="secondary" />}
</IconButton>
</Grid>: <div></div>}
</Grid>
</AppBar>
*/

BIN
src/Intro.wav View File


+ 37
- 0
src/Timeline.js View File

@ -0,0 +1,37 @@
import React, { Component } from 'react';
import Timeline from '@material-ui/lab/Timeline';
import Typography from '@material-ui/core/Typography';
import { Grid } from '@material-ui/core';
import CustomTimelineItem from './TimelineItem';
var {timelineContents}= require('./timelineItems.json')
export default class CustomTimeline extends Component {
createTimelineItems() {
console.log(timelineContents)
return timelineContents.map(tlc =>
<CustomTimelineItem data={tlc} key={tlc.title} />
)
}
render() {
return (
<div>
<Timeline align="alternate">
{this.createTimelineItems()}
</Timeline>
<Grid container justify="center">
<Grid item>
<Typography variant="h5">Mehr kommt später</Typography>
</Grid>
</Grid>
</div>
);
}
}

+ 120
- 0
src/TimelineItem.js View File

@ -0,0 +1,120 @@
import React from "react";
import { makeStyles } from '@material-ui/styles';
import TimelineItem from '@material-ui/lab/TimelineItem';
import TimelineSeparator from '@material-ui/lab/TimelineSeparator';
import TimelineConnector from '@material-ui/lab/TimelineConnector';
import TimelineContent from '@material-ui/lab/TimelineContent';
import TimelineOppositeContent from '@material-ui/lab/TimelineOppositeContent';
import TimelineDot from '@material-ui/lab/TimelineDot';
import Typography from '@material-ui/core/Typography';
import { Button, Card, CardActionArea, CardActions, CardContent, CardMedia, Modal } from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
timelineContent: {
},
paper: {
position: 'absolute',
width: "80vw",
border: '2px solid #000',
backgroundColor: '#000'
},
root: {
maxWidth: 600,
},
media: {
height: 140,
},
}))
function getModalStyle() {
const top = 50;
const left = 50;
return {
top: `${top}%`,
left: `${left}%`,
transform: `translate(-${top}%, -${left}%)`,
};
}
export default function CustomTimelineItem(props) {
const classes = useStyles()
const [modalStyle] = React.useState(getModalStyle);
const [open, setOpen] = React.useState(false);
const handleOpen = () => {
setOpen(true);
};
const handleClose = () => {
setOpen(false);
};
return (
<TimelineItem>
<TimelineOppositeContent>
<Typography variant="body2" color="textSecondary">
{props.data.time}
</Typography>
</TimelineOppositeContent>
<TimelineSeparator>
<TimelineDot>
</TimelineDot>
<TimelineConnector />
</TimelineSeparator>
<TimelineContent className={classes.timelineContent}>
<Card className={classes.root}>
<CardActionArea>
<CardMedia
className={classes.media}
image={process.env.PUBLIC_URL + props.data.titleImage}
title={props.data.title}
>
</CardMedia>
<CardContent>
<Typography gutterBottom variant="h5" component="h2">
{props.data.title}
</Typography>
<Typography variant="body2" color="textSecondary" component="p">
{props.data.description}
</Typography>
</CardContent>
</CardActionArea>
<CardActions>
<Button size="small" color="primary" onClick={handleOpen}>
Zum Videoclip
</Button>
</CardActions>
</Card>
</TimelineContent>
<Modal
open={open}
onClose={handleClose}
aria-labelledby="simple-modal-title"
aria-describedby="simple-modal-description"
>
<div style={modalStyle} className={classes.paper}>
<video width="100%%" controls autoPlay={true} >
<source src={process.env.PUBLIC_URL + props.data.video} />
</video>
</div>
</Modal>
</TimelineItem>
)
}
/*
<Paper elevation={3} className={classes.paper}>
<Typography variant="h6" component="h1">
{props.title}
</Typography>
<Typography variant="caption">{props.description}</Typography>
</Paper>
*/

+ 20
- 5
src/index.css View File

@ -1,13 +1,28 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #494949;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
header {
-webkit-box-shadow: 0px 0px 10px 1px rgba(74,0,19,1);
-moz-box-shadow: 0px 0px 10px 1px rgba(74,0,19,1);
box-shadow: 0px 0px 10px 1px rgba(74,0,19,1);
}
#root {
max-width: 1200px;
margin: auto;
min-height: 100vh;
-webkit-box-shadow: 7px 5px 15px 5px #2f000c;
box-shadow: 7px 5px 15px 5px #2f000c;
background-color: #fff;
border-top-left-radius: 15px;
border-bottom-right-radius: 15px;
}

+ 4
- 2
src/index.js View File

@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
ReactDOM.render(
<React.StrictMode>
@ -11,7 +11,9 @@ ReactDOM.render(
document.getElementById('root')
);
serviceWorkerRegistration.register()
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
//reportWebVitals();

BIN
src/logo-mvo.png View File

Before After
Width: 2004  |  Height: 606  |  Size: 88 KiB

+ 72
- 0
src/service-worker.js View File

@ -0,0 +1,72 @@
/* eslint-disable no-restricted-globals */
// This service worker can be customized!
// See https://developers.google.com/web/tools/workbox/modules
// for the list of available Workbox modules, or add any other
// code you'd like.
// You can also remove this file if you'd prefer not to use a
// service worker, and the Workbox build step will be skipped.
import { clientsClaim } from 'workbox-core';
import { ExpirationPlugin } from 'workbox-expiration';
import { precacheAndRoute, createHandlerBoundToURL } from 'workbox-precaching';
import { registerRoute } from 'workbox-routing';
import { StaleWhileRevalidate } from 'workbox-strategies';
clientsClaim();
// Precache all of the assets generated by your build process.
// Their URLs are injected into the manifest variable below.
// This variable must be present somewhere in your service worker file,
// even if you decide not to use precaching. See https://cra.link/PWA
precacheAndRoute(self.__WB_MANIFEST);
// Set up App Shell-style routing, so that all navigation requests
// are fulfilled with your index.html shell. Learn more at
// https://developers.google.com/web/fundamentals/architecture/app-shell
const fileExtensionRegexp = new RegExp('/[^/?]+\\.[^/]+$');
registerRoute(
// Return false to exempt requests from being fulfilled by index.html.
({ request, url }) => {
// If this isn't a navigation, skip.
if (request.mode !== 'navigate') {
return false;
} // If this is a URL that starts with /_, skip.
if (url.pathname.startsWith('/_')) {
return false;
} // If this looks like a URL for a resource, because it contains // a file extension, skip.
if (url.pathname.match(fileExtensionRegexp)) {
return false;
} // Return true to signal that we want to use the handler.
return true;
},
createHandlerBoundToURL(process.env.PUBLIC_URL + '/index.html')
);
// An example runtime caching route for requests that aren't handled by the
// precache, in this case same-origin .png requests like those from in public/
registerRoute(
// Add in any other file extensions or routing criteria as needed.
({ url }) => url.origin === self.location.origin && url.pathname.endsWith('.png'), // Customize this strategy as needed, e.g., by changing to CacheFirst.
new StaleWhileRevalidate({
cacheName: 'images',
plugins: [
// Ensure that once this runtime cache reaches a maximum size the
// least-recently used images are removed.
new ExpirationPlugin({ maxEntries: 50 }),
],
})
);
// This allows the web app to trigger skipWaiting via
// registration.waiting.postMessage({type: 'SKIP_WAITING'})
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
// Any other custom service worker logic can go here.

+ 137
- 0
src/serviceWorkerRegistration.js View File

@ -0,0 +1,137 @@
// This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a page, after all the
// existing tabs open on the page have been closed, since previously cached
// resources are updated in the background.
// To learn more about the benefits of this model and instructions on how to
// opt-in, read https://cra.link/PWA
const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||
// [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' ||
// 127.0.0.0/8 are considered localhost for IPv4.
window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)
);
export function register(config) {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
// The URL constructor is available in all browsers that support SW.
const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
if (publicUrl.origin !== window.location.origin) {
// Our service worker won't work if PUBLIC_URL is on a different origin
// from what our page is served on. This might happen if a CDN is used to
// serve assets; see https://github.com/facebook/create-react-app/issues/2374
return;
}
window.addEventListener('load', () => {
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
if (isLocalhost) {
// This is running on localhost. Let's check if a service worker still exists or not.
checkValidServiceWorker(swUrl, config);
// Add some additional logging to localhost, pointing developers to the
// service worker/PWA documentation.
navigator.serviceWorker.ready.then(() => {
console.log(
'This web app is being served cache-first by a service ' +
'worker. To learn more, visit https://cra.link/PWA'
);
});
} else {
// Is not localhost. Just register service worker
registerValidSW(swUrl, config);
}
});
}
}
function registerValidSW(swUrl, config) {
navigator.serviceWorker
.register(swUrl)
.then((registration) => {
registration.onupdatefound = () => {
const installingWorker = registration.installing;
if (installingWorker == null) {
return;
}
installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed') {
if (navigator.serviceWorker.controller) {
// At this point, the updated precached content has been fetched,
// but the previous service worker will still serve the older
// content until all client tabs are closed.
console.log(
'New content is available and will be used when all ' +
'tabs for this page are closed. See https://cra.link/PWA.'
);
// Execute callback
if (config && config.onUpdate) {
config.onUpdate(registration);
}
} else {
// At this point, everything has been precached.
// It's the perfect time to display a
// "Content is cached for offline use." message.
console.log('Content is cached for offline use.');
// Execute callback
if (config && config.onSuccess) {
config.onSuccess(registration);
}
}
}
};
};
})
.catch((error) => {
console.error('Error during service worker registration:', error);
});
}
function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page.
fetch(swUrl, {
headers: { 'Service-Worker': 'script' },
})
.then((response) => {
// Ensure service worker exists, and that we really are getting a JS file.
const contentType = response.headers.get('content-type');
if (
response.status === 404 ||
(contentType != null && contentType.indexOf('javascript') === -1)
) {
// No service worker found. Probably a different app. Reload the page.
navigator.serviceWorker.ready.then((registration) => {
registration.unregister().then(() => {
window.location.reload();
});
});
} else {
// Service worker found. Proceed as normal.
registerValidSW(swUrl, config);
}
})
.catch(() => {
console.log('No internet connection found. App is running in offline mode.');
});
}
export function unregister() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.ready
.then((registration) => {
registration.unregister();
})
.catch((error) => {
console.error(error.message);
});
}
}

+ 58
- 0
src/timelineItems.json View File

@ -0,0 +1,58 @@
{
"timelineContents": [
{
"time": "05:00",
"title": "Wecken der Bürgermeisterin",
"description": "Traditionsgemäß starten wir um 5 Uhr mit dem Wecken bei Bürgermeisterin Grötzinger. Viele Musiker haben sich oder ihr Instrument heute besonders mit einem Blumenkränzchen herausgeputzt.",
"titleImage": "/media/image/wecken.jpg",
"video": "/media/video/0500_wecken.mp4",
"icon": "todo",
"publishAt": 1621306800000
},
{
"time": "05:00 - 9:00",
"title": "Wecken der Gemeinderäte",
"description": "Als Anerkennung der guten Zusammenarbeit bekommt jeder Gemeinderat einen individuellen Weckruf. Ein Teil des Weges legen wir hierbei in Marschformation zurück.",
"titleImage": "/media/image/gemeinderat.jpg",
"video": "/media/video/0505_gemeinderat.mp4",
"icon": "todo",
"publishAt": 1621307100000
},
{
"time": "09:00",
"title": "Bändertanz und Festzug zum Rathaus",
"description": "Um 9 Uhr führen die Grundschulkinder den traditionellen Bändertanz auf. Nach diesem Highlight führen wir den Festzug zum Rathaus an. Gefolgt von der Festgemeinde erreichen wir den Rathausplatz. Zur Abrundung der Rede der Bürgermeisterin spielen wir das altbekannte Lied „Geh aus mein Herz“ in neuer und alter Version, so dass jeder begeistert einstimmen kann.",
"titleImage": "/media/image/rathaus.jpg",
"video": "/media/video/0505_gemeinderat.mp4",
"icon": "todo",
"publishAt": 1621321200000
},
{
"time": "09:30",
"title": "Umzug zur Kirche",
"description": "Um die Festbesucher musikalisch auf dem Weg zur Kirche zu begleiten, führt die Stadtkapelle den Umzug an. Vor der Kirche stehen wir Spalier, bis alle die Marienkirche erreicht haben. ",
"titleImage": "/media/image/kirche.jpg",
"video": "/media/video/0505_gemeinderat.mp4",
"icon": "todo",
"publishAt": 1621321200000
},
{
"time": "14:00",
"title": "Umzug mit der Grundschule",
"description": "Nach kurzer Mittagspause startet der zweite Teil des Maientags. Das Thema des Maientages lässt sich anhand der vielfältig gebastelten Kostüme der Grundschulkinder erahnen. Unser Weg führt uns je nach Wetter entweder zur Teckhalle oder zum Maienwasen. Dort angekommen veranstalten die Schulkinder ihr Schauspiel. ",
"titleImage": "/media/image/umzug.jpg",
"video": "/media/video/0505_gemeinderat.mp4",
"icon": "todo",
"publishAt": 1621321200000
},
{
"time": "15:30",
"title": "Ausklang am Festplatz",
"description": "Die Stadtkapelle lässt den Maientag anschließend mit einem Platzkonzert ausklingen.",
"titleImage": "/media/image/ausklang.jpg",
"video": "/media/video/0505_gemeinderat.mp4",
"icon": "todo",
"publishAt": 1621321200000
}
]
}

BIN
static/Intro.wav View File


Loading…
Cancel
Save