1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

First commit...!!

This commit is contained in:
2023-07-04 00:59:51 +05:30
commit 3b8c8af842
18 changed files with 2617 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
package-lock.json
node_modules/
.vscode/

41
htdocs/assets/_footer.php Normal file
View File

@@ -0,0 +1,41 @@
<footer class="w-full px-6 lg:px-[4.5rem]">
<div class="fottermenu w-full flex justify-around flex-wrap lg:flex-nowrap mb-10">
<div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0">
<h6 class="font-bold mb-8">Informations</h6>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Privacy Policy</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Terms of Services</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Dmca Notice</a>
</div>
<div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0">
<h6 class="font-bold mb-8">Site Pages</h6>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Home Page</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">My Projects</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">My Blog</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Contact Me</a>
</div>
<div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0">
<h6 class="font-bold mb-8">Featured</h6>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Featured Project 1</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Featured 2</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Featured Content 3</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Featured Project</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Featured Project</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Featured Content 6</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="">Featured 7</a>
</div>
<div class="w-[50%] lg:w-[25%] flex flex-col justify-start items-start mb-10 lg:mb-0">
<h6 class="font-bold mb-8">Follow Me On</h6>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="https://instagram.com/neo_subhamoy" target="_blank">Instagram</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="https://twitter.com/neo_subhamoy" target="_blank">Twitter</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="https://www.linkedin.com/in/neo-subhamoy" target="_blank">Linkedin</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="https://github.com/neosubhamoy" target="_blank">Github</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="https://www.facebook.com/profile.php?id=100076097318726" target="_blank">Facebook</a>
<a class="text-sm text-accent_three my-1 hover:text-accent_secondary transition transform duration-100" href="https://mastodon.social/@neo_subhamoy" target="_blank">Mastodon</a>
</div>
</div>
<hr class="opacity-20 mt-16 mb-5">
<div class="copyrightsection w-full flex justify-between items-center mt-7 mb-12">
<a class="font-cormorant text-4xl font-bold hidden lg:block" href="https://neosubhamoy.xyz">Subhamoy Biswas</a>
<p class="">&#169; <script>document.write(new Date().getFullYear())</script> - All Rights Reserved<br>Designed with &hearts; by <a class="font-bold" href="https://neosubhamoy.xyz">Subhamoy</a></p>
</div>
</footer>

71
htdocs/assets/_header.php Normal file
View File

@@ -0,0 +1,71 @@
<?php
function isPageActive($pageName) {
$currentPage = $_SERVER['PHP_SELF'];
if (strpos($currentPage, $pageName) !== false) {
return 'w-full';
}
return '';
}
?>
<nav class="w-full flex justify-between items-center py-5 lg:py-9 px-4 lg:px-[3.5rem]">
<div class="logo ml-2 lg:ml-4">
<a class="font-cormorant text-4xl font-bold" href="index.php">Subhamoy</a>
</div>
<div class="widemenu mr-4 hidden lg:block">
<a class="mx-5 py-[0.30rem] relative group" href="projects.php">
Projects
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('projects.php');?> group-hover:w-full"></span>
</a>
<a class="mx-5 py-[0.30rem] relative group" href="blog.php">
Blog
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('blog.php');?> group-hover:w-full"></span>
</a>
<a class="mx-5 py-[0.30rem] relative group" href="contact.php">
Contact
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('contact.php');?> group-hover:w-full"></span>
</a>
<button class="ml-5 px-3 py-1 border-[2px] border-accent_primary rounded-full hover:rounded-lg hover:shadow-lg hover:shadow-accent_primary_transparent transition transform duration-500" onclick="location.href='contact.php'">Let's Talk</button>
</div>
<div class="hamburger mr-3 mt-1 lg:hidden cursor-pointer">
<i class="fa-solid fa-bars text-2xl text-accent_primary" onclick="showNavslider()"></i>
</div>
<div class="slidercontainer hidden flex-col justify-between items-center lg:hidden fixed top-0 left-0 w-screen h-screen overflow-hidden z-50 bg-bg_primary" id="slidercontainer">
<div class="mobilemenuheader w-full flex flex-col">
<div class="topnavbarumobile flex justify-between items-center py-5 px-4">
<a class="font-cormorant text-4xl font-bold ml-2" href="index.php">Subhamoy</a>
<i class="fa-solid fa-xmark text-3xl text-accent_primary mr-3 cursor-pointer" onclick="closeNavslider()"></i>
</div>
<div class="mobilemenu flex flex-col mt-5" id="mobilemenu">
<a class="ml-6 mb-4 py-[0.30rem] w-fit relative group" href="index.php">
Home Page
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('index.php');?> group-hover:w-full"></span>
</a>
<a class="ml-6 mb-4 py-[0.30rem] w-fit relative group" href="projects.php">
My Projects
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('projects.php');?> group-hover:w-full"></span>
</a>
<a class="ml-6 mb-4 py-[0.30rem] w-fit relative group" href="blog.php">
My Blog
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('blog.php');?> group-hover:w-full"></span>
</a>
<a class="ml-6 mb-4 py-[0.30rem] w-fit relative group" href="contact.php">
Contact Me
<span class="absolute bottom-0 left-0 h-[2px] bg-accent_primary transition-all duration-300 w-0 <?php echo isPageActive('contact.php');?> group-hover:w-full"></span>
</a>
</div>
</div>
<div class="mobilemenufooter w-full flex flex-col mb-20">
<button class="mx-6 px-7 py-2 border-[2px] border-accent_primary rounded-lg hover:rounded-lg hover:shadow-lg hover:shadow-accent_primary_transparent transition transform duration-500" onclick="location.href='contact.php'">Let's Talk</button>
<div class="flex justify-center items-center mt-7 text-xl">
<i class="fa-brands fa-facebook text-accent_primary mx-2" onclick="window.open('https://www.facebook.com/profile.php?id=100076097318726')"></i>
<i class="fa-brands fa-instagram text-accent_primary mx-2" onclick="window.open('https://instagram.com/neo_subhamoy')"></i>
<i class="fa-brands fa-twitter text-accent_primary mx-2" onclick="window.open('https://twitter.com/neo_subhamoy')"></i>
<i class="fa-brands fa-linkedin text-accent_primary mx-2" onclick="window.open('https://www.linkedin.com/in/neo-subhamoy')"></i>
<i class="fa-brands fa-github text-accent_primary mx-2" onclick="window.open('https://github.com/neosubhamoy')"></i>
<i class="fa-brands fa-mastodon text-accent_primary mx-2" onclick="window.open('https://mastodon.social/@neo_subhamoy')"></i>
</div>
</div>
</div>
<script>function _0xa4c7(){var _0x2df2d6=['71704ruDKVP','479420fnaUdi','1486702nnHjGm','removeClass','2702664PycxSf','flex','hidden','2400204poixzv','1983618txElNe','2xbgBwD','#slidercontainer','2301276xzrQnn','addClass'];_0xa4c7=function(){return _0x2df2d6;};return _0xa4c7();}(function(_0x29c1be,_0x373893){var _0x3b026c=_0x4f04,_0x2c2a87=_0x29c1be();while(!![]){try{var _0x145245=parseInt(_0x3b026c(0xb0))/0x1*(-parseInt(_0x3b026c(0xb4))/0x2)+parseInt(_0x3b026c(0xbc))/0x3+-parseInt(_0x3b026c(0xbb))/0x4+-parseInt(_0x3b026c(0xb5))/0x5+parseInt(_0x3b026c(0xb2))/0x6+-parseInt(_0x3b026c(0xb6))/0x7+parseInt(_0x3b026c(0xb8))/0x8;if(_0x145245===_0x373893)break;else _0x2c2a87['push'](_0x2c2a87['shift']());}catch(_0x10dbf7){_0x2c2a87['push'](_0x2c2a87['shift']());}}}(_0xa4c7,0x62480));function _0x4f04(_0x4cb2a0,_0x4f0b95){var _0xa4c77f=_0xa4c7();return _0x4f04=function(_0x4f04ae,_0x4b3fa7){_0x4f04ae=_0x4f04ae-0xb0;var _0x147b30=_0xa4c77f[_0x4f04ae];return _0x147b30;},_0x4f04(_0x4cb2a0,_0x4f0b95);}function showNavslider(){var _0x1655f9=_0x4f04;$(_0x1655f9(0xb1))[_0x1655f9(0xb7)](_0x1655f9(0xba)),$('#slidercontainer')[_0x1655f9(0xb3)]('flex');}function closeNavslider(){var _0x1b4a44=_0x4f04;$(_0x1b4a44(0xb1))['removeClass'](_0x1b4a44(0xb9)),$(_0x1b4a44(0xb1))[_0x1b4a44(0xb3)](_0x1b4a44(0xba));}</script>
</nav>

View File

@@ -0,0 +1,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Upright&family=Lexend+Deca&family=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/extra-style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" integrity="sha512-fD9DI5bZwQxOi7MhYWnnNPlvXdp/2Pj3XSTRrFs5FQa4mizyGLnJcN6tuvUS6LbmgN1ut+XGSABKvjN0H6Aoow==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://code.jquery.com/jquery-3.7.0.js" integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM=" crossorigin="anonymous"></script>

View File

@@ -0,0 +1,63 @@
::-webkit-scrollbar {
width: 4px;
}
::-webkit-scrollbar-track {
background: #0F172A;
}
::-webkit-scrollbar-thumb {
background: rgba(56, 189, 248, 0.30);
}
::-webkit-scrollbar-thumb:hover {
background: #38BDF8;
}
@keyframes scroll {
0% {
transform: translateY(0);
}
30% {
transform: translateY(100px);
}
}
.animate-scroll {
animation: scroll ease 1.5s infinite;
}
@keyframes slide-up {
0% {
opacity: 1;
transform: translateY(0);
}
100% {
opacity: 0;
transform: translateY(-100%);
}
}
.animate-slide-up {
animation: slide-up 0.5s ease-in-out;
}
.aboutcontainer:hover::before {
opacity: 1;
}
.aboutcontainer::before {
background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
border-radius: inherit;
content: "";
height: 100%;
width: 100%;
position: absolute;
left: 0px;
top: 0px;
z-index: 2;
opacity: 0;
transition: opacity 500ms;
}

View File

@@ -0,0 +1,8 @@
<svg width="556" height="494" viewBox="0 0 556 494" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="108" cy="444" r="50" fill="#38BDF8" fill-opacity="0.09"/>
<path d="M541 218C541 338.398 442.279 436 320.5 436C198.721 436 100 338.398 100 218C100 97.6019 198.721 0 320.5 0C442.279 0 541 97.6019 541 218Z" fill="white" fill-opacity="0.04"/>
<circle cx="472.5" cy="363.5" r="83.5" fill="#38BDF8" fill-opacity="0.09"/>
<circle cx="100" cy="100" r="100" fill="#38BDF8" fill-opacity="0.09"/>
<circle cx="215" cy="459" r="15" fill="#38BDF8" fill-opacity="0.72"/>
<circle cx="456" cy="116" r="10" fill="#38BDF8" fill-opacity="0.72"/>
</svg>

After

Width:  |  Height:  |  Size: 645 B

View File

@@ -0,0 +1,8 @@
<svg width="176" height="280" viewBox="0 0 176 280" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="107.5" cy="84" rx="40.5" ry="40" fill="#D9D9D9"/>
<ellipse cx="162" cy="13.5" rx="14" ry="13.5" fill="#D9D9D9"/>
<ellipse cx="14" cy="69.5" rx="14" ry="14.5" fill="#D9D9D9"/>
<circle cx="47" cy="156" r="19" fill="#D9D9D9"/>
<circle cx="109" cy="168" r="15" fill="#D9D9D9"/>
<ellipse cx="81" cy="251" rx="28" ry="29" fill="#D9D9D9"/>
</svg>

After

Width:  |  Height:  |  Size: 453 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1004 KiB

View File

@@ -0,0 +1,8 @@
<svg width="224" height="225" viewBox="0 0 224 225" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="94.5" cy="179.5" r="37.5" fill="#D9D9D9"/>
<ellipse cx="202.5" cy="142" rx="21.5" ry="22" fill="#D9D9D9"/>
<circle cx="173" cy="30" r="30" fill="#D9D9D9"/>
<circle cx="137" cy="102" r="20" fill="#D9D9D9"/>
<circle cx="13.5" cy="211.5" r="13.5" fill="#D9D9D9"/>
<circle cx="180.5" cy="211.5" r="11.5" fill="#D9D9D9"/>
</svg>

After

Width:  |  Height:  |  Size: 436 B

View File

@@ -0,0 +1,498 @@
var VanillaTilt = (function () {
'use strict';
/**
* Created by Sergiu Șandor (micku7zu) on 1/27/2017.
* Original idea: https://github.com/gijsroge/tilt.js
* MIT License.
* Version 1.8.0
*/
class VanillaTilt {
constructor(element, settings = {}) {
if (!(element instanceof Node)) {
throw ("Can't initialize VanillaTilt because " + element + " is not a Node.");
}
this.width = null;
this.height = null;
this.clientWidth = null;
this.clientHeight = null;
this.left = null;
this.top = null;
// for Gyroscope sampling
this.gammazero = null;
this.betazero = null;
this.lastgammazero = null;
this.lastbetazero = null;
this.transitionTimeout = null;
this.updateCall = null;
this.event = null;
this.updateBind = this.update.bind(this);
this.resetBind = this.reset.bind(this);
this.element = element;
this.settings = this.extendSettings(settings);
this.reverse = this.settings.reverse ? -1 : 1;
this.resetToStart = VanillaTilt.isSettingTrue(this.settings["reset-to-start"]);
this.glare = VanillaTilt.isSettingTrue(this.settings.glare);
this.glarePrerender = VanillaTilt.isSettingTrue(this.settings["glare-prerender"]);
this.fullPageListening = VanillaTilt.isSettingTrue(this.settings["full-page-listening"]);
this.gyroscope = VanillaTilt.isSettingTrue(this.settings.gyroscope);
this.gyroscopeSamples = this.settings.gyroscopeSamples;
this.elementListener = this.getElementListener();
if (this.glare) {
this.prepareGlare();
}
if (this.fullPageListening) {
this.updateClientSize();
}
this.addEventListeners();
this.reset();
if (this.resetToStart === false) {
this.settings.startX = 0;
this.settings.startY = 0;
}
}
static isSettingTrue(setting) {
return setting === "" || setting === true || setting === 1;
}
/**
* Method returns element what will be listen mouse events
* @return {Node}
*/
getElementListener() {
if (this.fullPageListening) {
return window.document;
}
if (typeof this.settings["mouse-event-element"] === "string") {
const mouseEventElement = document.querySelector(this.settings["mouse-event-element"]);
if (mouseEventElement) {
return mouseEventElement;
}
}
if (this.settings["mouse-event-element"] instanceof Node) {
return this.settings["mouse-event-element"];
}
return this.element;
}
/**
* Method set listen methods for this.elementListener
* @return {Node}
*/
addEventListeners() {
this.onMouseEnterBind = this.onMouseEnter.bind(this);
this.onMouseMoveBind = this.onMouseMove.bind(this);
this.onMouseLeaveBind = this.onMouseLeave.bind(this);
this.onWindowResizeBind = this.onWindowResize.bind(this);
this.onDeviceOrientationBind = this.onDeviceOrientation.bind(this);
this.elementListener.addEventListener("mouseenter", this.onMouseEnterBind);
this.elementListener.addEventListener("mouseleave", this.onMouseLeaveBind);
this.elementListener.addEventListener("mousemove", this.onMouseMoveBind);
if (this.glare || this.fullPageListening) {
window.addEventListener("resize", this.onWindowResizeBind);
}
if (this.gyroscope) {
window.addEventListener("deviceorientation", this.onDeviceOrientationBind);
}
}
/**
* Method remove event listeners from current this.elementListener
*/
removeEventListeners() {
this.elementListener.removeEventListener("mouseenter", this.onMouseEnterBind);
this.elementListener.removeEventListener("mouseleave", this.onMouseLeaveBind);
this.elementListener.removeEventListener("mousemove", this.onMouseMoveBind);
if (this.gyroscope) {
window.removeEventListener("deviceorientation", this.onDeviceOrientationBind);
}
if (this.glare || this.fullPageListening) {
window.removeEventListener("resize", this.onWindowResizeBind);
}
}
destroy() {
clearTimeout(this.transitionTimeout);
if (this.updateCall !== null) {
cancelAnimationFrame(this.updateCall);
}
this.reset();
this.removeEventListeners();
this.element.vanillaTilt = null;
delete this.element.vanillaTilt;
this.element = null;
}
onDeviceOrientation(event) {
if (event.gamma === null || event.beta === null) {
return;
}
this.updateElementPosition();
if (this.gyroscopeSamples > 0) {
this.lastgammazero = this.gammazero;
this.lastbetazero = this.betazero;
if (this.gammazero === null) {
this.gammazero = event.gamma;
this.betazero = event.beta;
} else {
this.gammazero = (event.gamma + this.lastgammazero) / 2;
this.betazero = (event.beta + this.lastbetazero) / 2;
}
this.gyroscopeSamples -= 1;
}
const totalAngleX = this.settings.gyroscopeMaxAngleX - this.settings.gyroscopeMinAngleX;
const totalAngleY = this.settings.gyroscopeMaxAngleY - this.settings.gyroscopeMinAngleY;
const degreesPerPixelX = totalAngleX / this.width;
const degreesPerPixelY = totalAngleY / this.height;
const angleX = event.gamma - (this.settings.gyroscopeMinAngleX + this.gammazero);
const angleY = event.beta - (this.settings.gyroscopeMinAngleY + this.betazero);
const posX = angleX / degreesPerPixelX;
const posY = angleY / degreesPerPixelY;
if (this.updateCall !== null) {
cancelAnimationFrame(this.updateCall);
}
this.event = {
clientX: posX + this.left,
clientY: posY + this.top,
};
this.updateCall = requestAnimationFrame(this.updateBind);
}
onMouseEnter() {
this.updateElementPosition();
this.element.style.willChange = "transform";
this.setTransition();
}
onMouseMove(event) {
if (this.updateCall !== null) {
cancelAnimationFrame(this.updateCall);
}
this.event = event;
this.updateCall = requestAnimationFrame(this.updateBind);
}
onMouseLeave() {
this.setTransition();
if (this.settings.reset) {
requestAnimationFrame(this.resetBind);
}
}
reset() {
this.onMouseEnter();
if (this.fullPageListening) {
this.event = {
clientX: (this.settings.startX + this.settings.max) / (2 * this.settings.max) * this.clientWidth,
clientY: (this.settings.startY + this.settings.max) / (2 * this.settings.max) * this.clientHeight
};
} else {
this.event = {
clientX: this.left + ((this.settings.startX + this.settings.max) / (2 * this.settings.max) * this.width),
clientY: this.top + ((this.settings.startY + this.settings.max) / (2 * this.settings.max) * this.height)
};
}
let backupScale = this.settings.scale;
this.settings.scale = 1;
this.update();
this.settings.scale = backupScale;
this.resetGlare();
}
resetGlare() {
if (this.glare) {
this.glareElement.style.transform = "rotate(180deg) translate(-50%, -50%)";
this.glareElement.style.opacity = "0";
}
}
getValues() {
let x, y;
if (this.fullPageListening) {
x = this.event.clientX / this.clientWidth;
y = this.event.clientY / this.clientHeight;
} else {
x = (this.event.clientX - this.left) / this.width;
y = (this.event.clientY - this.top) / this.height;
}
x = Math.min(Math.max(x, 0), 1);
y = Math.min(Math.max(y, 0), 1);
let tiltX = (this.reverse * (this.settings.max - x * this.settings.max * 2)).toFixed(2);
let tiltY = (this.reverse * (y * this.settings.max * 2 - this.settings.max)).toFixed(2);
let angle = Math.atan2(this.event.clientX - (this.left + this.width / 2), -(this.event.clientY - (this.top + this.height / 2))) * (180 / Math.PI);
return {
tiltX: tiltX,
tiltY: tiltY,
percentageX: x * 100,
percentageY: y * 100,
angle: angle
};
}
updateElementPosition() {
let rect = this.element.getBoundingClientRect();
this.width = this.element.offsetWidth;
this.height = this.element.offsetHeight;
this.left = rect.left;
this.top = rect.top;
}
update() {
let values = this.getValues();
this.element.style.transform = "perspective(" + this.settings.perspective + "px) " +
"rotateX(" + (this.settings.axis === "x" ? 0 : values.tiltY) + "deg) " +
"rotateY(" + (this.settings.axis === "y" ? 0 : values.tiltX) + "deg) " +
"scale3d(" + this.settings.scale + ", " + this.settings.scale + ", " + this.settings.scale + ")";
if (this.glare) {
this.glareElement.style.transform = `rotate(${values.angle}deg) translate(-50%, -50%)`;
this.glareElement.style.opacity = `${values.percentageY * this.settings["max-glare"] / 100}`;
}
this.element.dispatchEvent(new CustomEvent("tiltChange", {
"detail": values
}));
this.updateCall = null;
}
/**
* Appends the glare element (if glarePrerender equals false)
* and sets the default style
*/
prepareGlare() {
// If option pre-render is enabled we assume all html/css is present for an optimal glare effect.
if (!this.glarePrerender) {
// Create glare element
const jsTiltGlare = document.createElement("div");
jsTiltGlare.classList.add("js-tilt-glare");
const jsTiltGlareInner = document.createElement("div");
jsTiltGlareInner.classList.add("js-tilt-glare-inner");
jsTiltGlare.appendChild(jsTiltGlareInner);
this.element.appendChild(jsTiltGlare);
}
this.glareElementWrapper = this.element.querySelector(".js-tilt-glare");
this.glareElement = this.element.querySelector(".js-tilt-glare-inner");
if (this.glarePrerender) {
return;
}
Object.assign(this.glareElementWrapper.style, {
"position": "absolute",
"top": "0",
"left": "0",
"width": "100%",
"height": "100%",
"overflow": "hidden",
"pointer-events": "none",
"border-radius": "inherit"
});
Object.assign(this.glareElement.style, {
"position": "absolute",
"top": "50%",
"left": "50%",
"pointer-events": "none",
"background-image": `linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)`,
"transform": "rotate(180deg) translate(-50%, -50%)",
"transform-origin": "0% 0%",
"opacity": "0"
});
this.updateGlareSize();
}
updateGlareSize() {
if (this.glare) {
const glareSize = (this.element.offsetWidth > this.element.offsetHeight ? this.element.offsetWidth : this.element.offsetHeight) * 2;
Object.assign(this.glareElement.style, {
"width": `${glareSize}px`,
"height": `${glareSize}px`,
});
}
}
updateClientSize() {
this.clientWidth = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
this.clientHeight = window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;
}
onWindowResize() {
this.updateGlareSize();
this.updateClientSize();
}
setTransition() {
clearTimeout(this.transitionTimeout);
this.element.style.transition = this.settings.speed + "ms " + this.settings.easing;
if (this.glare) this.glareElement.style.transition = `opacity ${this.settings.speed}ms ${this.settings.easing}`;
this.transitionTimeout = setTimeout(() => {
this.element.style.transition = "";
if (this.glare) {
this.glareElement.style.transition = "";
}
}, this.settings.speed);
}
/**
* Method return patched settings of instance
* @param {boolean} settings.reverse - reverse the tilt direction
* @param {number} settings.max - max tilt rotation (degrees)
* @param {startX} settings.startX - the starting tilt on the X axis, in degrees. Default: 0
* @param {startY} settings.startY - the starting tilt on the Y axis, in degrees. Default: 0
* @param {number} settings.perspective - Transform perspective, the lower the more extreme the tilt gets
* @param {string} settings.easing - Easing on enter/exit
* @param {number} settings.scale - 2 = 200%, 1.5 = 150%, etc..
* @param {number} settings.speed - Speed of the enter/exit transition
* @param {boolean} settings.transition - Set a transition on enter/exit
* @param {string|null} settings.axis - What axis should be enabled. Can be "x" or "y"
* @param {boolean} settings.glare - if it should have a "glare" effect
* @param {number} settings.max-glare - the maximum "glare" opacity (1 = 100%, 0.5 = 50%)
* @param {boolean} settings.glare-prerender - false = VanillaTilt creates the glare elements for you, otherwise
* @param {boolean} settings.full-page-listening - If true, parallax effect will listen to mouse move events on the whole document, not only the selected element
* @param {string|object} settings.mouse-event-element - String selector or link to HTML-element what will be listen mouse events
* @param {boolean} settings.reset - false = If the tilt effect has to be reset on exit
* @param {boolean} settings.reset-to-start - true = On reset event (mouse leave) will return to initial start angle (if startX or startY is set)
* @param {gyroscope} settings.gyroscope - Enable tilting by deviceorientation events
* @param {gyroscopeSensitivity} settings.gyroscopeSensitivity - Between 0 and 1 - The angle at which max tilt position is reached. 1 = 90deg, 0.5 = 45deg, etc..
* @param {gyroscopeSamples} settings.gyroscopeSamples - How many gyroscope moves to decide the starting position.
*/
extendSettings(settings) {
let defaultSettings = {
reverse: false,
max: 15,
startX: 0,
startY: 0,
perspective: 1000,
easing: "cubic-bezier(.03,.98,.52,.99)",
scale: 1,
speed: 300,
transition: true,
axis: null,
glare: false,
"max-glare": 1,
"glare-prerender": false,
"full-page-listening": false,
"mouse-event-element": null,
reset: true,
"reset-to-start": true,
gyroscope: true,
gyroscopeMinAngleX: -45,
gyroscopeMaxAngleX: 45,
gyroscopeMinAngleY: -45,
gyroscopeMaxAngleY: 45,
gyroscopeSamples: 10
};
let newSettings = {};
for (var property in defaultSettings) {
if (property in settings) {
newSettings[property] = settings[property];
} else if (this.element.hasAttribute("data-tilt-" + property)) {
let attribute = this.element.getAttribute("data-tilt-" + property);
try {
newSettings[property] = JSON.parse(attribute);
} catch (e) {
newSettings[property] = attribute;
}
} else {
newSettings[property] = defaultSettings[property];
}
}
return newSettings;
}
static init(elements, settings) {
if (elements instanceof Node) {
elements = [elements];
}
if (elements instanceof NodeList) {
elements = [].slice.call(elements);
}
if (!(elements instanceof Array)) {
return;
}
elements.forEach((element) => {
if (!("vanillaTilt" in element)) {
element.vanillaTilt = new VanillaTilt(element, settings);
}
});
}
}
if (typeof document !== "undefined") {
/* expose the class to window */
window.VanillaTilt = VanillaTilt;
/**
* Auto load
*/
VanillaTilt.init(document.querySelectorAll("[data-tilt]"));
}
return VanillaTilt;
}());

1544
htdocs/assets/style.css Normal file

File diff suppressed because it is too large Load Diff

17
htdocs/blog.php Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<title>My Blog - @neo_subhamoy</title>
<?php require 'assets/_integrate.php';?>
</head>
<body class="font-lexend bg-bg_primary text-accent_secondary">
<?php require 'assets/_header.php';?>
<div class="homebox w-full">
</div>
<?php require 'assets/_footer.php';?>
</body>
</html>

17
htdocs/contact.php Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<title>Contact Me - @neo_subhamoy</title>
<?php require 'assets/_integrate.php';?>
</head>
<body class="font-lexend bg-bg_primary text-accent_secondary">
<?php require 'assets/_header.php';?>
<div class="homebox w-full">
</div>
<?php require 'assets/_footer.php';?>
</body>
</html>

244
htdocs/index.php Normal file

File diff suppressed because one or more lines are too long

17
htdocs/projects.php Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<title>My Projects - @neo_subhamoy</title>
<?php require 'assets/_integrate.php';?>
</head>
<body class="font-lexend bg-bg_primary text-accent_secondary">
<?php require 'assets/_header.php';?>
<div class="homebox w-full">
</div>
<?php require 'assets/_footer.php';?>
</body>
</html>

16
package.json Normal file
View File

@@ -0,0 +1,16 @@
{
"name": "neosubhamoy",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "tailwindcss -i ./src/input.css -o ./htdocs/assets/style.css --watch"
},
"keywords": [],
"author": "neo_subhamoy",
"license": "ISC",
"devDependencies": {
"tailwindcss": "^3.3.2"
}
}

3
src/input.css Normal file
View File

@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

24
tailwind.config.js Normal file
View File

@@ -0,0 +1,24 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./htdocs/**/*.{php,html,js}"],
theme: {
fontFamily: {
'poppins': ['"Poppins"', 'sans-serif'],
'lexend': ['"Lexend Deca"', 'sans-serif'],
'cormorant': ['"Cormorant Upright"', 'serif']
},
colors: {
bg_primary: '#0F172A',
bg_secondary: '#1E293B',
accent_primary: '#38BDF8',
accent_secondary: '#FFFFFF',
accent_three: '#D9D9D9',
accent_four: '#ACCBDE',
accent_primary_transparent: 'rgba(56, 189, 248, 0.30)',
accent_secondary_transparent: 'rgba(255, 255, 255, 0.30)'
},
extend: {},
},
plugins: [],
}