Skip to content

Commit 036e646

Browse files
authored
Merge pull request rubenshibu#37 from irwanphan/newbutton
added gaming style button
2 parents c2dd1d6 + e26e771 commit 036e646

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed

css/buttons.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,38 @@
130130
/* Saksham Mahajan */
131131
.Saksham {
132132
background-color: #f69696;
133+
}
134+
135+
/* irwanphan */
136+
#irwanphan-btn {
137+
width: 150px;
138+
height: 54px;
139+
cursor: pointer;
140+
line-height: 12px;
141+
position: relative;
142+
border-radius: 16px;
143+
transition: .3s ease all;
144+
background-color: #000f0b;
145+
border: 2px solid #000f0b;
146+
}
147+
#irwanphan-btn::before {
148+
top: 0;
149+
left: 0;
150+
right: 0;
151+
bottom: 0;
152+
margin: auto;
153+
display: block;
154+
font-weight: 600;
155+
line-height: 54px;
156+
color: aliceblue;
157+
text-align: center;
158+
position: absolute;
159+
transition: .3s ease all;
160+
content: "it's a button :)";
161+
}
162+
#irwanphan-btn:hover {
163+
border: 2px solid #13d522;
164+
}
165+
#irwanphan-btn:hover::before {
166+
color: #13d522;
133167
}

css/cardcolor.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,28 @@
2525
.roncy {
2626
background-color: #a287f4;
2727
}
28+
29+
.irwanphan {
30+
background: linear-gradient(270deg, #13d522, #000f0b);
31+
background-size: 400% 400%;
32+
-webkit-animation: sway 30s ease infinite;
33+
-moz-animation: sway 30s ease infinite;
34+
animation: sway 30s ease infinite;
35+
}
36+
@-webkit-keyframes sway {
37+
0% {background-position: 0% 50%;}
38+
50% {background-position: 100% 50%;}
39+
100% {background-position: 0% 50%;}
40+
}
41+
@-moz-keyframes sway {
42+
0% {background-position: 0% 50%;}
43+
50% {background-position: 100% 50%;}
44+
100% {background-position: 0% 50%;}
45+
}
46+
@keyframes sway {
47+
0% {background-position: 0% 50%;}
48+
50% {background-position: 100% 50%;}
49+
100% {background-position: 0% 50%;}
50+
}
51+
52+

pages/buttons.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,40 @@ <h2>
239239
</div>
240240
</div>
241241

242+
<!--Irwan Phan-->
243+
<div class="row">
244+
<div class="col-lg-6">
245+
<div class="component">
246+
<div class="card magictime">
247+
<div class="card-title irwanphan">
248+
<strong>Button</strong>
249+
</div>
250+
<div class="card-content">
251+
<div id="irwanphan-btn"></div>
252+
</div>
253+
</div>
254+
</div>
255+
</div>
256+
<div class="col-lg-6">
257+
<div class="component">
258+
<div class="card magictime">
259+
260+
<div class="card-title irwanphan">
261+
<strong>Creator</strong>
262+
</div>
263+
<div class="card-content">
264+
<div class="creater-name">
265+
<h2>
266+
<b>Name:</b><span>
267+
<a href="https://www.github.com/irwanphan">Irwan Phan</a>
268+
</span>
269+
</h2>
270+
</div>
271+
</div>
272+
</div>
273+
</div>
274+
</div>
275+
</div>
242276
</div>
243277
</section>
244278
<footer>

0 commit comments

Comments
 (0)