forked from partypages/party-template
This commit is contained in:
parent
8a5a7cc732
commit
c25d746ecb
BIN
public/background.gif
Normal file
BIN
public/background.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
@ -3,6 +3,8 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<link rel="stylesheet" href="style_hacky_css_react_mag_mich_nicht.css">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
|
||||
9
public/style_hacky_css_react_mag_mich_nicht.css
Normal file
9
public/style_hacky_css_react_mag_mich_nicht.css
Normal file
@ -0,0 +1,9 @@
|
||||
body{
|
||||
background-image: url('/background.gif');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
height: 100vh;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
@ -4,14 +4,6 @@
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
body{
|
||||
background-image: url('/public/background.gif');
|
||||
background-size: cover;
|
||||
|
||||
height: 100vh;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
|
||||
.App {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
|
||||
import React, { ChangeEvent, useContext, useState } from 'react';
|
||||
import React, { ChangeEvent, useContext, useRef, useState } from 'react';
|
||||
import './PartyPage.css';
|
||||
import { APIEndPoint, PartyContext } from './PartyContext';
|
||||
// import MatrixBackground from './MatrixBackground';
|
||||
@ -18,7 +18,14 @@ export const PartyPage: React.FC = () => {
|
||||
const dear = myDear[partyContext.self.grammatical_gender];
|
||||
const name = partyContext.self.name;
|
||||
const party = partyContext.party;
|
||||
|
||||
const myRef = useRef<HTMLDivElement>(null)
|
||||
const executeScroll = () => {
|
||||
console.log("downvote bitte hier vergeben: https://stackoverflow.com/questions/43441856/how-to-scroll-to-an-element")
|
||||
if (myRef.current === null) {
|
||||
} else {
|
||||
myRef.current.scrollIntoView({behavior: 'smooth'})
|
||||
}
|
||||
}
|
||||
const [comingState, setComingState] = useState(partyContext.self.coming);
|
||||
|
||||
// SAFETY: If this is undefined, the contextProvider already fails
|
||||
@ -65,10 +72,10 @@ export const PartyPage: React.FC = () => {
|
||||
Diese Chance, Energie zu schnorren, wollen wir noch einmal nutzen.
|
||||
</p>
|
||||
<p>
|
||||
Daher veranstalten wir ab <strong> 18:00 </strong> eine Weihnachtsparty! Wir rechnen mit ca. 15-25 Teilnehmern.
|
||||
Daher veranstalten wir ab <strong> 18:00 </strong> eine Weihnachtsparty! Wir rechnen mit ca. 20 Teilnehmern.
|
||||
</p>
|
||||
<p>
|
||||
Wir würden uns sehr freuen, wenn auch du, {dear} {name}, am Start wärst :)
|
||||
Wir würden uns sehr freuen, wenn auch du, {dear} {name}, dabei wärst :)
|
||||
</p>
|
||||
<div className='feedback'>
|
||||
<input type="radio" id="coming-yes" name="coming" value="yes" checked={comingState === "yes"} onChange={handleSelect} />
|
||||
@ -79,11 +86,15 @@ export const PartyPage: React.FC = () => {
|
||||
<label htmlFor='coming-no'>Nein</label>
|
||||
</div>
|
||||
<div className='hero-outer' >
|
||||
Mehr Infos
|
||||
<span onClick={executeScroll}>
|
||||
<p>
|
||||
Mehr Infos </p>
|
||||
<FontAwesomeIcon icon={faAngleDown} />
|
||||
</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div className='hero fullheight'>
|
||||
<div className='hero fullheight' ref={myRef}>
|
||||
<h2>Wann und Wo?</h2>
|
||||
<p>
|
||||
<FontAwesomeIcon icon={faCalendarDays} /> <strong>16. Dezember, ab 18:00</strong>. Bitte komme nach Möglichkeit pünktlich.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user