Skip to content

Commit

Permalink
site entity updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lymarrie committed Dec 21, 2021
1 parent 9775fec commit 689981b
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
42 changes: 42 additions & 0 deletions partials/footer-siteEntity.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<footer class="">
<div class="flex flex-col flex-wrap justify-center p-5 md:flex-row">
<nav class="flex flex-wrap items-center justify-center w-full mx-auto mb-6 text-base nprd">
{{#each c_relatedSite}}
{{#each c_footer}}
<a href="{{uRL}}" class="px-4 py-1 mr-1 text-base text-blueGray-500 transition duration-500 ease-in-out transform rounded-md focus:shadow-outline focus:outline-none focus:ring-2 ring-offset-current ring-offset-2 hover:text-black ">{{label}}</a>
{{/each}}
{{/each}}
</nav>
<span class="inline-flex justify-center w-full mx-auto mt-2 mr-2 sm:ml-auto sm:mt-0 space-x-3">
<a class="text-black hover:text-blue-500">
<svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"></path>
</svg>
</a>
<a class="text-black hover:text-blue-500">
<svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z">
</path>
</svg>
</a>
<a class="text-black hover:text-blue-500">
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<rect width="20" height="20" x="2" y="2" rx="5" ry="5"></rect>
<path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37zm1.5-4.87h.01"></path>
</svg>
</a>
<a class="text-black hover:text-blue-500">
<svg fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="0" class="w-5 h-5" viewBox="0 0 24 24">
<path stroke="none" d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z">
</path>
<circle cx="4" cy="4" r="2" stroke="none"></circle>
</svg>
</a>
</span>
</div>
<div class="w-full px-8 mt-4 rounded-b-lg bg-blueGray-50">
<div class="container inline-flex flex-col flex-wrap items-center px-5 py-6 mx-auto sm:flex-row">
<p class="mx-auto text-sm text-center text-black sm:text-left "> © 2021 </p>
</div>
</div>
</footer>
55 changes: 55 additions & 0 deletions partials/navbar-siteEntity.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!--Nav-->
<nav id="header" class="w-full z-30 top-0 py-1">
<div class="w-full container mx-auto flex flex-wrap items-center justify-between mt-0 px-6 py-3">

<label for="menu-toggle" class="cursor-pointer md:hidden block">
<svg class="fill-current text-gray-900" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
<title>menu</title>
<path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"></path>
</svg>
</label>
<input class="hidden" type="checkbox" id="menu-toggle" />

<div class="hidden md:flex md:items-center md:w-auto w-full order-3 md:order-1" id="menu">
<nav>
<ul class="md:flex items-center justify-between text-base text-gray-700 pt-4 md:pt-0">
{{#each c_relatedSite}}
{{#each c_header}}
<li>
<a class="inline-block no-underline hover:text-black hover:underline py-2 px-4" href="{{uRL}}">{{label}}</a>
</li>
{{/each}}
{{/each}}
</ul>
</nav>
</div>

<div class="order-1 md:order-2">
<a class="flex items-center tracking-wide no-underline hover:no-underline font-bold text-gray-800 text-xl " href="/">
<svg class="fill-current text-gray-800 mr-2" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M5,22h14c1.103,0,2-0.897,2-2V9c0-0.553-0.447-1-1-1h-3V7c0-2.757-2.243-5-5-5S7,4.243,7,7v1H4C3.447,8,3,8.447,3,9v11 C3,21.103,3.897,22,5,22z M9,7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H9V7z M5,10h2v2h2v-2h6v2h2v-2h2l0.002,10H5V10z" />
</svg>
{{global.name}}
</a>
</div>

<div class="order-2 md:order-3 flex items-center" id="nav-content">

<a class="inline-block no-underline hover:text-black" href="#">
<svg class="fill-current hover:text-black" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<circle fill="none" cx="12" cy="7" r="3" />
<path d="M12 2C9.243 2 7 4.243 7 7s2.243 5 5 5 5-2.243 5-5S14.757 2 12 2zM12 10c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3S13.654 10 12 10zM21 21v-1c0-3.859-3.141-7-7-7h-4c-3.86 0-7 3.141-7 7v1h2v-1c0-2.757 2.243-5 5-5h4c2.757 0 5 2.243 5 5v1H21z" />
</svg>
</a>

<a class="pl-3 inline-block no-underline hover:text-black" href="#">
<svg class="fill-current hover:text-black" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M21,7H7.462L5.91,3.586C5.748,3.229,5.392,3,5,3H2v2h2.356L9.09,15.414C9.252,15.771,9.608,16,10,16h8 c0.4,0,0.762-0.238,0.919-0.606l3-7c0.133-0.309,0.101-0.663-0.084-0.944C21.649,7.169,21.336,7,21,7z M17.341,14h-6.697L8.371,9 h11.112L17.341,14z" />
<circle cx="10.5" cy="18.5" r="1.5" />
<circle cx="17.5" cy="18.5" r="1.5" />
</svg>
</a>

</div>
</div>
</nav>
Binary file added templates/.DS_Store
Binary file not shown.
8 changes: 6 additions & 2 deletions templates/product.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"id",
"uid",
"meta",
"c_relatedSite.c_header",
"c_relatedSite.c_footer",
"c_relatedSite.c_googleAnalytics",
"c_relatedSite.c_APIKeys",
"richTextDescription",
"name",
"slug",
Expand Down Expand Up @@ -44,7 +48,7 @@

<div class="container bg-white mx-auto px-4">
<body>
{{>navbar}}
{{>navbar-siteEntity}}
<div class="text-5xl text-center py-5"></div>
<div class="grid grid-cols-2 divide-x gap-3 pl-10">
<div class="col-span-1">
Expand All @@ -71,6 +75,6 @@
</body>
</div>

{{>footer}}
{{>footer-siteEntity}}

</html>
8 changes: 6 additions & 2 deletions templates/productCategory.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"uid",
"name",
"slug",
"c_relatedSite.c_header",
"c_relatedSite.c_footer",
"c_relatedSite.c_googleAnalytics",
"c_relatedSite.c_APIKeys",
"richTextDescription",
"c_relatedProducts.name",
"c_relatedProducts.slug",
Expand Down Expand Up @@ -47,7 +51,7 @@
<div class="container mx-auto px-4">
<body>

{{>navbar}}
{{>navbar-siteEntity}}

<div class="container py-8 px-6 mx-auto">
<div class="uppercase tracking-wide no-underline hover:no-underline font-bold text-gray-800 text-2xl mb-8">{{name}}</div>
Expand Down Expand Up @@ -82,6 +86,6 @@
</body>
</div>

{{>footer}}
{{>footer-siteEntity}}

</html>

0 comments on commit 689981b

Please sign in to comment.