Skip to content

Commit abd74aa

Browse files
stwinkleSharma
andauthored
Ts drawer button (#1512)
* Added spiderman animation for hacktober * added readme * Update readme.md * Update readme.md * Made card-overlay relative and renamed audio file * Renamed audio file * Changed image + updated readme and html template * Create html_template.html * Create html_template.html * Create style.css * Create readme.md * Delete Service Portal Widgets/html_template.html --------- Co-authored-by: Sharma <[email protected]>
1 parent bc35dc3 commit abd74aa

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!--drawer buttons-->
2+
<div id="escButtons" >
3+
<a href="#" id="policies">Policies</a>
4+
<a href="#" id="divisions">Divisions</a>
5+
<a href="#" id="contact">Contact</a>
6+
</div>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
To use this widget, follow the below steps:
2+
3+
1. Create a new widget and copy the html, style in the widget.
4+
2. Add the widget on the homepage .
5+
4. Change the width and placement according to your need.
6+
7+
8+
Here is Page Content structure
9+
10+
<img width="326" alt="image" src="https://github.com/user-attachments/assets/5fe8fcb7-858c-431a-91f9-5e31537c656d">
11+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
//css for styling of all the buttons
3+
#escButtons a {
4+
position: absolute;
5+
right: -90px;
6+
transition: 0.3s;
7+
border:2px solid white;
8+
border-radius: 20px;
9+
padding: 12px;
10+
width: 140px;
11+
font-size: 20px;
12+
color: white;
13+
14+
}
15+
//css for hover on the buttons
16+
#escButtons a:hover {
17+
right: 0;
18+
border:3px solid #fc0366;
19+
color:#fc0366;
20+
}
21+
//css for button policies
22+
#policies {
23+
top: 20px;
24+
background-color: #9bf542;
25+
}
26+
//css for button divisions
27+
#divisions {
28+
top: 80px;
29+
background-color: #2577db;
30+
}
31+
//css for button contact
32+
#contact {
33+
top: 140px;
34+
background-color:#fcdb03;
35+
}

0 commit comments

Comments
 (0)