Skip to content

Commit 6c70a73

Browse files
Added email subscribe layout
1 parent 09973ff commit 6c70a73

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

email-subscribe/index.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<script src="https://cdn.tailwindcss.com"></script>
7+
<title>Email Subscribe</title>
8+
</head>
9+
<body>
10+
<!-- Background Container -->
11+
<div class="flex items-center justify-center h-screen bg-zinc-700">
12+
<!-- Card -->
13+
<div class="bg-zinc-800 p-2 mx-6 rounded-2xl">
14+
<!-- Flex Container -->
15+
<div class="flex flex-col md:flex-row rounded-l-xl">
16+
<!-- Image -->
17+
<img
18+
src="images/image.jpg"
19+
alt=""
20+
class="object-cover rounded-xl h-80 md:h-64 md:rounded-r-none transform hover:scale-105 hover:rounded-xl duration-200"
21+
/>
22+
<!-- Content -->
23+
<div class="p-6 md:p-12">
24+
<h2 class="font-serif text-xl font-medium text-center text-white md:text-left">
25+
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
26+
</h2>
27+
28+
<p
29+
class="max-w-xs my-4 text-xs leading-5 tracking-wide text-center text-white md:text-left"
30+
>
31+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Architecto voluptate vel
32+
minima nemo eaque alias?
33+
</p>
34+
35+
<div class="flex flex-col mt-5 space-y-4 md:space-x-3 md:flex-row md:space-y-0">
36+
<input
37+
type="text"
38+
placeholder="Enter your email address"
39+
class="p-2 px-4 text-center text-white bg-zinc-800 border border-zinc-600 placeholder:text-xs placeholder:text-center md:text-left placeholder:md:text-left focus:outline-none"
40+
/>
41+
42+
<button
43+
class="px-5 py-3 text-xs rounded-md text-zinc-800 bg-lime-500 hover:bg-lime-700 hover:text-white duration-500"
44+
>
45+
Subscribe
46+
</button>
47+
</div>
48+
</div>
49+
</div>
50+
</div>
51+
</div>
52+
</body>
53+
</html>

0 commit comments

Comments
 (0)