Skip to content

Commit 9fccca2

Browse files
committed
fix: ✏️ fix typos in button page
1 parent 207ea4e commit 9fccca2

File tree

3 files changed

+83
-49
lines changed

3 files changed

+83
-49
lines changed

css/buttons.css

Lines changed: 73 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.button {
66
border-radius: 4px;
7-
7+
88
border: none;
99
color: #ffffff;
1010
text-align: center;
@@ -40,38 +40,85 @@
4040
opacity: 1;
4141
right: 0;
4242
}
43-
.btn {
44-
width: 180px;
45-
height: 60px;
43+
44+
/* Roncy r thomas */
45+
46+
#roncy-btn {
47+
width: 150px;
48+
height: 50px;
49+
border-radius: 180px;
50+
position: relative;
51+
background: linear-gradient(
52+
60deg,
53+
#f79533,
54+
#f37055,
55+
#ef4e7b,
56+
#a166ab,
57+
#5073b8,
58+
#1098ad,
59+
#07b39b,
60+
#6fba82
61+
);
4662
cursor: pointer;
47-
background: transparent;
48-
border: 1px solid #91C9FF;
49-
outline: none;
50-
transition: 1s ease-in-out;
63+
line-height: 12px;
5164
}
5265

53-
svg {
66+
#roncy-btn:before {
67+
content: "";
68+
z-index: 1;
5469
position: absolute;
55-
left: 0;
56-
top: 0;
57-
fill: none;
58-
stroke: #fff;
59-
stroke-dasharray: 150 480;
60-
stroke-dashoffset: 150;
61-
transition: 1s ease-in-out;
62-
}
63-
64-
.btn:hover {
65-
transition: 1s ease-in-out;
66-
background: #4F95DA;
70+
display: block;
71+
width: 80%;
72+
height: 70%;
73+
top: 15%;
74+
left: 10%;
75+
transition: 0.3s opacity ease-in-out;
76+
filter: blur(15px);
77+
opacity: 0;
78+
background: linear-gradient(
79+
60deg,
80+
#f79533,
81+
#f37055,
82+
#ef4e7b,
83+
#a166ab,
84+
#5073b8,
85+
#1098ad,
86+
#07b39b,
87+
#6fba82
88+
);
6789
}
6890

69-
.btn:hover svg {
70-
stroke-dashoffset: -480;
91+
#roncy-btn:hover:before {
92+
opacity: 1;
93+
transition: 0.3s opacity ease-in-out;
94+
filter: blur(25px);
95+
background: linear-gradient(
96+
60deg,
97+
#f79533,
98+
#f37055,
99+
#ef4e7b,
100+
#a166ab,
101+
#5073b8,
102+
#1098ad,
103+
#07b39b,
104+
#6fba82
105+
);
71106
}
72107

73-
.btn span {
74-
color: black;
108+
#roncy-btn:after {
109+
content: "CLICK ME!";
110+
text-align: center;
111+
line-height: 40px;
75112
font-size: 18px;
76-
font-weight: 300;
113+
color: rgba(235, 235, 235, 1);
114+
font-weight: bold;
115+
z-index: 5;
116+
position: absolute;
117+
display: block;
118+
border-radius: 180px;
119+
width: 92%;
120+
height: 80%;
121+
top: 10%;
122+
left: 4%;
123+
background-color: rgb(19, 20, 22);
77124
}

css/cardcolor.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
background-color: #35cce0;
2323
}
2424

25+
.roncy {
26+
background-color: #a287f4;
27+
}

pages/buttons.html

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,49 +69,33 @@ <h2>
6969
</div>
7070
</div>
7171
</div>
72+
7273
<!-- Roncy R Thomas-->
7374
<div class="row">
7475
<div class="col-lg-6">
7576
<div class="component">
7677
<div class="card magictime">
77-
78-
79-
80-
<div class="card-title philip">
78+
<div class="card-title roncy">
8179
<strong>Button</strong>
8280
</div>
8381
<div class="card-content">
84-
<button class="btn">
85-
<svg width="180px" height="60px" viewBox="0 0 180 60" class="border">
86-
<polyline points="179,1 179,59 1,59 1,1 179,1" class="bg-line" />
87-
<polyline points="179,1 179,59 1,59 1,1 179,1" class="hl-line" />
88-
</svg>
89-
<span>HOVER ME</span>
90-
</button>
91-
92-
93-
82+
<div id="roncy-btn"></div>
9483
</div>
9584
</div>
9685
</div>
9786
</div>
9887
<div class="col-lg-6">
9988
<div class="component">
10089
<div class="card magictime">
101-
102-
<!-- Here Philip is the css selector for changing card color-->
103-
104-
<div class="card-title philip">
90+
91+
<div class="card-title roncy">
10592
<strong>Creator</strong>
10693
</div>
10794
<div class="card-content">
10895
<div class="creater-name">
10996
<h2>
110-
<b>Name:</b
111-
><span>
112-
113-
114-
<a href="https://www.github.com/roncyrthomas">Roncy R Thomas</a>
97+
<b>Name:</b><span>
98+
<a href="https://www.github.com/roncyrthomas">Roncy R Thomas</a>
11599
</span>
116100
</h2>
117101
</div>

0 commit comments

Comments
 (0)