Skip to content

Commit 7868b46

Browse files
committed
UI improvement
1 parent 14c47c6 commit 7868b46

5 files changed

Lines changed: 86 additions & 19 deletions

File tree

css/main.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@
4848
right: 20px;
4949
}
5050

51+
.bronze {
52+
color: #d19b71;
53+
}
54+
.gold {
55+
color: gold;
56+
}
57+
.silver {
58+
color: silver;
59+
}
60+
61+
.stk-oflw {
62+
display: flex;
63+
text-decoration: none;
64+
margin-bottom: 7px;
65+
white-space: nowrap;
66+
font-size: 11px;
67+
font-weight: bold;
68+
}
69+
.stk-oflw > i {
70+
font-size: 15px;
71+
}
72+
5173
.greetings {
5274
font-family:'Arya',sans-serif;padding:10px;
5375
}

css/slider/slider.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,27 @@ nav ul > li {
179179
left: 0; /* On mouse-over, make the elements appear as they should */
180180
}
181181

182+
.float {
183+
position: fixed;
184+
bottom: 20px;
185+
right: 20px;
186+
z-index: 1000;
187+
background-color: #3a7648;
188+
width: 50px;
189+
height: 50px;
190+
border-radius: 50px;
191+
padding:13px;
192+
}
193+
194+
.float > a {
195+
color: white;
196+
}
197+
198+
.float > a:hover {
199+
color: black;
200+
}
201+
202+
182203
/* The about link: 20px from the top with a green background */
183204
#about {
184205
top: 30%;

index.html

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ <h1><b>&ltदेवाशीष/&gt</b></h1>
4444
</button>
4545
<div class="collapse navbar-collapse" id="navbarResponsive">
4646
<ul class="navbar-nav ml-auto flex-center">
47-
<li class="nav-item">
48-
<a class="nav-link" href="#">Home </a>
49-
</li>
5047
<li class="nav-item mx-2">
5148
<a class="nav-link" href="#aboutme">About</a>
5249
</li>
@@ -64,7 +61,6 @@ <h1><b>&ltदेवाशीष/&gt</b></h1>
6461
@imdevacsh</a>
6562
</li>
6663

67-
6864
</ul>
6965
</div>
7066
</div>
@@ -123,6 +119,12 @@ <h3 class="box-right">Nice to see you here. 🙏🏻</h3>
123119
class="material-icons">cloud_download</i></a>
124120
</div>
125121

122+
<div class="float">
123+
<a href="./typing-test.html" target="_blank"><i
124+
class="material-icons">keyboard</i></a>
125+
</div>
126+
127+
126128
<section class="py-4" id="aboutme">
127129
<div class="container-fluid">
128130
<div class="card px-1">
@@ -148,7 +150,7 @@ <h3 class="box-right">Nice to see you here. 🙏🏻</h3>
148150
an enthusiast for working on different project, building cool stuff and writing code.I
149151
have written codes in <span style="text-decoration:none;color:#086fd6 ;" class="typewrite"
150152
data-period="2000"
151-
data-type='[ "C/C++.", "Java.", "Php.","Python.","JavaScript.","TypeScript.","Dart."]'>
153+
data-type='[ "C/C++.", "Java.", "Python.","JavaScript.","TypeScript.","Dart."]'>
152154
</div>
153155
<div class="textAbout mt-2">
154156
I am enthusiast for gadgets/mobile-devices, writes blog on mobile technologies.
@@ -164,21 +166,17 @@ <h3 class="box-right">Nice to see you here. 🙏🏻</h3>
164166

165167

166168
<section id="work">
167-
<div class="container-fluid">
168-
<div class="row">
169-
<div class="twitter-icon">
170-
<a class="github-button" href="https://github.com/devashishg" aria-label="Follow @devashishg on GitHub">Follow
171-
@devashishg</a>
172-
173-
</div>
174-
<div class="card-git calendar">
175-
Loading the data just for you.
169+
<div class="flex-center flex-justify-center">
170+
<div id="stk-oflw" class="btn-light border c-pointer stk-oflw px-2 py-1">
171+
<i class="fa fa-stack-overflow" aria-hidden="true"></i>
176172
</div>
173+
<a class="github-button" href="https://github.com/devashishg" aria-label="Follow @devashishg on GitHub">Follow
174+
@devashishg</a>
177175
</div>
178-
</div>
179-
<script>
180-
GitHubCalendar(".calendar", "devashishg", { responsive: true });
181-
</script>
176+
<div class="card-git calendar">
177+
Loading the data just for you.
178+
</div>
179+
182180

183181

184182
<div class="container-fluid mt-2">
@@ -241,7 +239,7 @@ <h1 class="card-title py-2"> Projects</h1>
241239
</div>
242240

243241
<div class="container-fluid mt-2 py-2">
244-
<h1 class="card-title py-2"> Hands-on experience</h1>
242+
<h1 class="card-title py-2"> Skills </h1>
245243
<div class="chart-container">
246244
<div class="flex-center justify-content-center f-8">
247245
<i class="devicon-cplusplus-line colored m-2 p-2 border-danger" title="C++"></i>
@@ -379,6 +377,9 @@ <h1 class="card-title py-2"> Blog </h1>
379377
</div>
380378
</footer>
381379

380+
<script>
381+
GitHubCalendar(".calendar", "devashishg", { responsive: true });
382+
</script>
382383
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
383384
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
384385
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>

js/main.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ window.onload = function () {
5252
var css = document.createElement("style");
5353
css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid #cff9d9}";
5454
document.body.appendChild(css);
55+
loadStackOverFlow();
5556
};
5657

5758

@@ -90,6 +91,28 @@ function drawBasic() {
9091
chart.draw(data, options);
9192
}
9293

94+
async function loadStackOverFlow () {
95+
const element = document.getElementById('stk-oflw');
96+
const res = await fetch('https://api.stackexchange.com/2.3/users/8504438?site=stackoverflow');
97+
const data = (await res.json()).items[0];
98+
let layout = `<img src="${data.profile_image}" width="15px" class="mx-2"/>${data.reputation}`;
99+
let bdgs = data.badge_counts;
100+
if(bdgs.gold >0) {
101+
layout+=`<span class="gold mx-1">● ${bdgs.gold}</span>`;
102+
}
103+
if(bdgs.silver >0) {
104+
layout+=`<span class="silver mx-1">● ${bdgs.silver}</span>`;
105+
}
106+
if(bdgs.bronze > 0) {
107+
layout+=`<span class="bronze mx-1">● ${bdgs.bronze}</span>`;
108+
}
109+
const ele = document.createElement('span');
110+
ele.innerHTML = layout;
111+
element.appendChild(ele);
112+
113+
console.log(data);
114+
}
115+
93116

94117
var container = document.getElementById("retainable-rss-embed");
95118
if (container) {
File renamed without changes.

0 commit comments

Comments
 (0)