-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from utpal-barman/feat/new-color-branding
feat: Introduced new color branding
- Loading branch information
Showing
29 changed files
with
1,528 additions
and
9,680 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
function appendProjectCard(e,n,s,r){$("#u-carousel").append(`\n <div class="u-carousel-item p-4 card m-2 ">\n <span class="u-text-brand font-weight-bold"> ${e}</span > \n <hr>\n <div style="height: 100px;">\n <span class="w-date">${s}</span>\n\n </div>\n\n <a target="_blank"\n class="btn btn-primary bg-gradient px-3 py-2 text-uppercase"\n href="${n}"\n rel="noreferrer">\n Project Details\n </a>\n\n </div>\n \n \n `),console.log(e,n,s)}let data;const url="https://github.com/gitapi/users/utpal-barman/repos",response=fetch(url).then(e=>e.json()).catch(e=>console.log(e));response.then(e=>{for(i=0;i<e.length;i++)appendProjectCard(e[i].name,e[i].html_url,e[i].description,i);$("#u-carousel").slick({dots:!1,speed:700,autoplay:!0,autoplaySpeed:3e3,arrows:!0,appendArrows:$("#u-carousel"),slidesToShow:3,slidesToScroll:2,responsive:[{breakpoint:981,settings:{arrows:!1,centerPadding:"40px",slidesToShow:2,slidesToScroll:1}},{breakpoint:768,settings:{arrows:!1,centerPadding:"40px",slidesToShow:1,slidesToScroll:1}}]})}); | ||
function appendProjectCard(e, n, s, r) { | ||
$('#u-carousel').append( | ||
`\n <div class="u-carousel-item p-4 card m-2 ">\n <span class="u-text-brand font-weight-bold"> ${e}</span > \n <hr>\n <div style="height: 100px;">\n <span class="w-date">${s}</span>\n\n </div>\n\n <a target="_blank"\n class="btn btn-primary u-button px-3 py-2 text-uppercase"\n href="${n}"\n rel="noreferrer">\n Project Details\n </a>\n\n </div>\n \n \n ` | ||
), | ||
console.log(e, n, s); | ||
} | ||
let data; | ||
const url = 'https://github.com/gitapi/users/utpal-barman/repos', | ||
response = fetch(url) | ||
.then((e) => e.json()) | ||
.catch((e) => console.log(e)); | ||
response.then((e) => { | ||
for (i = 0; i < e.length; i++) | ||
appendProjectCard(e[i].name, e[i].html_url, e[i].description, i); | ||
$('#u-carousel').slick({ | ||
dots: !1, | ||
speed: 700, | ||
autoplay: !0, | ||
autoplaySpeed: 3e3, | ||
arrows: !0, | ||
appendArrows: $('#u-carousel'), | ||
slidesToShow: 3, | ||
slidesToScroll: 2, | ||
responsive: [ | ||
{ | ||
breakpoint: 981, | ||
settings: { | ||
arrows: !1, | ||
centerPadding: '40px', | ||
slidesToShow: 2, | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 768, | ||
settings: { | ||
arrows: !1, | ||
centerPadding: '40px', | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
], | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,112 @@ | ||
(function ($) { | ||
"use strict"; | ||
var nav = $('nav'); | ||
var navHeight = nav.outerHeight(); | ||
|
||
$('.navbar-toggler').on('click', function () { | ||
if (!$('#mainNav').hasClass('navbar-reduce')) { | ||
$('#mainNav').addClass('navbar-reduce'); | ||
} | ||
}) | ||
|
||
// Preloader | ||
$(window).on('load', function () { | ||
if ($('#preloader').length) { | ||
$('#preloader').delay(100).fadeOut('slow', function () { | ||
$(this).remove(); | ||
}); | ||
} | ||
}); | ||
|
||
// Back to top button | ||
$(window).scroll(function () { | ||
if ($(this).scrollTop() > 100) { | ||
$('.back-to-top').fadeIn('slow'); | ||
} else { | ||
$('.back-to-top').fadeOut('slow'); | ||
} | ||
}); | ||
$('.back-to-top').click(function () { | ||
$('html, body').animate({ scrollTop: 0 }, 1500, 'easeInOutExpo'); | ||
return false; | ||
}); | ||
|
||
/*--/ Star ScrollTop /--*/ | ||
$('.scrolltop-mf').on("click", function () { | ||
$('html, body').animate({ | ||
scrollTop: 0 | ||
}, 1000); | ||
}); | ||
|
||
/*--/ Star Counter /--*/ | ||
$('.counter').counterUp({ | ||
delay: 15, | ||
time: 2000 | ||
}); | ||
|
||
/*--/ Star Scrolling nav /--*/ | ||
$('a.js-scroll[href*="#"]:not([href="#"])').on("click", function () { | ||
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { | ||
var target = $(this.hash); | ||
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); | ||
if (target.length) { | ||
$('html, body').animate({ | ||
scrollTop: (target.offset().top - navHeight + 5) | ||
}, 1000, "easeInOutExpo"); | ||
return false; | ||
} | ||
} | ||
}); | ||
|
||
// Closes responsive menu when a scroll trigger link is clicked | ||
$('.js-scroll').on("click", function () { | ||
$('.navbar-collapse').collapse('hide'); | ||
}); | ||
|
||
// Activate scrollspy to add active class to navbar items on scroll | ||
$('body').scrollspy({ | ||
target: '#mainNav', | ||
offset: navHeight | ||
}); | ||
/*--/ End Scrolling nav /--*/ | ||
|
||
/*--/ Navbar Menu Reduce /--*/ | ||
$(window).trigger('scroll'); | ||
$(window).on('scroll', function () { | ||
var pixels = 50; | ||
var top = 1200; | ||
if ($(window).scrollTop() > pixels) { | ||
$('.navbar-expand-lg').addClass('navbar-reduce'); | ||
$('.navbar-expand-lg').removeClass('navbar-trans'); | ||
} else { | ||
$('.navbar-expand-lg').addClass('navbar-trans'); | ||
$('.navbar-expand-lg').removeClass('navbar-reduce'); | ||
} | ||
if ($(window).scrollTop() > top) { | ||
$('.scrolltop-mf').fadeIn(1000, "easeInOutExpo"); | ||
} else { | ||
$('.scrolltop-mf').fadeOut(1000, "easeInOutExpo"); | ||
} | ||
}); | ||
|
||
/*--/ Star Typed /--*/ | ||
if ($('.text-slider').length == 1) { | ||
var typed_strings = $('.text-slider-items').text(); | ||
var typed = new Typed('.text-slider', { | ||
strings: typed_strings.split(','), | ||
typeSpeed: 80, | ||
loop: true, | ||
backDelay: 1100, | ||
backSpeed: 30 | ||
}); | ||
} | ||
|
||
|
||
// utpal's js | ||
|
||
|
||
|
||
|
||
|
||
'use strict'; | ||
var nav = $('nav'); | ||
var navHeight = nav.outerHeight(); | ||
|
||
$('.navbar-toggler').on('click', function () { | ||
if (!$('#mainNav').hasClass('navbar-reduce')) { | ||
$('#mainNav').addClass('navbar-reduce'); | ||
} | ||
}); | ||
|
||
// Preloader | ||
$(window).on('load', function () { | ||
if ($('#preloader').length) { | ||
$('#preloader') | ||
.delay(100) | ||
.fadeOut('slow', function () { | ||
$(this).remove(); | ||
}); | ||
} | ||
}); | ||
|
||
// Back to top button | ||
$(window).scroll(function () { | ||
if ($(this).scrollTop() > 100) { | ||
$('.back-to-top').fadeIn('slow'); | ||
} else { | ||
$('.back-to-top').fadeOut('slow'); | ||
} | ||
}); | ||
$('.back-to-top').click(function () { | ||
$('html, body').animate({ scrollTop: 0 }, 1500, 'easeInOutExpo'); | ||
return false; | ||
}); | ||
|
||
/*--/ Star ScrollTop /--*/ | ||
$('.scrolltop-mf').on('click', function () { | ||
$('html, body').animate( | ||
{ | ||
scrollTop: 0, | ||
}, | ||
1000 | ||
); | ||
}); | ||
|
||
/*--/ Star Scrolling nav /--*/ | ||
$('a.js-scroll[href*="#"]:not([href="#"])').on('click', function () { | ||
if ( | ||
location.pathname.replace(/^\//, '') == | ||
this.pathname.replace(/^\//, '') && | ||
location.hostname == this.hostname | ||
) { | ||
var target = $(this.hash); | ||
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); | ||
if (target.length) { | ||
$('html, body').animate( | ||
{ | ||
scrollTop: target.offset().top - navHeight + 5, | ||
}, | ||
1000, | ||
'easeInOutExpo' | ||
); | ||
return false; | ||
} | ||
} | ||
}); | ||
|
||
// Closes responsive menu when a scroll trigger link is clicked | ||
$('.js-scroll').on('click', function () { | ||
$('.navbar-collapse').collapse('hide'); | ||
}); | ||
|
||
// Activate scrollspy to add active class to navbar items on scroll | ||
$('body').scrollspy({ | ||
target: '#mainNav', | ||
offset: navHeight, | ||
}); | ||
/*--/ End Scrolling nav /--*/ | ||
|
||
/*--/ Navbar Menu Reduce /--*/ | ||
$(window).trigger('scroll'); | ||
$(window).on('scroll', function () { | ||
var pixels = 50; | ||
var top = 1200; | ||
if ($(window).scrollTop() > pixels) { | ||
$('.navbar-expand-lg').addClass('navbar-reduce'); | ||
$('.navbar-expand-lg').removeClass('navbar-trans'); | ||
} else { | ||
$('.navbar-expand-lg').addClass('navbar-trans'); | ||
$('.navbar-expand-lg').removeClass('navbar-reduce'); | ||
} | ||
if ($(window).scrollTop() > top) { | ||
$('.scrolltop-mf').fadeIn(1000, 'easeInOutExpo'); | ||
} else { | ||
$('.scrolltop-mf').fadeOut(1000, 'easeInOutExpo'); | ||
} | ||
}); | ||
|
||
/*--/ Star Typed /--*/ | ||
if ($('.text-slider').length == 1) { | ||
var typed_strings = $('.text-slider-items').text(); | ||
var typed = new Typed('.text-slider', { | ||
strings: typed_strings.split(','), | ||
typeSpeed: 80, | ||
loop: true, | ||
backDelay: 1100, | ||
backSpeed: 30, | ||
}); | ||
} | ||
|
||
// utpal's js | ||
})(jQuery); |
Binary file not shown.
Oops, something went wrong.