AboutPlace.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import React from "react";
  2. import styled from "styled-components";
  3. import {Container} from 'react-bootstrap'
  4. import TextScramble,{ScrambleTexts} from "@twistezo/react-text-scramble/lib/TextScramble";
  5. import lab from '../img/place_lab.png'
  6. const scrambleTexts: ScrambleTexts = [
  7. 'Anomalies',
  8. 'Anomalies everywhere',
  9. 'Freedom cannot be stopped',
  10. 'He looked a normal buddy'
  11. ]
  12. const Styled = styled.div`
  13. .jumbo {
  14. background: url(${lab}) no-repeat fixed bottom;
  15. background-size: cover;
  16. color: #FFFFFF;
  17. height: 400px;
  18. position: relative;
  19. z-index: -2;
  20. }
  21. .overlay{
  22. background-color: #fffff;
  23. opacity: 0.4;
  24. position: absolute;
  25. top: 0;
  26. left: 0;
  27. right: 0;
  28. bottom: 0;
  29. z-index: -1;
  30. }
  31. .text{
  32. padding-top: 10rem;
  33. text-align: center;
  34. align-content: center;
  35. z-index: 3;
  36. }
  37. `;
  38. export default function AboutPlace() {
  39. return(
  40. <Styled>
  41. <Container fluid className="jumbo">
  42. <div className="overlay"></div>
  43. <Container className="text">
  44. <h1>About Zone</h1>
  45. <TextScramble
  46. texts={scrambleTexts}
  47. />
  48. </Container>
  49. </Container>
  50. </Styled>
  51. );
  52. }