|  | 
| 1 |  | -import React from 'react'; | 
| 2 |  | -import { MDBBtn, MDBContainer } from 'mdb-react-ui-kit'; | 
|  | 1 | +import React from "react"; | 
|  | 2 | +import { MDBBtn, MDBContainer, MDBTooltip, MDBIcon } from "mdb-react-ui-kit"; | 
| 3 | 3 | 
 | 
| 4 | 4 | function App() { | 
|  | 5 | +  function Clipboard_CopyTo(value: any) { | 
|  | 6 | +    var tempInput = document.createElement("input"); | 
|  | 7 | +    tempInput.value = value; | 
|  | 8 | +    document.body.appendChild(tempInput); | 
|  | 9 | +    tempInput.select(); | 
|  | 10 | +    document.execCommand("copy"); | 
|  | 11 | +    document.body.removeChild(tempInput); | 
|  | 12 | +  } | 
|  | 13 | + | 
|  | 14 | +  const handleClick = () => { | 
|  | 15 | +    Clipboard_CopyTo("T9TTVSQB"); | 
|  | 16 | +    var div = document.getElementById("code-success"); | 
|  | 17 | +    if (div) { | 
|  | 18 | +      div.style.display = "block"; | 
|  | 19 | +    } | 
|  | 20 | +    setTimeout(function () { | 
|  | 21 | +      // @ts-ignore | 
|  | 22 | +      document.getElementById("code-success").style.display = "none"; | 
|  | 23 | +    }, 900); | 
|  | 24 | +  }; | 
| 5 | 25 |   return ( | 
| 6 | 26 |     <MDBContainer fluid> | 
| 7 | 27 |       <div | 
| 8 |  | -        className='d-flex justify-content-center align-items-center' | 
| 9 |  | -        style={{ height: '100vh' }} | 
|  | 28 | +        className="d-flex justify-content-center align-items-center" | 
|  | 29 | +        style={{ height: "100vh" }} | 
| 10 | 30 |       > | 
| 11 |  | -        <div className='text-center'> | 
| 12 |  | -          <img | 
| 13 |  | -            className='mb-4' | 
| 14 |  | -            src='https://mdbootstrap.com/img/logo/mdb-transparent-250px.png' | 
| 15 |  | -            style={{ width: 250, height: 90 }} | 
| 16 |  | -          /> | 
| 17 |  | -          <h5 className='mb-3'> | 
| 18 |  | -            Thank you for using our product. We're glad you're with us. | 
|  | 31 | +        <div className="text-center"> | 
|  | 32 | +          <h2>Release surprise!</h2> | 
|  | 33 | +          <p className="h4 fw-bold">50% OFF MDB PRO</p> | 
|  | 34 | +          <div className="row justify-content-center"> | 
|  | 35 | +            <div className="col-md-6"> | 
|  | 36 | +              <img | 
|  | 37 | +                src="https://mdbootstrap.com/img/Marketing/campaigns/50off-SJARV.png" | 
|  | 38 | +                className="img-fluid" | 
|  | 39 | +                alt="" | 
|  | 40 | +              /> | 
|  | 41 | +            </div> | 
|  | 42 | +          </div> | 
|  | 43 | + | 
|  | 44 | +          <h5 className="mb-3"> | 
|  | 45 | +            Use this coupon code before it expires and claim the reward | 
| 19 | 46 |           </h5> | 
| 20 |  | -          <p className='mb-3'>MDB Team</p> | 
| 21 |  | -          <MDBBtn | 
| 22 |  | -            tag='a' | 
| 23 |  | -            href='https://mdbootstrap.com/docs/standard/getting-started/' | 
| 24 |  | -            target='_blank' | 
| 25 |  | -            role='button' | 
|  | 47 | +          <p className="mb-3"> | 
|  | 48 | +            The coupon code will be valid until the end of the week | 
|  | 49 | +          </p> | 
|  | 50 | + | 
|  | 51 | +          <div className="mt-2"> | 
|  | 52 | +            <code className="h2 border rounded py-1 px-5 flex-item me-2"> | 
|  | 53 | +              T9TTVSQB | 
|  | 54 | +            </code> | 
|  | 55 | +            <br /> | 
|  | 56 | + | 
|  | 57 | +            <MDBBtn | 
|  | 58 | +              className="me-2" | 
|  | 59 | +              id="disc-50" | 
|  | 60 | +              href="#" | 
|  | 61 | +              size="lg" | 
|  | 62 | +              color="info" | 
|  | 63 | +              style={{ backgroundColor: "#009fe7" }} | 
|  | 64 | +              onClick={handleClick} | 
|  | 65 | +            > | 
|  | 66 | +              COPY TO CLIPBOARD <MDBIcon far icon="copy" /> | 
|  | 67 | +            </MDBBtn> | 
|  | 68 | +            <MDBBtn | 
|  | 69 | +              outline | 
|  | 70 | +              className="mt-3" | 
|  | 71 | +              href="https://mdbootstrap.com/docs/standard/getting-started/" | 
|  | 72 | +              size="lg" | 
|  | 73 | +              target="_blank" | 
|  | 74 | +              style={{ borderColor: "#009fe7", color: "#009fe7" }} | 
|  | 75 | +            > | 
|  | 76 | +              MDB tutorial | 
|  | 77 | +            </MDBBtn> | 
|  | 78 | +          </div> | 
|  | 79 | +          <p> | 
|  | 80 | +            See <a href="https://mdbootstrap.com/pro/">prices</a> | 
|  | 81 | +          </p> | 
|  | 82 | +          <div | 
|  | 83 | +            className="my-2 me-2 alert alert-success" | 
|  | 84 | +            id="code-success" | 
|  | 85 | +            style={{ display: "none", position: 'fixed', width: '300px', top: '0', right: '0' }} | 
| 26 | 86 |           > | 
| 27 |  | -            Start MDB tutorial | 
| 28 |  | -          </MDBBtn> | 
|  | 87 | +            Copied | 
|  | 88 | +          </div> | 
| 29 | 89 |         </div> | 
| 30 | 90 |       </div> | 
| 31 | 91 |     </MDBContainer> | 
|  | 
0 commit comments