-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add support for pub mode * chore: add promo page for WiiLink
- Loading branch information
Showing
7 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<title>rverse on WiiLink</title> | ||
<style type="text/css"> | ||
body { | ||
background-color: #06038d; | ||
color: #dedede; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<img src="/img/promo/rverse_logo.jpg"> | ||
<br /> | ||
rverse is a recreation of Miiverse on your 3DS,<br />and soon on your Wii U! | ||
<br /> | ||
<br /> | ||
Connect with other people in a familiar yet<br />nostalgic envrionment. | ||
<br /> | ||
<br /> | ||
Or do you want to show the world the artist<br />you are? You can! | ||
<br /> | ||
<br /> | ||
<br /> | ||
Here is a sampler of art posts that people<br />have made on rverse!<br /><small>(Taken at random from our art community)</small> | ||
<br /> | ||
<br /> | ||
<br /> | ||
{% for post in posts %} | ||
<img src="/img/drawings/{{ post.image }}"> | ||
<br /> | ||
{% endfor %} | ||
<br /> | ||
<br /> | ||
Visit our Discord server at https://discord.gg/rverse | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
/* | ||
* Router paths | ||
*/ | ||
|
||
// Define namespace | ||
namespace Miiverse; | ||
|
||
// Checks | ||
|
||
Router::group([], function() { | ||
// Homepage | ||
Router::get('/wiilink', 'Pub.WiiLink@index', 'wiilink.promo'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* Holds the base page for titles. | ||
*/ | ||
|
||
namespace Miiverse\Pages\Pub; | ||
|
||
use Miiverse\Pages\Page as BasePage; | ||
|
||
/** | ||
* Base titles controller (which other controllers should extend on). | ||
* | ||
* @author RverseTeam | ||
*/ | ||
class Page extends BasePage | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* Holds the WiiLink Promo page. | ||
*/ | ||
|
||
namespace Miiverse\Pages\Pub; | ||
|
||
use Miiverse\DB; | ||
|
||
/** | ||
* WiiLink promo page controller | ||
* | ||
* @author RverseTeam | ||
*/ | ||
class WiiLink extends Page | ||
{ | ||
public function index() : string | ||
{ | ||
// TODO: Set this on config and get user data | ||
$posts = DB::table('posts') | ||
->where('community', 16) | ||
->inRandomOrder() | ||
->limit(5) | ||
->get(['image']); | ||
|
||
return view('wiilink', compact('posts')); | ||
} | ||
} |