From: bochard Date: Thu, 7 Aug 2025 02:16:26 +0000 (+0800) Subject: customized design for each page X-Git-Url: https://git.bochard.net/?a=commitdiff_plain;h=727b7bbd5dd25a0f9caf61618f6fa377d3faa227;p=mysite.git customized design for each page --- diff --git a/guestbook.php b/guestbook.php index f0146c3..ef6a9b5 100644 --- a/guestbook.php +++ b/guestbook.php @@ -2,7 +2,8 @@ require_once("{$_SERVER['DOCUMENT_ROOT']}/parts/head.php"); $pgtitle = "My site's guestbook"; $pgdescription = "please fill the guestbook before you leave the site."; - head($pgtitle, $pgdescription); + $pgcss = ["guestbook.css"]; + head($pgtitle, $pgdescription, $pgcss); ?> diff --git a/images/backgrounds/Guest.gif b/images/backgrounds/Guest.gif new file mode 100644 index 0000000..8440098 Binary files /dev/null and b/images/backgrounds/Guest.gif differ diff --git a/images/backgrounds/backgroundl3.gif b/images/backgrounds/backgroundl3.gif new file mode 100644 index 0000000..6bdb604 Binary files /dev/null and b/images/backgrounds/backgroundl3.gif differ diff --git a/images/backgrounds/bg_main2.gif b/images/backgrounds/bg_main2.gif new file mode 100644 index 0000000..9f7d050 Binary files /dev/null and b/images/backgrounds/bg_main2.gif differ diff --git a/images/backgrounds/bg_noi4.gif b/images/backgrounds/bg_noi4.gif new file mode 100644 index 0000000..8f3dcb1 Binary files /dev/null and b/images/backgrounds/bg_noi4.gif differ diff --git a/images/backgrounds/doorBK.gif b/images/backgrounds/doorBK.gif new file mode 100644 index 0000000..f4e542b Binary files /dev/null and b/images/backgrounds/doorBK.gif differ diff --git a/images/backgrounds/patternTV2.gif b/images/backgrounds/patternTV2.gif new file mode 100644 index 0000000..6be31d8 Binary files /dev/null and b/images/backgrounds/patternTV2.gif differ diff --git a/stylesheets/guestbook.css b/stylesheets/guestbook.css new file mode 100644 index 0000000..68291b8 --- /dev/null +++ b/stylesheets/guestbook.css @@ -0,0 +1,12 @@ +body { + background-image: url('/images/backgrounds/backgroundl3.gif'); + background-repeat: repeat; + background-size: unset; +} +#content { + background-color: black; + background-image: url('/images/backgrounds/doorBK.gif'); + background-repeat: no-repeat; + background-position: right; + color: white; +} diff --git a/stylesheets/journal.css b/stylesheets/journal.css index 989c61d..37b7087 100644 --- a/stylesheets/journal.css +++ b/stylesheets/journal.css @@ -1,3 +1,11 @@ +body { + background-image: url('/images/backgrounds/clouds.gif'); + background-repeat: repeat; + background-size: contain; +} +#content { + background-image: url('/images/backgrounds/paper.jpg'); +} .entry-list-item { font-style: italic; } diff --git a/stylesheets/root.css b/stylesheets/root.css index 031e6e4..b1fd2fc 100644 --- a/stylesheets/root.css +++ b/stylesheets/root.css @@ -1,12 +1,9 @@ body { font-family: Palatino, serif; - background-image: url('/images/backgrounds/clouds.gif'); -/* + background-image: url('/images/backgrounds/Ocean.jpg'); + background-repeat: no-repeat; background-size: cover; background-attachment: fixed; -*/ - background-repeat: repeat; - font-size: 16px; } h1, h2, h3, h4, h5, h6 { font-size: 28px;