-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- finished grid system - started on modals
- Loading branch information
1 parent
0e0e35d
commit e15a083
Showing
7 changed files
with
139 additions
and
41 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="col-6 menuItem"> | ||
<div class="row"> | ||
<div class="col-md-6 col-lg-8"> | ||
<h3>{{ include.name }}</h3> | ||
<p>{{ include.desc }}</p> | ||
<a class="btn btn-secondary" data-mdb-toggle="modal" data-mdb-target="#menuModal">Order</a> | ||
</div> | ||
<div class="col-md-6 col-lg-4"> | ||
<img src="{{ include.img }}" class="menuItemImg"> | ||
</div> | ||
</div> | ||
</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,98 @@ | ||
<div id="menuModal" class="modal" tabindex="-1"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">Modal title</h5> | ||
<button | ||
type="button" | ||
class="btn-close" | ||
data-mdb-dismiss="modal" | ||
aria-label="Close" | ||
></button> | ||
</div> | ||
<div class="modal-body"> | ||
<!-- Tabs navs --> | ||
<ul class="nav nav-tabs mb-3" id="ex1" role="tablist"> | ||
<li class="nav-item" role="presentation"> | ||
<a | ||
class="nav-link active" | ||
id="ex1-tab-1" | ||
data-mdb-toggle="tab" | ||
href="#ex1-tabs-1" | ||
role="tab" | ||
aria-controls="ex1-tabs-1" | ||
aria-selected="true" | ||
>Tab 1</a | ||
> | ||
</li> | ||
<li class="nav-item" role="presentation"> | ||
<a | ||
class="nav-link" | ||
id="ex1-tab-2" | ||
data-mdb-toggle="tab" | ||
href="#ex1-tabs-2" | ||
role="tab" | ||
aria-controls="ex1-tabs-2" | ||
aria-selected="false" | ||
>Tab 2</a | ||
> | ||
</li> | ||
<li class="nav-item" role="presentation"> | ||
<a | ||
class="nav-link" | ||
id="ex1-tab-3" | ||
data-mdb-toggle="tab" | ||
href="#ex1-tabs-3" | ||
role="tab" | ||
aria-controls="ex1-tabs-3" | ||
aria-selected="false" | ||
>Tab 3</a | ||
> | ||
</li> | ||
</ul> | ||
<!-- Tabs navs --> | ||
|
||
<!-- Tabs content --> | ||
<div class="tab-content" id="ex1-content"> | ||
<div | ||
class="tab-pane fade show active" | ||
id="ex1-tabs-1" | ||
role="tabpanel" | ||
aria-labelledby="ex1-tab-1" | ||
> | ||
Tab 1 content | ||
</div> | ||
<div | ||
class="tab-pane fade" | ||
id="ex1-tabs-2" | ||
role="tabpanel" | ||
aria-labelledby="ex1-tab-2" | ||
> | ||
Tab 2 content | ||
</div> | ||
<div | ||
class="tab-pane fade" | ||
id="ex1-tabs-3" | ||
role="tabpanel" | ||
aria-labelledby="ex1-tab-3" | ||
> | ||
Tab 3 content | ||
</div> | ||
</div> | ||
<!-- Tabs content --> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="button" | ||
class="btn btn-secondary" | ||
data-mdb-dismiss="modal" | ||
> | ||
Close | ||
</button> | ||
<button type="button" class="btn btn-primary"> | ||
Save changes | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</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
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,12 @@ | ||
.menuItem > .row { | ||
margin: 1rem 0.25rem 0.5rem 0; | ||
padding: 0.5rem; | ||
border: #B23CFD 1px solid; | ||
border-radius: 0.25rem; | ||
} | ||
|
||
.menuItemImg { | ||
width: 100%; | ||
aspect-ratio: 1 / 1; | ||
object-fit: cover; | ||
} |
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,15 @@ | ||
--- | ||
# Feel free to add content and custom Front Matter to this file. | ||
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults | ||
|
||
layout: default | ||
title: Home | ||
--- | ||
<div class="container-md"> | ||
<div class="row"> | ||
{% include menuItem.html name="Cheese Pizza" desc="sample description" img="//www.pizzahut.com/assets/w/tile/thor/pizza_Cheese.png" %} | ||
{% include menuItem.html name="Pepperoni Pizza" desc="sample description" img="//www.pizzahut.com/assets/w/tile/thor/pizza_Pepperoni.png" %} | ||
{% include menuItem.html name="Meat Lovers Pizza" desc="sample description" img="//www.pizzahut.com/assets/w/tile/thor/MeatLovers_RecipeTile_Web_175x210.png" %} | ||
</div> | ||
{% include menuModal.html %} | ||
</div> |