Skip to content

Commit c80ca2e

Browse files
committed
Refactory
1 parent 009e4ea commit c80ca2e

File tree

10 files changed

+407
-62
lines changed

10 files changed

+407
-62
lines changed

_includes/portal.html

Lines changed: 66 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,67 @@
1-
<nav
2-
class="relative flex items-center justify-between w-full shadow-lg bg-stone-800 text-neutral-600 dark:bg-neutral-700 dark:text-neutral-300 dark:shadow-black/5 lg:flex-wrap lg:justify-start"
3-
>
4-
<div class="pl-8">
5-
<button
6-
class="py-3 text-xl leading-none transition-shadow duration-150 ease-in-out bg-transparent border-0 hover:text-neutral-700 focus:bg-neutral-600 lg:hidden"
7-
type="button" data-te-collapse-init data-te-target="#navbarSupportedContentY"
8-
aria-controls="navbarSupportedContentY" aria-expanded="false" aria-label="Toggle navigation">
9-
<span class="[&>svg]:w-8">
10-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
11-
class="w-8 h-8">
12-
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
13-
</svg>
14-
</span>
15-
</button>
16-
<div class="!visible hidden flex-grow basis-[100%] items-center lg:!flex lg:basis-auto" id="navbarSupportedContentY"
17-
data-te-collapse-item>
18-
<ul class="flex flex-row mr-auto" data-te-navbar-nav-ref>
19-
20-
<li class="static">
21-
<a class="flex items-end h-24 pb-6 pr-2 font-semibold text-white transition duration-200 ease-in-out whitespace-nowrap bg-stone-800 hover:bg-orange-500 focus:bg-neutral-600 lg:px-6"
22-
href="/development" type="button" i18n>Development</a>
23-
</li>
24-
<li class="static">
25-
<a class="flex items-end h-24 pb-6 pr-2 font-semibold text-white transition duration-200 ease-in-out whitespace-nowrap bg-stone-800 hover:bg-orange-500 focus:bg-neutral-600 lg:px-6"
26-
href="/crowdfunding" type="button" i18n>Crowdfunding</a>
27-
</li>
28-
<li class="static">
29-
<a class="flex items-end h-24 pb-6 pr-2 font-semibold text-white transition duration-200 ease-in-out whitespace-nowrap bg-stone-800 hover:bg-orange-500 focus:bg-neutral-600 lg:px-6"
30-
href="/coworking" type="button" i18n>Coworking</a>
31-
</li>
32-
<li class="static">
33-
<a class="flex items-end h-24 pb-6 pr-2 font-semibold text-white transition duration-200 ease-in-out whitespace-nowrap bg-stone-800 hover:bg-orange-500 focus:bg-neutral-600 lg:px-6"
34-
href="/freelancers" type="button" i18n>Freelancers</a>
35-
</li>
36-
<li class="static">
37-
<a class="flex items-end h-24 pb-6 pr-2 font-semibold text-white transition duration-200 ease-in-out whitespace-nowrap bg-stone-800 hover:bg-orange-500 focus:bg-neutral-600 lg:px-6"
38-
href="/learning" type="button" i18n>Learning</a>
39-
</li>
40-
<li class="static">
41-
<a class="flex items-end h-24 pb-6 pr-2 font-semibold text-white transition duration-200 ease-in-out whitespace-nowrap bg-stone-800 hover:bg-orange-500 focus:bg-neutral-600 lg:px-6"
42-
href="/community" type="button" i18n>Community</a>
43-
</li>
44-
</ul>
1+
<div>
2+
<nav
3+
class="relative flex items-center justify-between w-full shadow-lg bg-stone-800 text-neutral-600 dark:bg-neutral-700 dark:text-neutral-300 dark:shadow-black/5 lg:flex-wrap lg:justify-start">
4+
<div class="pl-8">
5+
<button
6+
class="py-3 text-xl leading-none transition-shadow duration-150 ease-in-out bg-transparent border-0 hover:text-neutral-700 focus:bg-neutral-600 lg:hidden"
7+
type="button" data-te-collapse-init data-te-target="#navbarSupportedContentY"
8+
aria-controls="navbarSupportedContentY" aria-expanded="false" aria-label="Toggle navigation">
9+
<span class="[&>svg]:w-8">
10+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
11+
class="w-8 h-8">
12+
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
13+
</svg>
14+
</span>
15+
</button>
16+
<div class="!visible hidden flex-grow basis-[100%] items-center lg:!flex lg:basis-auto" id="navbarSupportedContentY">
17+
<ul class="flex flex-row mr-auto">
18+
<li class="static">
19+
<a class="flex items-end h-24 pb-6 font-semibold text-white transition duration-200 ease-in-out hover:bg-neutral-600 focus:bg-neutral-600 lg:px-6 {{ request()->routeIs('software') ? 'bg-orange-500' : 'bg-stone-800' }}"
20+
href="/development">
21+
DEVELOPMENT
22+
</a>
23+
</li>
24+
<li class="static">
25+
<a class="flex items-end h-24 pb-6 font-semibold text-white transition duration-200 ease-in-out hover:bg-neutral-600 focus:bg-neutral-600 lg:px-6 {{ request()->routeIs('platform') ? 'bg-orange-500' : 'bg-stone-800' }}"
26+
href="/crowdfunding">
27+
CROWDFUNDING
28+
</a>
29+
</li>
30+
<li class="static">
31+
<a class="flex items-end h-24 pb-6 font-semibold text-white transition duration-200 ease-in-out hover:bg-neutral-600 focus:bg-neutral-600 lg:px-6 {{ request()->routeIs('infrastructure') ? 'bg-orange-500' : 'bg-stone-800' }}"
32+
href="/coworking">
33+
CO-WORKING
34+
</a>
35+
</li>
36+
<li class="static">
37+
<a class="flex items-end h-24 pb-6 font-semibold text-white transition duration-200 ease-in-out hover:bg-neutral-600 focus:bg-neutral-600 lg:px-6 {{ request()->routeIs('large-scale') ? 'bg-orange-500' : 'bg-stone-800' }}"
38+
href="/freelancers">
39+
FREELANCERS
40+
</a>
41+
</li>
42+
<li class="static">
43+
<a class="flex items-end h-24 pb-6 font-semibold text-white transition duration-200 ease-in-out hover:bg-neutral-600 focus:bg-neutral-600 lg:px-6 {{ request()->routeIs('large-scale') ? 'bg-orange-500' : 'bg-stone-800' }}"
44+
href="/learning">
45+
LEARNING
46+
</a>
47+
</li>
48+
<li class="static">
49+
<a class="flex items-end h-24 pb-6 font-semibold text-white transition duration-200 ease-in-out hover:bg-neutral-600 focus:bg-neutral-600 lg:px-6 {{ request()->routeIs('large-scale') ? 'bg-orange-500' : 'bg-stone-800' }}"
50+
href="/community">
51+
COMMUNITY
52+
</a>
53+
</li>
54+
</ul>
55+
</div>
4556
</div>
46-
</div>
47-
</nav>
57+
</nav>
58+
</div>
59+
{% if page.title %}
60+
<header class="bg-white shadow">
61+
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
62+
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
63+
{{ page.title }}
64+
</h2>
65+
</div>
66+
</header>
67+
{% endif %}

_sass/base.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)