make banner & items flexible, create handlebar-component for banner items
This commit is contained in:
@@ -11,21 +11,26 @@
|
|||||||
{{> nav homeActive=true }}
|
{{> nav homeActive=true }}
|
||||||
|
|
||||||
<div class="home grow">
|
<div class="home grow">
|
||||||
<h1 class="flex justify-center">Welcome to the world of Curling!</h1>
|
<h1 class="flex justify-center text-center">Welcome to the world of Curling!</h1>
|
||||||
|
|
||||||
<div class="h-40 bg-banner flex justify-between items-center px-40 mb-14">
|
<div class="flex h-auto bg-banner md:flex-row flex-col justify-center my-5">
|
||||||
<a href="rules.html" class="flex flex-col align-middle">
|
{{> banneritem
|
||||||
<img src="/rules.svg" alt="Regeln" class="w-20 h-20"/>
|
href="rules.html"
|
||||||
<p class="text-center">Regeln</p>
|
img="/rules.svg"
|
||||||
</a>
|
imgalt="Regeln"
|
||||||
<a href="spiritofcurling.html" class="flex flex-col align-middle">
|
text="Regeln"}}
|
||||||
<img src="/spirit.svg" alt="Spirit of Curling" class="w-20 h-20"/>
|
|
||||||
<p class="text-center">Spirit of Curling</p>
|
{{> banneritem
|
||||||
</a>
|
href="spiritofcurling.html"
|
||||||
<a href="impressions.html" class="flex flex-col align-middle">
|
img="/spirit.svg"
|
||||||
<img src="/extension.svg" alt="Beispiele" class="w-20 h-20"/>
|
imgalt="Spirit of Curling"
|
||||||
<p class="text-center">Beispiele</p>
|
text="Spirit of Curling"}}
|
||||||
</a>
|
|
||||||
|
{{> banneritem
|
||||||
|
href="impressions.html"
|
||||||
|
img="/extension.svg"
|
||||||
|
imgalt="Beispiele"
|
||||||
|
text="Beispiele"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
4
Webauftritt/eportfolio/partials/banneritem.hbs
Normal file
4
Webauftritt/eportfolio/partials/banneritem.hbs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<a href="{{href}}" class="flex flex-row m-10 md:flex-col md:items-center">
|
||||||
|
<img src="{{img}}" alt="{{imgalt}}" class="w-20 h-20"/>
|
||||||
|
<p class="flex flex-col justify-center ml-5 md:ml-0 md:text-center">{{text}}</p>
|
||||||
|
</a>
|
||||||
Reference in New Issue
Block a user