Skip to content

Commit 432ef9c

Browse files
committed
ammend + style changes
1 parent b7459c4 commit 432ef9c

File tree

7 files changed

+35
-18
lines changed

7 files changed

+35
-18
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ app.use(cookieParser());
3737
app.use(express.static(path.join(__dirname, 'public')));
3838

3939
app.use('/', index);
40-
app.use('/user', user);
40+
app.use('/dashboard', user);
4141
app.use('/auth', auth);
4242
app.use('/logout', auth);
4343
app.use('/feed', feed);

public/css/style.css

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,19 @@ a {
1212
}
1313

1414
main, aside {
15+
padding: 30px 0;
1516
max-width: 520px;
1617
margin: 0 auto;
1718
}
18-
19+
.tags {
20+
margin: 10px 0;
21+
}
22+
.tags span {
23+
border: solid 1px #ccc;
24+
padding: 5px;
25+
border-radius: 5px;
26+
margin: 0 5px 0 0;
27+
}
1928

2029
img {
2130
max-width: 100%;
@@ -24,8 +33,6 @@ img {
2433
border: solid 1px #ccc;
2534
margin: 30px 0;
2635
}
27-
28-
2936
.comment {
3037
margin: 15px 0;
3138
}
@@ -42,30 +49,42 @@ img {
4249
.meta form {
4350
display: inline-block;
4451
}
52+
4553
input, label, textarea, button {
46-
/*margin: 15px 0;
54+
margin: 15px 0;
4755
width: 100%;
4856
border-radius: 3px;
49-
padding: 5px;*/
57+
padding: 5px;
5058
}
5159

5260
input, textarea {
53-
/*border: solid 1px #7b7b7b;*/
61+
border: solid 1px #7b7b7b;
5462
}
5563

5664
input:focus, textarea:focus {
57-
/*outline: 0;*/
65+
outline: 0;
5866
}
5967

6068
textarea {
61-
/*min-height: 400px;*/
69+
min-height: 400px;
6270
}
6371

6472
button, input[type="submit"] {
65-
/*cursor: pointer;*/
73+
cursor: pointer;
6674
}
6775

6876
.vote {
69-
/*width: 100px;
70-
margin: 0 0 40px;*/
77+
width: 100px;
78+
}
79+
80+
.comment-message {
81+
margin-top: 20px;
82+
}
83+
.send-comment {
84+
cursor: pointer;
85+
display: inline-block;
86+
border-radius: 3px;
87+
padding: 10px;
88+
border: solid 1px #7b7b7b;
89+
margin: 20px 0 40px;
7190
}

public/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ function appendSinglePost(post, users){
194194
let header = `
195195
<img src="${profileImage}" class="author-img" width="35" height="35" src="">
196196
<span class="overlay__author-username">@${post.author}</span>
197-
${tags}
198-
<h1 class="title">${post.title}</h1>
197+
<div class="tags">${tags}</div>
198+
<h2 class="title">${post.title}</h2>
199199
`
200200
let voteButton = `
201201
<form method="post">

routes/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ router.get('/', (req, res, next) => {
1212
steem.setAccessToken(req.query.access_token);
1313
steem.me((err, steemResponse) => {
1414
req.session.steemconnect = steemResponse.account;
15-
res.redirect('/user')
15+
res.redirect('/dashboard')
1616
});
1717
}
1818
});
File renamed without changes.

views/feed.pug

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ block content
44
include partials/nav
55

66
main.feed(data-feed-type=`${feed}`)
7-
h1 Feed - /Trending
87
.container
98
.row.feed-insert
109

views/partials/nav.pug

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ nav(class="navbar navbar-expand-lg navbar-dark bg-dark")
44
.navbar-nav
55
a.nav-item.nav-link(href="/feed/trending") Trending
66
a.nav-item.nav-link(href="/feed/created") New
7-
a.nav-item.nav-link(href="/feed/promoted") Promoted
87
.navbar-nav.ml-auto
98
a.nav-item.nav-link.btn.btn-outline-secondary(href="/post") Create Post
10-
a.nav-item.nav-link(href="/user") Profile
9+
a.nav-item.nav-link(href="/dashboard") Profile
1110
a.nav-item.nav-link(href="/auth/logout") Logout

0 commit comments

Comments
 (0)