Forum Moderators: not2easy
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<meta name="description" content= "FoxClone is a Linux based image backup, restore and clone tool using a simple point and click interface." />
<meta name="robots" content= "index, follow">
<link rel="stylesheet" type="text/css" media="screen" href="css/foxclone.css">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<div class="navbar-links">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="features.php">Features</a></li>
<li><a href="legal.php">Legal</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="download.php">Downloads</a></li>
</ul>
</div>
</nav> .fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
box-sizing: border-box;
z-index: 1030;
}
.navbar {
position:fixed;
width: 100%;
display: flex;
background: black;
height: 30px;
justify-content: flex-end;
flex: 0 1 60vw;
}
.brand-title {
font-size: 1.5rem;
margin: .25rem;
}
.navbar-links {
height: 100%;
}
.navbar-links ul {
display: flex;
margin: 0;
padding: 0;
}
.navbar-links li {
list-style: none;
}
.navbar-links li a {
font-weight:bold;
display: block;
background: transparent;
color: #FFEB3B;
text-align: center;
padding: .2rem 1rem 0 1rem;
text-decoration: none;
}
.navbar-links li:hover {
background-color: blue;
}
.toggle-button {
position: absolute;
top: .75rem;
right: 1rem;
display: none;
flex-direction: column;
justify-content: space-between;
width: 30px;
height: 21px;
}
<style>
.navbar {background: transparent;}
</style>
//in style sheet
.navbar.homepage {background: transparent;}
// in html
<!-- Navbar -->
<nav class="navbar homepage">
.homepage .navbar {
background: transparent;
}
nav.seethrough {background-color: transparent;}
defined after nav.navbar <nav class = "navbar seethrough">
so you can still use the rest of the .navbar styling. Otherwise you’d have to say the same things over again in the CSS for two different styles. <meta name="robots" content= "index, follow">Why expend the 45 bytes per page when that’s the default anyway?
<?php
$php_scripts = '../php/';
require $php_scripts . 'PDO_Connection_Select.php';
require $php_scripts . 'GetUserIpAddr.php';
$ip = GetUserIpAddr();
if (!$pdo = PDOConnect("foxclone_data")) {
exit;
}
$stmt = $pdo->prepare("INSERT INTO access (address) values (?)");
$stmt->execute([$ip]) ;
?>
<?PHP require_once("header.php"); ?>
<!-- Header -->
<header class="header">
<div class="header-content">
<!-- <div class="p-large"> -->
<div class="header__top">FoxClone</div>
</div>
<p class="p-small">FoxClone is a Linux based image backup, restore and
clone tool using a simple point and click interface. Booted from its' own linux system, it takes
images of the partitions on your hard disk (HDD) or solid-state
drive (SSD) and stores them for later restoration. Image files
can optionally be compressed to save space.</p>
</div>
</header> <!-- end of header -->
<?PHP require_once("footer.php"); ?>
I got the impression the if statement was part of the php header code that's used by all pages,
<!-- Header -->
if(basename($_SERVER['REQUEST_URI']) == 'index' {
<header class="header homepage">
} else {
<header class="header">
}
//in style sheet
.header .homepage {background: transparent;}
//in style sheetUrk. You meant to say
.header .homepage {background: transparent;}