WIP with auto pull file
This commit is contained in:
BIN
assets/logo.png
Normal file
BIN
assets/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
@@ -9,7 +9,7 @@ use ofc\Site;
|
|||||||
$site = new Site();
|
$site = new Site();
|
||||||
|
|
||||||
# Allow the Site object to be accessed in other files
|
# Allow the Site object to be accessed in other files
|
||||||
function site()
|
function site(): Site
|
||||||
{
|
{
|
||||||
global $site;
|
global $site;
|
||||||
return $site;
|
return $site;
|
||||||
|
|||||||
@@ -5,4 +5,7 @@
|
|||||||
// RAD. Check out the docs here:
|
// RAD. Check out the docs here:
|
||||||
// https://rad-theme-engine.ofco.cloud/docs/guides/helpers/
|
// https://rad-theme-engine.ofco.cloud/docs/guides/helpers/
|
||||||
|
|
||||||
echo site()->render("header");
|
echo site()->render("header", [
|
||||||
|
"logo" => site()->getAssetUrl("logo.png"),
|
||||||
|
"menu" => site()->renderMenu("main-nav"),
|
||||||
|
]);
|
||||||
|
|||||||
5
src/scss/_variables.scss
Normal file
5
src/scss/_variables.scss
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
$c-offWhite: #F2F2F2;
|
||||||
|
$c-offWhiteLight: #F9F8F8;
|
||||||
|
$c-navy: #063C5A;
|
||||||
|
$c-charcoal: #2B2400;
|
||||||
|
$c-tan: #B9AF78;
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
|
@import "variables";
|
||||||
|
|
||||||
// dependancies - bootstrap
|
// dependancies - bootstrap
|
||||||
@import "../../node_modules/bootstrap/scss/bootstrap";
|
@import "../../node_modules/bootstrap/scss/bootstrap";
|
||||||
|
|||||||
@@ -9,3 +9,21 @@
|
|||||||
{{#wp-header}}
|
{{#wp-header}}
|
||||||
</head>
|
</head>
|
||||||
<body {{#body-classes}}>
|
<body {{#body-classes}}>
|
||||||
|
|
||||||
|
<section class="top-nav">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<div class="d-flex">
|
||||||
|
<div class="logo-wrapper">
|
||||||
|
<a href="/"><img src="{{ logo }}" alt="{{#wp-title}}" /></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="align-items-center d-flex gap-3 main-nav">
|
||||||
|
{{{ menu }}}
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user