mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
homepage complete, hero unit et al.
This commit is contained in:
35
app.js
35
app.js
@@ -22,7 +22,6 @@ global.modules = modules;
|
|||||||
modules.templates.init();
|
modules.templates.init();
|
||||||
modules.websockets.init();
|
modules.websockets.init();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//setup scripts to be moved outside of the app in future.
|
//setup scripts to be moved outside of the app in future.
|
||||||
@@ -32,34 +31,12 @@ global.modules = modules;
|
|||||||
if (data.categories.length === 0) {
|
if (data.categories.length === 0) {
|
||||||
console.log('Setting up default categories...');
|
console.log('Setting up default categories...');
|
||||||
|
|
||||||
modules.categories.create({
|
modules.fs.readFile(config.ROOT_DIRECTORY + '/install/data/categories.json', function(err, categories) {
|
||||||
'name': 'Announcements',
|
categories = JSON.parse(categories);
|
||||||
'description': 'A place to talk about whateeeever you want',
|
|
||||||
'blockclass': 'category-purple',
|
for (var category in categories) {
|
||||||
'icon' : 'icon-bullhorn'
|
modules.categories.create(categories[category]);
|
||||||
});
|
}
|
||||||
|
|
||||||
modules.categories.create({
|
|
||||||
'name': 'General Discussion',
|
|
||||||
'description': 'A place to talk about whateeeever you want',
|
|
||||||
'blockclass': 'category-purple',
|
|
||||||
'icon' : 'icon-comment'
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
modules.categories.create({
|
|
||||||
'name': 'NodeBB Development',
|
|
||||||
'description': 'Bugs? Dont worry, we dont read this thread, so post them here.',
|
|
||||||
'blockclass': 'category-purple',
|
|
||||||
'icon' : 'icon-github-alt'
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
modules.categories.create({
|
|
||||||
'name': 'Blogs',
|
|
||||||
'description': 'In future an example of how a hidden category should look like.',
|
|
||||||
'blockclass': 'category-purple',
|
|
||||||
'icon' : 'icon-pencil'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
} else console.log('Good.');
|
} else console.log('Good.');
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ body {
|
|||||||
|
|
||||||
@media (min-width: 979px) {
|
@media (min-width: 979px) {
|
||||||
body {
|
body {
|
||||||
padding-top: 60px;
|
padding-top: 70px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -310,13 +310,17 @@ footer.footer {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-top:20px;
|
padding-top:25px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.category-row h4 {
|
.category-row h4 {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #555;
|
color: #555;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.category-row a {
|
.category-row a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -326,4 +330,29 @@ footer.footer {
|
|||||||
.category-purple {
|
.category-purple {
|
||||||
background: #ab1290;
|
background: #ab1290;
|
||||||
color: white;
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-darkblue {
|
||||||
|
background: #004C66;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-blue {
|
||||||
|
background: #0059B2;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-darkgreen {
|
||||||
|
background: #004000;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.category-orange {
|
||||||
|
color: white;
|
||||||
|
background: #FF7A4D;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-unit {
|
||||||
|
background: #56BCDA;
|
||||||
|
color: white;
|
||||||
|
padding: 30px;
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,12 @@
|
|||||||
|
<div class="hero-unit">
|
||||||
|
<h1>NodeBB</h1>
|
||||||
|
<p>Welcome to NodeBB, the discussion platform of the future.</p>
|
||||||
|
<p>
|
||||||
|
<a target="_blank" href="http://www.nodebb.org" class="btn btn-large"><i class="icon-comment"></i> Get NodeBB</a>
|
||||||
|
<a target="_blank" href="http://www.nodebb.org" class="btn btn-large"><i class="icon-github-alt"></i> Fork us on Github</a>
|
||||||
|
<a target="_blank" href="http://www.nodebb.org" class="btn btn-large"><i class="icon-twitter"></i> @dcplabs</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row category-row">
|
<div class="row category-row">
|
||||||
<!-- BEGIN categories -->
|
<!-- BEGIN categories -->
|
||||||
|
|||||||
Reference in New Issue
Block a user