[WIP] Add header

This commit is contained in:
Moe Poi ~ 2021-11-09 09:30:17 +07:00
parent 1eec917b3b
commit 88d72685d5

38
views/layouts/header.ejs Normal file
View file

@ -0,0 +1,38 @@
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta name="theme-color" content="#2f0001">
<link href="assets/favicon.webp" rel="shortcut icon" type="image/webp" />
<title><%= title %></title>
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" rel="stylesheet">
<link href="https://fonts.googleapis.com" rel="preconnect">
<link crossorigin href="https://fonts.gstatic.com" rel="preconnect">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<script src="https://unpkg.com/feather-icons"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<link href="/css/navbar.css" rel="stylesheet">
<% if(state == "bag") { %>
<link href="/css/bag.css" rel="stylesheet">
<% } else if(state == "checkout") { %>
<link href="/css/checkout.css" rel="stylesheet">
<% } else if(state == "about-us") { %>
<link href="/css/about-us.css" rel="stylesheet">
<% } else if(state == "notif-pay") { %>
<link href="/css/notif-pay.css" rel="stylesheet">
<% } else if(state == "payment") { %>
<link href="/css/payment.css" rel="stylesheet">
<% } else if(state == "product") { %>
<link href="/css/product.css" rel="stylesheet">
<% } else if(state == "register-verification-completed") { %>
<link href="/css/register-verification-completed.css" rel="stylesheet">
<% } else if(state == "register-verification-sent") { %>
<link href="/css/register-verification-sent.css" rel="stylesheet">
<% } else if(state == "register") { %>
<link href="/css/register.css" rel="stylesheet">
<% } else if(state == "success-add") { %>
<link href="/css/success-add.css" rel="stylesheet">
<% } %>
</head>