Skip to content

Commit

Permalink
menu progress
Browse files Browse the repository at this point in the history
- finished grid system
- started on modals
  • Loading branch information
sethwalker1 committed Jul 2, 2021
1 parent 0e0e35d commit e15a083
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 41 deletions.
12 changes: 12 additions & 0 deletions _includes/menuItem.html
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>
98 changes: 98 additions & 0 deletions _includes/menuModal.html
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>
2 changes: 2 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.6.0/mdb.min.css"
rel="stylesheet"
/>

<link href="cdn/css/index.css" rel="stylesheet" />
</head>
<body>
{% include navbar.html %}
Expand Down
18 changes: 0 additions & 18 deletions about.md

This file was deleted.

12 changes: 12 additions & 0 deletions cdn/css/index.css
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;
}
15 changes: 15 additions & 0 deletions index.html
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>
23 changes: 0 additions & 23 deletions index.md

This file was deleted.

0 comments on commit e15a083

Please sign in to comment.