Skip to content

Commit

Permalink
add version badge
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsgsDesign committed Mar 15, 2019
1 parent a6d1180 commit 858c14e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
21 changes: 21 additions & 0 deletions public/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,24 @@ nav .dropdown-item .MDI{
.modal-dialog-alert .modal-body{
word-break: break-word;
}

/* Version Badge */

version-badge {
display:inline-block;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 0.9rem;
color: #fff;
}

version-badge > inline-div:first-of-type{
display:inline-block;
padding:0 0.5rem;
background: #555555;
}

version-badge > inline-div:last-of-type{
display:inline-block;
padding:0 0.5rem;
background: #97ca00;
}
5 changes: 4 additions & 1 deletion resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
<div class="col-sm-12 col-lg-8">
<div class="cm-title-section">
<h1>Welcome to NOJ!</h1>
{{version()}}
<version-badge class="mb-5">
<inline-div>Version</inline-div><inline-div>{{version()}}</inline-div>
</version-badge>


<p class="mb-5">NOJ is an Online Judge, and yet have features of Virtual Judges as well as an perspective to hold contests over several OJs without knowing the tests and outcomes dataset to enable multiple possibilities like ICPC team routine training and internal contest holding and so on.</p>
<p>We've currently support those OJs:</p>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/problem/detail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
color:rgba(0, 0, 0, 0.42);
display: inline-block;
margin-right: 1rem;
font-family:'Courier New', Courier, monospace;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
</style>

Expand Down

0 comments on commit 858c14e

Please sign in to comment.