Skip to content

Commit 19345d7

Browse files
committed
Update welcome page with wholesomer content
1 parent 18ae78e commit 19345d7

File tree

5 files changed

+39
-6
lines changed

5 files changed

+39
-6
lines changed

src/static/a/gnome_l.gif

10.7 KB
Loading

src/static/a/gnome_r.gif

10.7 KB
Loading

src/static/a/main-mobile.css

+10
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ p.pagination > a {
244244
p.pagination > a.active {
245245
background-color: rgba(128,128,128,0.8);
246246
}
247+
img.welcome-logo-book {
248+
float: right;
249+
height: 120px;
250+
margin: 8px;
251+
}
252+
img.welcome-logo-gnome {
253+
float: right;
254+
height: 100px;
255+
margin: 8px;
256+
}
247257
footer.main-page,
248258
footer.main-page.slim {
249259
box-sizing: border-box;

src/static/a/main.css

+14-2
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ main {
122122
width: 1000px;
123123
}
124124
main > article {
125-
margin: 0px 0px 0px 224px;
125+
margin: 10px 0px 0px 240px;
126126
overflow: hidden;
127-
padding: 10px 8px 0px 16px;
127+
}
128+
main > article:first-child {
129+
margin-top: 10px;
128130
}
129131
main.slim > article {
130132
margin: 0px;
@@ -248,6 +250,16 @@ p.pagination > a {
248250
p.pagination > a.active {
249251
background-color: rgba(128,128,128,0.8);
250252
}
253+
img.welcome-logo-book {
254+
float: right;
255+
height: 100px;
256+
margin: 8px;
257+
}
258+
img.welcome-logo-gnome {
259+
float: right;
260+
height: 80px;
261+
margin: 8px;
262+
}
251263
footer.main-page {
252264
box-sizing: border-box;
253265
color: rgba(224,224,224,0.3);

src/templates/FrontPage.phtml

+15-4
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,40 @@ $description = "Welcome to the documentation and discussion for the Classic Batt
1111
$this->opengraph->attach(new Pair("url", "/welcome"));
1212
$this->opengraph->attach(new Pair("type", "article"));
1313

14+
$this->additional_css[] = "/a/forms.css";
1415
require("./header.inc.phtml");
1516
?>
1617
<article>
1718
<header>Welcome to BNETDocs!</header>
1819
<section>
1920
<p>BNETDocs is a community website that documents and discusses the Classic Battle.net&trade; protocol.</p>
2021
<h2>Our Legacy</h2>
22+
<img class="welcome-logo-book" alt="BNETDocs Logo" title="BNETDocs Logo" src="<?php echo Common::relativeUrlToAbsolute('/a/VSZX0bJ.png'); ?>"/>
2123
<p>From 2003 to today, the documentation has been maintained by a loving and passionate community of gamers and developers like you. A lot of us have poured our heart and soul into keeping accurate documentation to the best of our ability. It is with the support of our community that we are able to continue this legacy, as Blizzard Entertainment continues updating their classic games.</p>
2224
<h2>Support Us</h2>
25+
<img class="welcome-logo-gnome" alt="Gnome Icon" title="Gnome Icon" src="<?php echo Common::relativeUrlToAbsolute('/a/gnome_l.gif'); ?>"/>
2326
<p>To that end, if you would like to support us, there are a few ways you can do so. You could:</p>
2427
<p><ul>
2528
<li><a href="<?php echo Common::relativeUrlToAbsolute(Common::$config->bnetdocs->discord_url); ?>">join our Discord</a> and have a chat,</li>
2629
<li><a href="<?php echo Common::relativeUrlToAbsolute('/user/register'); ?>">register</a> an account and add your knowledge to our site,</li>
2730
<li><a href="<?php echo Common::relativeUrlToAbsolute('/donate'); ?>">donate</a> to costs of running this website,</li>
28-
<li>and help <a href="<?php echo Common::relativeUrlToAbsolute('https://github.com/BNETDocs/bnetdocs-web'); ?>">develop this website</a>.</li>
31+
<li>help <a href="<?php echo Common::relativeUrlToAbsolute('https://github.com/BNETDocs/bnetdocs-web'); ?>">develop this website</a>,</li>
32+
<li>and <a href="<?php echo Common::relativeUrlToAbsolute('https://github.com/BNETDocs/bnetdocs-web/issues'); ?>">suggest improvements</a> to the site.</li>
2933
</ul></p>
30-
<p>Help our community and documentation grow! Get involved today!</p>
34+
<p>Help our community and documentation grow! Receive recognition for your work on our <a href="<?php echo Common::relativeUrlToAbsolute('/credits'); ?>">contributors</a> page!</p>
3135
</section>
3236
</article>
3337
<article>
34-
<header>Recent Updates</header>
38+
<header>Activity Feed</header>
3539
<section>
36-
<?php include('./NYI.inc.phtml'); ?>
40+
<p>Here's the latest of what's going on at BNETDocs.</p>
41+
<?php include('./NYI.inc.phtml'); ?>
42+
<hr/>
43+
<p>
44+
<a class="button" href="<?php echo Common::relativeUrlToAbsolute('/news'); ?>">Read News</a>
45+
<a class="button" href="<?php echo Common::relativeUrlToAbsolute('/document/index'); ?>">View Documents</a>
46+
<a class="button" href="<?php echo Common::relativeUrlToAbsolute('/packet/index'); ?>">View Packets</a>
47+
</p>
3748
</section>
3849
</article>
3950
<?php require("./footer.inc.phtml"); ?>

0 commit comments

Comments
 (0)