Skip to content

Commit 33c7453

Browse files
committed
Added index.html & style.css and README.md
1 parent ef82be4 commit 33c7453

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed

Meme_generator/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Meme_generator.
2+
3+
<h3> Tech Stack Used <img src = "https://media2.giphy.com/media/QssGEmpkyEOhBCb7e1/giphy.gif?cid=ecf05e47a0n3gi1bfqntqmob8g9aid1oyj2wr3ds3mg700bl&rid=giphy.gif" width = 32px> </h3>
4+
5+
<p align="left"> <a href="https://www.w3.org/html/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a> <a href="https://www.w3schools.com/css/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a> </p>
6+
7+
# Preview
8+
9+
<img src="/Meme_generator/preview.png" alt="Preview image" />

Meme_generator/index.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Indian Memes</title>
8+
<link rel="stylesheet" href="style.css" />
9+
<script src="script.js" defer></script>
10+
</head>
11+
<body>
12+
<div class="container">
13+
<div class="text">
14+
<h1>Feeling Bored?</h1>
15+
<p>Let's see some Indian memes</p>
16+
<button id="btn">Get Memes</button>
17+
</div>
18+
<div class="img-container">
19+
<!-- the img will src will come from js dynamically -->
20+
<img src="" alt="" />
21+
</div>
22+
</div>
23+
</body>
24+
</html>

Meme_generator/style.css

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;1,300;1,400&display=swap");
2+
3+
* {
4+
box-sizing: border-box;
5+
margin: 0;
6+
padding: 0;
7+
}
8+
9+
html {
10+
font-size: 62.5%;
11+
}
12+
13+
body {
14+
background-image: url("https://img.freepik.com/free-vector/hand-painted-watercolor-pastel-sky-background_23-2148902771.jpg?w=2000");
15+
background-repeat: no-repeat;
16+
background-position: center;
17+
background-size: cover;
18+
font-family: "Rubik", sans-serif;
19+
display: flex;
20+
height: 100vh;
21+
align-items: center;
22+
justify-content: center;
23+
flex-direction: column;
24+
overflow: hidden;
25+
}
26+
27+
.container {
28+
display: flex;
29+
flex-direction: column;
30+
justify-content: center;
31+
align-items: center;
32+
}
33+
34+
.text {
35+
text-align: center;
36+
}
37+
38+
h1 {
39+
font-size: 4rem;
40+
margin-bottom: 2rem;
41+
font-weight: 300;
42+
}
43+
44+
p {
45+
font-size: 3rem;
46+
font-weight: 200;
47+
margin-bottom: 2rem;
48+
text-transform: capitalize;
49+
}
50+
51+
#btn {
52+
background-color: #000;
53+
color: #fff;
54+
padding: 1rem 2rem;
55+
margin-bottom: 4rem;
56+
cursor: pointer;
57+
border-radius: 7px;
58+
font-size: 2rem;
59+
}
60+
61+
img {
62+
width: 450px;
63+
height: 450px;
64+
}
65+
66+
.img-container {
67+
padding: 1rem 2rem;
68+
border: 2px solid #fff;
69+
border-radius: 3px;
70+
}
71+
72+
@media (max-width: 700px) {
73+
body {
74+
overflow: scroll;
75+
}
76+
77+
img {
78+
width: 200px;
79+
}
80+
}

0 commit comments

Comments
 (0)