generated from aichner/React-MDB-Firebase-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from aichner/add-analysis-page-1
Add analysis page 1
- Loading branch information
Showing
18 changed files
with
535 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
//> React | ||
// Contains all the functionality necessary to define React components | ||
import React from "react"; | ||
|
||
//> MDB | ||
// "Material Design for Bootstrap" is a great UI design framework | ||
import { | ||
MDBContainer, | ||
MDBBtn, | ||
MDBModal, | ||
MDBModalBody, | ||
MDBIcon, | ||
MDBRow, | ||
} from "mdbreact"; | ||
|
||
class ModalPage extends React.Component { | ||
state = { | ||
modal1: localStorage.getItem("cookie") ? false : true, | ||
}; | ||
|
||
toggle = (nr) => () => { | ||
let modalNumber = "modal" + nr; | ||
|
||
this.setState( | ||
{ | ||
[modalNumber]: !this.state[modalNumber], | ||
}, | ||
() => { | ||
if (!localStorage.getItem("cookie")) { | ||
localStorage.setItem("cookie", true); | ||
} | ||
} | ||
); | ||
}; | ||
|
||
render() { | ||
return ( | ||
<MDBModal | ||
isOpen={this.state.modal1} | ||
toggle={this.toggle(1)} | ||
frame | ||
position="bottom" | ||
> | ||
<MDBModalBody className="text-center py-4"> | ||
<MDBRow className="justify-content-center align-items-center"> | ||
<p className="pt-3 pr-2 text-left"> | ||
Wir verwenden Cookies, um die Funktionsfähigkeit der Website | ||
aufrecht zu erhalten. | ||
</p> | ||
<MDBBtn color="agency-red" onClick={this.toggle(1)} size="lg"> | ||
Ok, danke | ||
</MDBBtn> | ||
</MDBRow> | ||
</MDBModalBody> | ||
</MDBModal> | ||
); | ||
} | ||
} | ||
|
||
export default ModalPage; | ||
|
||
/** | ||
* SPDX-License-Identifier: (EUPL-1.2) | ||
* Copyright © 2019-2020 Werbeagentur Christian Aichner | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#analysis, | ||
.showcase { | ||
margin-top: 4rem !important; | ||
h1 { | ||
font-size: 6rem; | ||
font-weight: bold; | ||
} | ||
.feature { | ||
margin: 0.7rem 0; | ||
i { | ||
width: 20px; | ||
text-align: center; | ||
margin-right: 0.4rem; | ||
} | ||
small { | ||
display: block; | ||
} | ||
} | ||
} | ||
.showcase { | ||
background: #e6e6e6; | ||
} | ||
|
||
/** | ||
* SPDX-License-Identifier: (EUPL-1.2) | ||
* Copyright © 2019-2020 Werbeagentur Christian Aichner | ||
*/ |
Oops, something went wrong.