repl.it
HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • gifthover.json
  • giftopen.json
  • lottie.js
  • script.js
  • style.css
  • victory.json
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!doctype html>

<html lang="en">
<head>
    <meta charset="utf-8">

    <title></title>
    <meta name="author" content="SitePoint">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="css/styles.css?v=1.0">
    <link href="https://fonts.googleapis.com/css?family=Nunito&display=swap" rel="stylesheet">
    <style>

        body {
            background-color: rgba(0, 0, 0, 0.5);
        }

        .main {
            width:100%;
            max-width: 780px;
            height: 650px;
            margin: auto;
            background: #F7F9FF;
            position: relative;
            border-radius: 15px;
            position: fixed;
            left: 50%;
            top: 50%;
            -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            box-shadow: 0 0 50px rgba(0,0,0,1);
        }

        .close {
            position: absolute;
            top: 21px;
            right: 21px;
            display: block;
            width: auto;
            padding: 0;
            float: none;
            background: transparent;
            line-height: 1;
            text-align: right;
            color: inherit;
            opacity: 1;
            z-index: 20;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }

        .inner {
            display: block;
            width: 31px;
            height: 31px;
            padding: 0;
            background: url(https://woohoo.sfo2.digitaloceanspaces.com/img/game/Close.svg) no-repeat center center;
            cursor: pointer;
            color: inherit;
            font-style: normal;
        }

        .header {
            position: absolute;
            width:100%;
            max-width: 780px;
            height: 180px;
            background: rgba(243, 9, 39, 0.4);
            background: url(https://woohoo.sfo2.digitaloceanspaces.com/img/game/example.jpeg) no-repeat top center;
            border-radius: 15px 15px 0px 0;
        }
        .field {
            position: relative;
            margin:auto;
            width: 530px;
            height: 173px;
            top: 50px;
            background: #FFFFFF;
            box-shadow: 0px 0px 50.6129px rgba(0, 0, 0, 0.15);
            border-radius: 15px;
        }

       .Subtract {
           position: relative;
           width: 425px;
           height: 42px;
           top: 20px;
           background: #FFCB3E;
           margin: auto;
       }


       .big {
           position: relative;
           top: 6px;
           font-family: Nunito;
           font-style: normal;
           font-weight: bold;
           font-size: 21.0887px;
           line-height: 29px;
           position: relative;
           margin: auto;
           color: #FFFFFF;
           text-align: center;
       }

        .win {
            width: 289px;
            height: 22px;
            top: 209px;
            font-family: Nunito;
            font-style: normal;
            font-weight: normal;
            font-size: 16px;
            line-height: 22px;
            text-align: center;
            top: 35px;
            position: relative;
            margin: auto;

        }
        .email {
            position: relative;
            margin: auto;
            width: 300px;
            height: 40px;
            top: 45px;
            background: #FFFFFF;
            box-shadow: 0px 5.98919px 17.9676px rgba(0, 0, 0, 0.06), 0px 0px 50.6129px rgba(0, 0, 0, 0.08);
            border-radius: 4.21774px;
            -webkit-appearance: none;
            border: 0;
            display: block;
            padding: 0 20px;
            box-sizing: border-box;
        }

        ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
            color: #B6C1D6;
            opacity: 1; /* Firefox */
        }

        .disclaimer {
            width: 100%;
            position: absolute;
            height: 19px;
            bottom: 20px;
            font-family: Nunito;
            font-style: normal;
            font-weight: normal;
            font-size: 14px;
            line-height: 19px;
            color: #5D6781;
            margin: auto;
            text-align: center;
        }

        @media only screen and (max-width: 600px) {
            .main {
                width: 100%;
                height: 550px;
                margin: auto;
                background: #F7F9FF;
                position: relative;
                position: fixed;
                -webkit-transform: none;
                transform: none;
                box-shadow: 0 0 50px rgba(0,0,0,1);
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                position: fixed;
                bottom: 0;
                top: auto;
                left: 0;
            }

            .disclaimer {
                max-width: 90%;
                margin: 0 auto 10px;
                display: block;
                left: 0;
                right: 0;
             }

            .field {
                width: 90%;
                margin-top: 30px;
            }

            .Subtract {
                width:90%;
            }
        }


    </style>

</head>

<body>

    <div class="main">
        <div class="header">
            <div class="close"><div class="inner"></div></div>
            <div class="field">
                <div class="Subtract">
                    <div class="big">Win a BIG prize!</div>
                </div>
                <div class="win">
                    Enter your email to have a chance to win
                </div>
                    <input class="email" type="text" placeholder="Enter email address">
            </div>
        </div>
        <div class="disclaimer">From time to time, we may send you more special offers. You can unsubscribe at any time.</div>
    </div>

</body>
</html>
result
console
?