This commit is contained in:
2023-04-06 21:00:07 +08:00
parent 700ecd5d8a
commit 07f8f6db95
2 changed files with 41 additions and 29 deletions
+40 -28
View File
@@ -4,42 +4,54 @@ init();
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="shortcut icon" href="/favicon.ico" />
<title><?php echo get_page_title(); ?></title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div class="flex h-12 bg-black w-full p-3">
<div class="flex text-xl text-light-200">
Logo
</div>
<body class="bg-black">
<div class="w-full flex justify-center">
<div class="flex h-12 p-3 w-[1080px] justify-center">
<div class="flex text-xl text-light-200">
Logo
</div>
<div class="flex space-x-5 text-light-200 text-xl px-5">
<div>
<a href="/">Hello</a>
</div>
<div>
<a href="/about">About</a>
</div>
</div>
<div class="flex space-x-5 text-light-200 text-xl px-5">
<div>
<a href="/">Hello</a>
</div>
<div>
<a href="/about">About</a>
</div>
</div>
</div>
<div class="flex justify-center">
<div class="w-full flex justify-center">
<div class="flex justify-center w-[1080px]">
<div class="md:w-2/3 w-full p-2 md:p-3">
<?php show_page(); ?>
<div class="p-2 md:p-3 text-light-100 w-full">
<div class="h-[50px]"></div>
<?php show_page(); ?>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
<?php
// page func start
function show_index()
@@ -47,13 +59,13 @@ function show_index()
ob_start(); ?>
<div class="">
<p>
<a href=""></a>
<p class="text-2xl">
this is index
</p>
</div>
<?php
<?php
$html = ob_get_contents();
ob_clean();
echo $html;
@@ -66,11 +78,13 @@ function show_index()
ob_start(); ?>
<div class="">
about
<p class="text-2xl">
this is about
</p>
</div>
<?php
<?php
$html = ob_get_contents();
ob_clean();
echo $html;
@@ -87,11 +101,12 @@ function show_index()
</div>
<?php
<?php
$html = ob_get_contents();
ob_clean();
echo $html;
}
// page func end
?>
@@ -164,7 +179,4 @@ function show_page()
}
// common func end
?>
?>