Skip to content

Commit 157d5cd

Browse files
committed
Post styling
1 parent 35e2de2 commit 157d5cd

File tree

9 files changed

+79
-16
lines changed

9 files changed

+79
-16
lines changed

public/css/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ body {
1616
Light Orange #ffe7c9
1717
Orange #ff9000
1818
Red #c93d3d
19+
Light Red #c97474
1920
*/
2021

2122
/* Navbar */

public/css/home.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Light Orange #ffe7c9
44
Orange #ff9000
55
Red #c93d3d
6-
6+
Light Red #c97474
77
*/
88

99
#temp-logged-in-notice {

public/css/login.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Light Orange #ffe7c9
44
Orange #ff9000
55
Red #c93d3d
6-
6+
Light Red #c97474
77
*/
88

99
#outside-panel {

public/css/newspost.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
Light Orange #ffe7c9
3+
Orange #ff9000
4+
Red #c93d3d
5+
Light Red #c97474
6+
*/
7+
8+
#container-spacing {
9+
margin-top: 10%;
10+
padding-top:10px;
11+
padding-bottom:10px;
12+
background-color: #c97474;
13+
text-align: center;
14+
}
15+
16+
#post {
17+
padding-top:-5px;
18+
padding-bottom: 2%;
19+
background-color: white;
20+
}
21+
#post-title {
22+
font-size: 45px;
23+
24+
}
25+
#post-time {
26+
font-size: 12px;
27+
}
28+
29+
30+
#comments-label {
31+
padding-top: 5%;
32+
padding-bottom: 5px;
33+
color: white;
34+
font-size: 24px;
35+
text-decoration: underline;
36+
}
37+
38+
.comment {
39+
padding-bottom: 2%;
40+
}
41+
#comment-data {
42+
font-size: 15px;
43+
color: white;
44+
}
45+
#comment-name {
46+
font-size: 13px;
47+
color: #ffe7c9;
48+
}
49+
#comment-time {
50+
font-size: 10px;
51+
}
52+
53+
#comment-button {
54+
background-color: #ff9000;
55+
border-color: white;
56+
}

public/css/profile.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Light Orange #ffe7c9
44
Orange #ff9000
55
Red #c93d3d
6-
6+
Light Red #c97474
77
*/
88

99
.user-name {

public/css/projectlibrary.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Light Orange #ffe7c9
44
Orange #ff9000
55
Red #c93d3d
6-
6+
Light Red #c97474
77
*/
88

99
#outside-panel {

public/css/register.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Light Orange #ffe7c9
44
Orange #ff9000
55
Red #c93d3d
6-
6+
Light Red #c97474
77
*/
88

99
#outside-panel {

public/css/welcome.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Light Orange #ffe7c9
44
Orange #ff9000
55
Red #c93d3d
6-
6+
Light Red #c97474
77
*/
88

99
#temp-logged-in-notice {
Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
@extends('layouts.master')
2-
2+
<link rel="stylesheet" href="{{ URL::asset('/css/newspost.css') }}">
33
@section('content')
4+
<div class="container" id="container-spacing">
45

5-
<h4>{{$post->title}}</h4><br>
6-
{{$post->created_at}}<br><br>
7-
<?php echo $post->info; ?><br>
8-
6+
<div id="post">
7+
<div id="post-title">{{$post->title}}</div>
8+
<div id="post-time">{{$post->created_at}}</div>
9+
<div id="post-info"><?php echo $post->info; ?></div>
10+
</div>
911

10-
<h2>Comments:</h2>
12+
<div id="comments-label">Comments:</div>
1113

1214
@foreach ($post->comments as $comment)
13-
<a href="/members/{{$comment->user->id}}">{{$comment->user->name}}</a><br>
14-
{{$comment->created_at}}<br>
15-
{{$comment->data}}<br><br>
15+
<div class="comment">
16+
<span id="comment-data">{{$comment->data}}</span> -
17+
<a href="/members/{{$comment->user->id}}" id="comment-name">{{$comment->user->name}}</a>
18+
<span id="comment-time">{{$comment->created_at}}</span>
19+
20+
</div>
1621
@endforeach
1722

1823
@if(Auth::User())
@@ -21,7 +26,7 @@
2126
<div class="form-group">
2227
<textarea class="form-control" name="data" id="new-project" rows="5" placeholder="Post a comment here."></textarea>
2328
</div>
24-
<button type="submit" class="btn btn-primary">Post Comment</button>
29+
<button type="submit" class="btn btn-primary" id="comment-button">Post Comment</button>
2530
<input type="hidden" value="{{ Session::token() }}" name="_token">
2631
{{ csrf_field() }}
2732
</form>
@@ -30,4 +35,5 @@
3035
Please <a href="{{ url('/login') }}">login</a> if you want to post a comment.
3136
@endif
3237

38+
</div>
3339
@endsection

0 commit comments

Comments
 (0)