undefined / header.php
ProvidenceBara3's picture
also, make a contact page that should also be in php to be fully integrated in wordpress environment.
4967f94 verified
Raw History Blame Contribute Delete
2.59 kB
```php
<?php
/**
* The header template
*
* @package SOGEEC
* @since 1.0
*/
?><!DOCTYPE html>
<html lang="<?php language_attributes(); ?>">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title('|', true, 'right'); ?></title>
<link rel="icon" type="image/x-icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
<?php wp_head(); ?>
<style>
.hero-section {
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('http://static.photos/construction/1200x630/10');
background-size: cover;
background-position: center;
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.nav-link:hover {
color: #ecc94b;
}
</style>
</head>
<body <?php body_class('font-sans bg-gray-50'); ?>>
<!-- Navigation -->
<nav class="bg-primary text-white shadow-lg sticky top-0 z-50">
<div class="container mx-auto px-6 py-3 flex justify-between items-center">
<div class="flex items-center space-x-4">
<img src="http://static.photos/industry/200x200/5" alt="Logo" class="h-12 w-12 rounded-full">
<span class="font-bold text-xl">SOGEEC SARL</span>
</div>
<div class="hidden md:flex items-center space-x-8">
<a href="<?php echo home_url('/'); ?>" class="nav-link font-medium">Accueil</a>
<a href="<?php echo home_url('/#services'); ?>" class="nav-link font-medium">Services</a>
<a href="<?php echo home_url('/#projects'); ?>" class="nav-link font-medium">Projets</a>
<a href="<?php echo home_url('/#about'); ?>" class="nav-link font-medium">À Propos</a>
<a href="<?php echo get_permalink(get_option('page_for_posts')); ?>" class="nav-link font-medium">Blog</a>
<a href="<?php echo home_url('/contact'); ?>" class="nav-link font-medium">Contact</a>
<div class="flex space-x-2">
<span class="text-sm">FR</span>
<span class="text-sm text-gray-300">|</span>
<span class="text-sm">EN</span>
</div>
</div>
<button class="md:hidden focus:outline-none">
<i data-feather="menu" class="text-white"></i>
</button>
</div>
</nav>
```