Skip to content

Commit

Permalink
finished system info page
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsgsDesign committed Mar 21, 2019
1 parent 7f91b68 commit 72706c4
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/Http/Controllers/SystemController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace App\Http\Controllers;

use App\Models\SubmissionModel;
use App\Http\Controllers\Controller;
use Auth;

class SystemController extends Controller
{
/**
* Show the System Info Page.
*
* @return Response
*/
public function info()
{
return view('system.info', [
'page_title' => "System Info",
'site_title' => "NOJ",
'navigation' => "System"
]);
}
}
41 changes: 41 additions & 0 deletions resources/views/system/info.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@extends('layouts.app')

@section('template')
<style>
system-info{
display: flex;
justify-content: center;
text-align: center;
}
#sys_logo{
padding:2rem;
}
#sys_logo img{
width:10rem;
}
#sys_title,
#sys_subtitle{
font-family: 'Times New Roman', Times, serif;
}
</style>
<div class="container mundb-standard-container">
<system-info>
<div>
<div id="sys_logo"><img src="/favicon.png"></div>
<h1 id="sys_title" class="wemd-grey-text wemd-text-darken-3">NOJ</h1>
<p id="sys_subtitle">Nanjing University of Posts and Telecommunications Online Judge</p>
<version-badge class="mb-5">
<inline-div>Version</inline-div><inline-div>{{version()}}</inline-div>
</version-badge>
<div class="mb-5">
<h1 id="sys_title" class="wemd-grey-text wemd-text-darken-3">John Zhang</h1>
<p id="sys_subtitle">NOJ Development Team Leader</p>
</div>
<div class="mb-5">
<h1 id="sys_title" class="wemd-grey-text wemd-text-darken-3">David Diao</h1>
<p id="sys_subtitle">NOJ Development Team Deputy Leader</p>
</div>
</div>
</system-info>
</div>
@endsection
5 changes: 5 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
Route::get('/{cid}/board/print', 'ContestController@print')->middleware('auth', 'contest_account')->name('contest_print');
});

Route::group(['prefix' => 'system'], function () {
Route::redirect('/', '/system/info', 301);
Route::get('/info', 'SystemController@info')->name('system_info');
});

Route::group(['prefix' => 'ajax', 'namespace' => 'Ajax'], function () {
Route::post('submitSolution', 'ProblemController@submitSolution')->middleware('auth', 'throttle:1,0.17');
Route::post('judgeStatus', 'ProblemController@judgeStatus')->middleware('auth');
Expand Down

0 comments on commit 72706c4

Please sign in to comment.