-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22d32ab
commit b46bc18
Showing
7 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use Cro::HTTP::Router; | ||
use Cro::WebApp::Template; | ||
|
||
sub tabs_hateoas-routes() is export { | ||
|
||
route { | ||
template-location 'templates/tabs_hateoas'; | ||
|
||
get -> { | ||
template 'index.crotmp'; | ||
} | ||
|
||
get -> 'tab1' { | ||
template 'tab1.crotmp'; | ||
} | ||
|
||
get -> 'tab2' { | ||
template 'tab2.crotmp'; | ||
} | ||
|
||
get -> 'tab3' { | ||
template 'tab3.crotmp'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div id="tabs" hx-get="/tabs_hateoas/tab1" hx-trigger="load delay:100ms" hx-target="#tabs" hx-swap="innerHTML"></div> | ||
|
||
<#>iamerejh</#> | ||
<#>https://codepen.io/vardumper/pen/VwdJoyE</#> | ||
<#>https://erikpoehler.com/2022/12/15/picocss-content-tabs/</#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<nav> | ||
<ul> | ||
<li hx-get="/tabs_hateoas/tab1" hx-trigger="click" class="selected" role="tab" aria-controls="tab-content"> | ||
Tab 1 | ||
</li> | ||
<li hx-get="/tabs_hateoas/tab2" hx-trigger="click" role="tab" aria-controls="tab-content"> | ||
Tab 2 | ||
</li> | ||
<li hx-get="/tabs_hateoas/tab3" hx-trigger="click" role="tab" aria-controls="tab-content"> | ||
Tab 3 | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
<div id="tab-content" role="tabpanel" class="tab-content"> | ||
Commodo normcore truffaut VHS duis gluten-free keffiyeh iPhone taxidermy godard ramps anim pour-over. | ||
Pitchfork vegan mollit umami quinoa aute aliquip kinfolk eiusmod live-edge cardigan ipsum locavore. | ||
Polaroid duis occaecat narwhal small batch food truck. | ||
PBR&B venmo shaman small batch you probably haven't heard of them hot chicken readymade. | ||
Enim tousled cliche woke, typewriter single-origin coffee hella culpa. | ||
Art party readymade 90's, asymmetrical hell of fingerstache ipsum. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<nav> | ||
<ul> | ||
<li hx-get="/tabs_hateoas/tab1" hx-trigger="click" class="selected" role="tab" aria-controls="tab-content"> | ||
Tab 1 | ||
</li> | ||
<li hx-get="/tabs_hateoas/tab2" hx-trigger="click" role="tab" aria-controls="tab-content"> | ||
Tab 2 | ||
</li> | ||
<li hx-get="/tabs_hateoas/tab3" hx-trigger="click" role="tab" aria-controls="tab-content"> | ||
Tab 3 | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
<div id="tab-content" role="tabpanel" class="tab-content"> | ||
Kitsch fanny pack yr, farm-to-table cardigan cillum commodo reprehenderit plaid dolore cronut meditation. | ||
Tattooed polaroid veniam, anim id cornhole hashtag sed forage. | ||
Microdosing pug kitsch enim, kombucha pour-over sed irony forage live-edge. | ||
Vexillologist eu nulla trust fund, street art blue bottle selvage raw denim. | ||
Dolore nulla do readymade, est subway tile affogato hammock 8-bit. | ||
Godard elit offal pariatur you probably haven't heard of them post-ironic. | ||
Prism street art cray salvia. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<nav> | ||
<ul> | ||
<li hx-get="/tabs_hateoas/tab1" hx-trigger="click" class="selected" role="tab" aria-controls="tab-content"> | ||
Tab 1 | ||
</li> | ||
<li hx-get="/tabs_hateoas/tab2" hx-trigger="click" role="tab" aria-controls="tab-content"> | ||
Tab 2 | ||
</li> | ||
<li hx-get="/tabs_hateoas/tab3" hx-trigger="click" role="tab" aria-controls="tab-content"> | ||
Tab 3 | ||
</li> | ||
</ul> | ||
</nav> | ||
|
||
<div id="tab-content" role="tabpanel" class="tab-content"> | ||
Aute chia marfa echo park tote bag hammock mollit artisan listicle direct trade. | ||
Raw denim flexitarian eu godard etsy. | ||
Poke tbh la croix put a bird on it fixie polaroid aute cred air plant four loko gastropub swag non brunch. | ||
Iceland fanny pack tumeric magna activated charcoal bitters palo santo laboris quis consectetur cupidatat portland | ||
aliquip venmo. | ||
</div> |