mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-20 03:29:35 +05:30
(feat): made page titles dynamic
This commit is contained in:
@@ -918,10 +918,6 @@ video {
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.h-\[45dvh\] {
|
|
||||||
height: 45dvh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.w-0 {
|
.w-0 {
|
||||||
width: 0px;
|
width: 0px;
|
||||||
}
|
}
|
||||||
@@ -1606,10 +1602,6 @@ video {
|
|||||||
height: 60vh;
|
height: 60vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:h-\[60dvh\] {
|
|
||||||
height: 60dvh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md\:w-\[44vw\] {
|
.md\:w-\[44vw\] {
|
||||||
width: 44vw;
|
width: 44vw;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ require 'core/query_functions.php';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<title>My Blog - @neo_subhamoy</title>
|
<title><?php echo fetch_page_title($conn, "Blog");?></title>
|
||||||
<?php include 'assets/_preloader.php';?>
|
<?php include 'assets/_preloader.php';?>
|
||||||
<?php include 'assets/_floatingbar.php';?>
|
<?php include 'assets/_floatingbar.php';?>
|
||||||
<?php require 'assets/_integrate.php';?>
|
<?php require 'assets/_integrate.php';?>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ require 'core/query_functions.php';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<title>Contact Me - @neo_subhamoy</title>
|
<title><?php echo fetch_page_title($conn, "Contact");?></title>
|
||||||
<?php require 'assets/_integrate.php';?>
|
<?php require 'assets/_integrate.php';?>
|
||||||
</head>
|
</head>
|
||||||
<body class="font-lexend bg-bg_primary text-accent_secondary">
|
<body class="font-lexend bg-bg_primary text-accent_secondary">
|
||||||
|
|||||||
@@ -51,6 +51,16 @@ function fetch_social_icon($conn, $platform_name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//function to fetch page title
|
||||||
|
function fetch_page_title($conn, $page_name) {
|
||||||
|
$sql = "SELECT title FROM pages WHERE name = '$page_name'";
|
||||||
|
$result = $conn -> query($sql);
|
||||||
|
if($result -> num_rows > 0){
|
||||||
|
$row = $result -> fetch_assoc();
|
||||||
|
return $row['title'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---functions to fetch search results starts here---
|
//---functions to fetch search results starts here---
|
||||||
//from projects table
|
//from projects table
|
||||||
function fetch_search_results_projects($conn, $keyword) {
|
function fetch_search_results_projects($conn, $keyword) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ require 'core/query_functions.php';
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="Official Portfolio Website of Subhamoy Biswas - A Professional Web Designer and Developer - (Also Reknowned as @neo_subhamoy). | Know More About Him and His WorkExperince, Hire Him or Order Services and More.">
|
<meta name="description" content="Official Portfolio Website of Subhamoy Biswas - A Professional Web Designer and Developer - (Also Reknowned as @neo_subhamoy). | Know More About Him and His WorkExperince, Hire Him or Order Services and More.">
|
||||||
<title>@neo_subhamoy - official website</title>
|
<title><?php echo fetch_page_title($conn, "Home");?></title>
|
||||||
<?php require 'assets/_integrate.php';?>
|
<?php require 'assets/_integrate.php';?>
|
||||||
</head>
|
</head>
|
||||||
<body class="font-lexend bg-bg_primary text-accent_secondary">
|
<body class="font-lexend bg-bg_primary text-accent_secondary">
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ $years = create_project_years_array($conn);
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<title>My Projects - @neo_subhamoy</title>
|
<title><?php echo fetch_page_title($conn, "Projects");?></title>
|
||||||
<?php require 'assets/_integrate.php';?>
|
<?php require 'assets/_integrate.php';?>
|
||||||
</head>
|
</head>
|
||||||
<body class="font-lexend bg-bg_primary text-accent_secondary">
|
<body class="font-lexend bg-bg_primary text-accent_secondary">
|
||||||
|
|||||||
Reference in New Issue
Block a user