Skip to content

Commit daead53

Browse files
committed
Added comment html to help with tutorial
1 parent 81da938 commit daead53

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

resources/views/layouts/app.blade.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
1515
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
1616
<link href="{{ asset('css/styles.css') }}" rel="stylesheet">
17+
@yield('styles')
1718
</head>
1819
<body>
1920
<div id="app">
@@ -77,9 +78,22 @@
7778
</nav>
7879

7980
@yield('content')
81+
82+
<div class="container">
83+
<div class="col-md-12">
84+
<hr />
85+
</div>
86+
87+
<div class="col-md-12" style="margin-bottom: 20px;">
88+
<div class="text-center">
89+
Tutorial Taught & Built with ❤️ by <a href="https://devmarketer.io">DevMarketer</a>
90+
</div>
91+
</div>
92+
</div>
8093
</div>
8194

8295
<!-- Scripts -->
8396
<script src="{{ asset('js/app.js') }}"></script>
97+
@yield('scripts')
8498
</body>
8599
</html>

resources/views/posts/show.blade.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,28 @@
1313
<p class="lead">
1414
{{ $post->content }}
1515
</p>
16+
<hr />
17+
18+
<h3>Comments:</h3>
19+
<div style="margin-bottom:50px;">
20+
<textarea class="form-control" rows="3" name="body" placeholder="Leave a comment"></textarea>
21+
<button class="btn btn-success" style="margin-top:10px">Save Comment</button>
22+
</div>
23+
24+
25+
<div class="media" style="margin-top:20px;">
26+
<div class="media-left">
27+
<a href="#">
28+
<img class="media-object" src="http://placeimg.com/80/80" alt="...">
29+
</a>
30+
</div>
31+
<div class="media-body">
32+
<h4 class="media-heading">John Doe said...</h4>
33+
<p>
34+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
35+
</p>
36+
<span style="color: #aaa;">on Dec 15, 2017</span>
37+
</div>
38+
</div>
1639
</div>
1740
@endsection

0 commit comments

Comments
 (0)