Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaykundu777 committed Feb 12, 2020
1 parent 9abf02b commit f736fe3
Show file tree
Hide file tree
Showing 18 changed files with 1,099 additions and 170 deletions.
3 changes: 2 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<script src="/assets/bower_components/lightgallery/dist/js/lightgallery-all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.2/picturefill.min.js"></script>
<script src="/assets/bower_components/imagesloaded/imagesloaded.pkgd.min.js"></script>
<script src="/assets/bower_components/nanobar/nanobar.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>

Expand All @@ -104,7 +105,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="/assets/js/mode-switcher.js"></script>

<script>
(function (d, h, m) {
var js, fjs = d.getElementsByTagName(h)[0];
Expand Down
93 changes: 27 additions & 66 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,77 +1,38 @@
<header>

<div class="col-lg-12">

<div class="row">
<div id="author-img">
<a href="/">
<img src="/assets/img/{{ site.author_logo }}" class="profile-img">
</a>
</div>

<div class="col-md-3" id="author_details">
<h1 class="profile-name"> {{ site.title }}</h1>
<p class="profile-bio"> {{ site.subtitle }}</p>
<p class="profile-links">
{% if site.twitter_username %}
<a class="social-link" href="http://twitter.com/{{ site.twitter_username }}">
<i class="fab fa-twitter"></i>
</a>
{% endif %}
{% if site.facebook_username %}
<a class="social-link" href="http://facebook.com/{{ site.facebook_username }}">
<i class="fab fa-facebook-f"></i>
</a>
{% endif %}
{% if site.instagram_username %}
<a class="social-link" href="http://instagram.com/{{ site.instagram_username }}">
<i class="fab fa-instagram"></i>
</a>
{% endif %}
{% if site.medium_username %}
<a class="social-link" href="http://medium.com/@{{ site.medium_username }}">
<i class="fab fa-medium-m"></i>
</a>
{% endif %}
{% if site.github_username %}
<a class="social-link" href="http://github.com/{{ site.github_username }}">
<i class="fab fa-github"></i>
</a>
{% endif %}
{% if site.behance_username %}
<a class="social-link" href="http://behance.net/{{ site.behance_username }}">
<i class="fab fa-behance"></i>
</a>
{% endif %}
{% if site.linkedin_username %}
<a class="social-link" href="http://linkedin.com/in/{{ site.linkedin_username }}">
<i class="fab fa-linkedin-in"></i>
</a>
{% endif %}
{% if site.telegram_username %}
<a class="social-link" href="http://t.me/{{ site.telegram_username }}">
<i class="fab fa-telegram-plane"></i>
</a>
{% endif %}
</p>
<nav class="navbar navbar-expand-lg fixed-top navbar-dark ">
<!-- <a class="navbar-brand" href="#">{{site.title}}</a> -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="/">{{site.title}}</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
{% for i in site.urls %}
<li class="nav-item">
<a class="nav-link" href="{{ site.url}}{{site.baseurl}}{{ i.url }}">{{ i.text }}</a>
</li>
{% endfor %}

</ul>

</div>
<div class="col-md-7" id="header-nav">

<ul class="nav justify-content-end" id="navigation">
{% for i in site.urls %}
<li class="nav-item">
<a class="nav-link" href="{{ site.url}}{{site.baseurl}}{{ i.url }}">{{ i.text }}</a>
</li>
{% endfor %}
<li class="nav-item">
<a class="nav-link" href="{{ site.url}}{{site.baseurl}}/search/"><i class="fa fa-search" aria-hidden="true"></i></a>
</li>
<li class="nav-item">
<input class="nav-link switch" id="theme-toggle" onclick="modeSwitcher() "type="checkbox" name="checkbox" >
</li>
</div>
</div>
<ul class="nav justify-content-end">
<li class="nav-item">
<a class="nav-link" id="search-icon" href="{{ site.url}}{{site.baseurl}}/search/"><i class="fa fa-search" aria-hidden="true"></i></a>
</li>
<li class="nav-item">
<input class="nav-link switch" id="theme-toggle" onclick="modeSwitcher() "type="checkbox" name="checkbox" >
</li>
</ul>
</nav>

</div>
</div>

</div>
</header>
21 changes: 17 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
{%- include head.html -%}

<body>


<div class="container-fluid">

{%- include header.html -%}


<div class="col-lg-12">
{{ content }}

Expand All @@ -22,9 +25,19 @@
{%- include footer.html -%}

</div>
</body>

<div hidden id="snipcart" data-api-key="Y2I1NTAyNWYtMTNkMy00ODg0LWE4NDItNTZhYzUxNzJkZTI5NjM3MDI4NTUzNzYyMjQ4NzU0"></div>
<script>
var options = {
classname: 'my-class',
id: 'my-id'
};
var nanobar = new Nanobar( options );
nanobar.go( 30 );
nanobar.go( 76 );
nanobar.go(100);
</script>

<div hidden id="snipcart" data-api-key="Y2I1NTAyNWYtMTNkMy00ODg0LWE4NDItNTZhYzUxNzJkZTI5NjM3MDI4NTUzNzYyMjQ4NzU0"></div>
<script src="https://cdn.snipcart.com/themes/v3.0.0-beta.3/default/snipcart.js" defer></script>

<script src="/assets/js/mode-switcher.js"></script>
</body>
</html>
61 changes: 53 additions & 8 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,59 @@ <h6 class="experience-info">{{detail.college_name}}</h6>
</div>
<div class="col-lg-4">

<div class="card">
<div class="card" id="profile-card">
<a href="/">
<img src="/assets/img/{{ site.author_logo }}" class="profile-img">
</a>
<h1 class="profile-name"> {{ site.title }}</h1>
<p class="profile-bio"> {{ site.subtitle }}</p>
{% if site.github_username %}
{%- include github_follow_button.html -%}
{% endif %}

<p class="profile-links">
{% if site.twitter_username %}
<a class="social-link" href="http://twitter.com/{{ site.twitter_username }}">
<i class="fab fa-twitter"></i>
</a>
{% endif %}
{% if site.facebook_username %}
<a class="social-link" href="http://facebook.com/{{ site.facebook_username }}">
<i class="fab fa-facebook-f"></i>
</a>
{% endif %}
{% if site.instagram_username %}
<a class="social-link" href="http://instagram.com/{{ site.instagram_username }}">
<i class="fab fa-instagram"></i>
</a>
{% endif %}
{% if site.medium_username %}
<a class="social-link" href="http://medium.com/@{{ site.medium_username }}">
<i class="fab fa-medium-m"></i>
</a>
{% endif %}
{% if site.github_username %}
<a class="social-link" href="http://github.com/{{ site.github_username }}">
<i class="fab fa-github"></i>
</a>
{% endif %}
{% if site.behance_username %}
<a class="social-link" href="http://behance.net/{{ site.behance_username }}">
<i class="fab fa-behance"></i>
</a>
{% endif %}
{% if site.linkedin_username %}
<a class="social-link" href="http://linkedin.com/in/{{ site.linkedin_username }}">
<i class="fab fa-linkedin-in"></i>
</a>
{% endif %}
{% if site.telegram_username %}
<a class="social-link" href="http://t.me/{{ site.telegram_username }}">
<i class="fab fa-telegram-plane"></i>
</a>
{% endif %}
</p>

{% if site.author_location %}
<h6> <i class="fas fa-map-marker-alt"></i> {{ site.author_location }}</h6>
{% endif %}
Expand All @@ -98,13 +150,6 @@ <h6><i class="fas fa-envelope"></i> {{ site.author_email }}</h6>
<h6> <i class="fas fa-link"></i> {{ site.author_website_url }} </h6>
{% endif %}

{% if site.github_username %}
{%- include github_follow_button.html -%}
{% endif %}

{% if site.twitter_username %}
{%- include twitter_follow_button.html -%}
{% endif %}

</div>

Expand Down
72 changes: 0 additions & 72 deletions _sass/devlog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -517,75 +517,3 @@ $layout--max-width: 1000px;
margin-top: 30px;
}
}

/* Syntax Hightlighter */
/* Theme - Autumn */
/* For More Themes : https://github.com/richleland/pygments-css */

.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #aaaaaa; font-style: italic } /* Comment */
.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
.highlight .k { color: #0000aa } /* Keyword */
.highlight .ch { color: #aaaaaa; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #aaaaaa; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #4c8317 } /* Comment.Preproc */
.highlight .cpf { color: #aaaaaa; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #aaaaaa; font-style: italic } /* Comment.Single */
.highlight .cs { color: #0000aa; font-style: italic } /* Comment.Special */
.highlight .gd { color: #aa0000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00aa00 } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #0000aa } /* Keyword.Constant */
.highlight .kd { color: #0000aa } /* Keyword.Declaration */
.highlight .kn { color: #0000aa } /* Keyword.Namespace */
.highlight .kp { color: #0000aa } /* Keyword.Pseudo */
.highlight .kr { color: #0000aa } /* Keyword.Reserved */
.highlight .kt { color: #00aaaa } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #aa5500 } /* Literal.String */
.highlight .na { color: #1e90ff } /* Name.Attribute */
.highlight .nb { color: #00aaaa } /* Name.Builtin */
.highlight .nc { color: #00aa00; text-decoration: underline } /* Name.Class */
.highlight .no { color: #aa0000 } /* Name.Constant */
.highlight .nd { color: #888888 } /* Name.Decorator */
.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
.highlight .nf { color: #00aa00 } /* Name.Function */
.highlight .nn { color: #00aaaa; text-decoration: underline } /* Name.Namespace */
.highlight .nt { color: #1e90ff; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #aa0000 } /* Name.Variable */
.highlight .ow { color: #0000aa } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #009999 } /* Literal.Number.Bin */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sa { color: #aa5500 } /* Literal.String.Affix */
.highlight .sb { color: #aa5500 } /* Literal.String.Backtick */
.highlight .sc { color: #aa5500 } /* Literal.String.Char */
.highlight .dl { color: #aa5500 } /* Literal.String.Delimiter */
.highlight .sd { color: #aa5500 } /* Literal.String.Doc */
.highlight .s2 { color: #aa5500 } /* Literal.String.Double */
.highlight .se { color: #aa5500 } /* Literal.String.Escape */
.highlight .sh { color: #aa5500 } /* Literal.String.Heredoc */
.highlight .si { color: #aa5500 } /* Literal.String.Interpol */
.highlight .sx { color: #aa5500 } /* Literal.String.Other */
.highlight .sr { color: #009999 } /* Literal.String.Regex */
.highlight .s1 { color: #aa5500 } /* Literal.String.Single */
.highlight .ss { color: #0000aa } /* Literal.String.Symbol */
.highlight .bp { color: #00aaaa } /* Name.Builtin.Pseudo */
.highlight .fm { color: #00aa00 } /* Name.Function.Magic */
.highlight .vc { color: #aa0000 } /* Name.Variable.Class */
.highlight .vg { color: #aa0000 } /* Name.Variable.Global */
.highlight .vi { color: #aa0000 } /* Name.Variable.Instance */
.highlight .vm { color: #aa0000 } /* Name.Variable.Magic */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

38 changes: 38 additions & 0 deletions assets/bower_components/nanobar/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "nanobar",
"description": "Very lightweight js progress bars",
"version": "0.4.2",
"main": "nanobar.js",
"keywords": [
"loader",
"progress",
"progress bar",
"CSS3",
"html"
],
"author": [
"Jacobo Tabernero [email protected]"
],
"license": "MIT",
"homepage": "http://nanobar.jacoborus.codes",
"bugs": {
"url": "https://github.com/jacoborus/nanobar/issues"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"_release": "0.4.2",
"_resolution": {
"type": "version",
"tag": "v0.4.2",
"commit": "8fc845016c95912b5e6d4787e6dc919ee3dc3d96"
},
"_source": "https://github.com/jacoborus/nanobar.git",
"_target": "^0.4.2",
"_originalSource": "nanobar",
"_direct": true
}
20 changes: 20 additions & 0 deletions assets/bower_components/nanobar/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2014 Jacobo Tabernero - github.com/jacoborus

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit f736fe3

Please sign in to comment.