diff --git a/htdocs/.htaccess b/htdocs/.htaccess new file mode 100644 index 0000000..3828d51 --- /dev/null +++ b/htdocs/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.+)$ index.php?url=$1[QSA,L] \ No newline at end of file diff --git a/htdocs/Router.php b/htdocs/Router.php new file mode 100644 index 0000000..e91a88d --- /dev/null +++ b/htdocs/Router.php @@ -0,0 +1,43 @@ + 'home.php', + '/projects' => 'projects.php', + '/blog' => 'blog.php', + '/contact' => 'contact.php', +]; + +$devRoutes = [ + '/neosubhamoy/htdocs/' => 'home.php', + '/neosubhamoy/htdocs/projects' => 'projects.php', + '/neosubhamoy/htdocs/blog' => 'blog.php', + '/neosubhamoy/htdocs/contact' => 'contact.php', +]; + +if ($host == "localhost") { + $routes = $devRoutes; +} +else { + $routes = $serverRoutes; +} + +function routeTraffictToPages($uri, $routes) { + if(array_key_exists($uri, $routes)) { + require $routes[$uri]; + } + else { + error_page(404); + } +} + +function error_page($status_code) { + http_response_code($status_code); + require "error/{$status_code}.php"; + die(); +} + +routeTraffictToPages($uri, $routes); + +?> \ No newline at end of file diff --git a/htdocs/assets/style.css b/htdocs/assets/style.css index 566683d..d5c59b4 100644 --- a/htdocs/assets/style.css +++ b/htdocs/assets/style.css @@ -1042,10 +1042,6 @@ video { overflow: hidden; } -.overflow-scroll { - overflow: scroll; -} - .overflow-y-scroll { overflow-y: scroll; } diff --git a/htdocs/home.php b/htdocs/home.php new file mode 100644 index 0000000..47b8d9d --- /dev/null +++ b/htdocs/home.php @@ -0,0 +1,250 @@ + + + + +
+ + + +Hey there! I'm Subhamoy, an 18-year-old tech enthusiast, Self-taught Full Stacked Web, Android Developer and UI/UX Designer. Crafting modern Websites and Android apps for more than 5 years. Delivering industry grade user experiences that are not only visually stunning but also intuitive. Coding is my passion, and I pour my heart and soul into every line of code I write and every pixel I place. The digital realm is my canvas, and I'm determined to leave a lasting impact. So, get ready to witness the extraordinary, redefined future of technology with me
+Hey there! I'm Subhamoy, an 18-year-old tech enthusiast, Self-taught Full Stacked Web, Android Developer and UI/UX Designer. Crafting modern Websites and Android apps for more than 5 years. Delivering industry grade user experiences that are not only visually stunning but also intuitive. Coding is my passion, and I pour my heart and soul into every line of code I write and every pixel I place. The digital realm is my canvas, and I'm determined to leave a lasting impact. So, get ready to witness the extraordinary, redefined future of technology with me
-