65 lines
2.1 KiB
JavaScript
65 lines
2.1 KiB
JavaScript
// components/Header.jsx
|
|
import React from "react";
|
|
import Image from "next/image";
|
|
import "bootstrap-icons/font/bootstrap-icons.css";
|
|
|
|
function Header() {
|
|
return (
|
|
<header className="bg-gray-300 flex justify-between items-center w-full h-28 p-4">
|
|
<div className="relative w-1/4 h-full">
|
|
<Image
|
|
src="/images/Logo.png"
|
|
alt="Logo"
|
|
fill
|
|
style={{ objectFit: "contain" }}
|
|
className="absolute -bottom-8 transform translate-y-1/2"
|
|
priority={false}
|
|
/>
|
|
</div>
|
|
|
|
{/* CPL Status und Stationsname */}
|
|
<div className="flex items-center space-x-4 w-full justify-center">
|
|
<div className="flex flex-col text-left">
|
|
<h2 className="text-sm font-semibold">Stationsname</h2>
|
|
<p className="font-bold text-lg">CPLV4Rastede</p>
|
|
</div>
|
|
<div className="flex flex-col text-left">
|
|
<p className="text-sm font-medium">CPL Status</p>
|
|
<span className="text-green-500 font-bold">normiert</span>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Temperatur und Icons */}
|
|
<div className="flex items-center space-x-4 w-1/4 justify-end">
|
|
{/* Temperatur und Luftfeuchtigkeit */}
|
|
<div className="hidden sm:flex items-center space-x-4">
|
|
<div className="flex items-center">
|
|
<i className="bi bi-thermometer-half"></i>
|
|
<p className="text-lg ml-1">20.5 °C</p>
|
|
</div>
|
|
<div className="flex items-center">
|
|
<i className="bi bi-droplet"></i>
|
|
<p className="text-lg ml-1">60%</p>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Toggle Switch light and dark mode */}
|
|
<div className="hidden sm:flex items-center space-x-4">
|
|
<i className="bi bi-moon"></i>
|
|
<div className="flex items-center space-x-2">
|
|
<i className="bi bi-toggle-off"></i>
|
|
<i className="bi bi-brightness-high"></i>
|
|
</div>
|
|
</div>
|
|
|
|
{/* User Icon */}
|
|
<div className="flex items-center">
|
|
<i className="bi bi-person-circle text-3xl text-black"></i>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
);
|
|
}
|
|
|
|
export default Header;
|