Multiple Updates & Discord Widget Added

This commit is contained in:
aggelosQQ 2017-05-13 12:30:53 +03:00
parent 216caadcb0
commit 4ac1390c7d
7 changed files with 265 additions and 138 deletions

View file

@ -28,7 +28,8 @@ body {
font-weight: 200; } font-weight: 200; }
#rules-title { #rules-title {
border-radius: 0px; } border-radius: 0px;
font-weight: 100; }
.admins ul, .admins ul,
.cover-1, .cover-1,
@ -41,7 +42,7 @@ body {
.brand-logo { .brand-logo {
margin-top: 5px; margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
font-weight: 100; } font-weight: 300; }
.button-collapse { .button-collapse {
margin-top: 5px; margin-top: 5px;
@ -88,7 +89,10 @@ body {
#rules-title:hover { #rules-title:hover {
background: rgba(150, 150, 150, 0.2); background: rgba(150, 150, 150, 0.2);
transform: scale(1.03, 1.03); } -webkit-transform: scale(1.01, 1.01);
-ms-transform: scale(1.01, 1.01);
transform: scale(1.01, 1.01);
color: #fff; }
.admins > ul > a, .admins > ul > a,
i.rules-icon { i.rules-icon {
@ -143,7 +147,9 @@ i.rules-icon {
font-size: 0.9em; } font-size: 0.9em; }
.admins > ul > a:hover { .admins > ul > a:hover {
background: rgba(30, 30, 30, 0.8); background: rgba(0, 0, 0, 0.5);
-webkit-transform: translateY(-3px);
-ms-transform: translateY(-3px);
transform: translateY(-3px); } transform: translateY(-3px); }
.admins ul { .admins ul {
@ -176,50 +182,79 @@ i.rules-icon {
font-weight: 300; font-weight: 300;
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.6);
border-radius: 10px; border-radius: 10px;
-webkit-transition: all 0.2s ease; -webkit-transition: all 0.5s ease;
-moz-transition: all 0.2s ease; -moz-transition: all 0.5s ease;
-ms-transition: all 0.2s ease; -ms-transition: all 0.5s ease;
-o-transition: all 0.2s ease; -o-transition: all 0.5s ease;
transition: all 0.2s ease; transition: all 0.5s ease;
display: inline-block; } display: inline-block;
position: relative;
padding-right: 10px; }
.rest > li > a:before {
font-family: 'FontAwesome';
content: '\f105';
position: absolute;
right: 30%;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
font-size: 1.35em;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
opacity: 0; }
.rest > li > a:hover:before {
opacity: 1;
padding-right: 10px;
right: 0; }
.rest > li > a:hover { .rest > li > a:hover {
background: rgba(100, 100, 100, 0.2); background: rgba(100, 100, 100, 0.2);
color: #fff; } color: #fff;
padding-right: 30px; }
.rest > li { .rest > li {
margin-top: 50px; margin-top: 50px;
display: inline-block; display: inline-block; }
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-ms-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease; }
.rest > li:hover {
transform: translateX(5px); }
.useful a { h3.discord-widget-title {
display: inline-block;
font-size: 1.05em;
color: rgba(255, 255, 255, 0.6);
border: 2px solid rgba(200, 200, 200, 0.3);
margin-right: 10px;
border-radius: 50px;
width: 200px;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-ms-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
margin-bottom: 10px; }
.useful a:hover {
background: rgba(100, 100, 100, 0.1);
color: #fff;
transform: translateY(-5px); }
.useful h3 {
font-weight: 100; }
.useful a > li > i {
font-size: 2em; font-size: 2em;
margin-bottom: 10px; } font-weight: 100; }
.discord-widget {
text-align: center;
margin: 50px auto 0;
box-shadow: 0 0 20px rgba(34, 34, 34, 0.9); }
.useful {
margin-top: 125px; }
.useful a {
display: inline-block;
font-size: 1.05em;
color: rgba(255, 255, 255, 0.6);
border: 2px solid rgba(200, 200, 200, 0.3);
margin-right: 10px;
border-radius: 50px;
width: 200px;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-ms-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all 0.2s ease;
margin-bottom: 10px; }
.useful a:hover {
background: rgba(100, 100, 100, 0.1);
color: #fff;
-webkit-transform: translateY(-5px);
-ms-transform: translateY(-5px);
transform: translateY(-5px); }
.useful h3 {
font-weight: 100; }
.useful a > li > i {
font-size: 2em;
margin-bottom: 10px; }
#note { #note {
text-align: center; text-align: center;
@ -235,9 +270,9 @@ i.rules-icon {
.nav-wrapper { .nav-wrapper {
margin: -8px; margin: -8px;
background: rgba(20, 20, 20, 0.5); } background: #222; }
.nav-wrapper li > a { .nav-wrapper li > a {
font-weight: 200; font-weight: 300;
font-size: .9em; } font-size: .9em; }
.cover-2 a { .cover-2 a {
@ -306,38 +341,43 @@ small {
.typed-cursor { .typed-cursor {
display: none; } display: none; }
.readmore {
text-align: center;
color: #bbb; }
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
.cover-2 h2, .cover-2 h2,
.cover-2 p { .cover-2 p {
width: 100%; } width: 100%; }
.online-part { .online-part {
padding: 25% 0.7%; } padding: 25% .7%; }
.rule { .rule {
padding: 15px; } padding: 15px; }
.useful {
margin-top: 0;
margin: 0; }
.discord-widget {
padding-left: 0;
-webkit-transform: translateX(25%);
-ms-transform: translateX(25%);
transform: translateX(25%); }
.admins > ul > a { .admins > ul > a {
display: block; display: block;
border-radius: 0; } border-radius: 0; }
.head-icon { .head-icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
margin-right: 0; margin-right: 0;
float: left; float: left;
border-radius: 50%; } border-radius: 50%; }
.modal li { .modal li {
display: block; display: block;
width: 100%; width: 100%;
padding: 5px 70px; } padding: 5px 70px; }
.modal-msg { .modal-msg {
margin: 25px 0; margin: 25px 0;
padding: 5px; } padding: 5px; }
.nav-wrapper {
background: #111; }
.modal.modal-fixed-footer .modal-content { .modal.modal-fixed-footer .modal-content {
padding: 10px; } } padding: 10px; } }
/*# sourceMappingURL=main.css.map */

View file

@ -1,32 +1,69 @@
#note a, a { color: #c8c8c8; } #note a,
a {
color: #c8c8c8; }
#note, .admins, .page-title, .rank { text-align: center; } #note,
.admins,
.page-title,
.rank {
text-align: center; }
.brand-logo, h2 { font-family: 'Raleway', sans-serif; } .brand-logo,
h2 {
font-family: 'Raleway', sans-serif; }
* { margin: 0; padding: 0; } * {
margin: 0;
padding: 0; }
body { margin-bottom: 50px; background: url(../images/staff-bg.png) center fixed #222; color: #ccc; } body {
margin-bottom: 50px;
background: url(../images/staff-bg.png) center fixed #222;
color: #ccc; }
.nav-wrapper { background: rgba(0, 0, 0, 0.2); } .admins {
width: 85%;
margin: 0 auto;
background: rgba(100, 100, 100, 0.1);
padding: 15px;
border-radius: 10px; }
.admins li {
display: inline-block;
padding: 10px;
background: rgba(100, 100, 100, 0.2);
margin: 5px;
border-radius: 5px;
-webkit-transition: all 0.13s ease-in-out;
-moz-transition: all 0.13s ease-in-out;
-ms-transition: all 0.13s ease-in-out;
-o-transition: all 0.13s ease-in-out;
transition: all 0.13s ease-in-out; }
.admins li:hover {
background: rgba(100, 100, 100, 0.4); }
.admins { width: 85%; margin: 0 auto; background: rgba(100, 100, 100, 0.1); padding: 15px; border-radius: 10px; } h2 {
font-size: 1.5em; }
.admins li { display: inline-block; padding: 10px; background: rgba(100, 100, 100, 0.2); margin: 5px; border-radius: 5px; -webkit-transition: all 0.13s ease-in-out; -moz-transition: all 0.13s ease-in-out; -ms-transition: all 0.13s ease-in-out; -o-transition: all 0.13s ease-in-out; transition: all 0.13s ease-in-out; } #note h5 {
margin-bottom: -15px; }
.admins li:hover { background: rgba(200, 200, 200, 0.2); } #note a {
font-weight: 700; }
h2 { font-size: 1.5em; } .page-title {
font-size: 3.8em;
font-weight: 300; }
#note h5 { margin-bottom: -15px; } .brand-logo {
font-size: 2em;
font-weight: 200; }
#note a { font-weight: 700; } .typed-cursor {
display: none; }
.page-title { font-size: 3.8em; font-weight: 300; } @media only screen and (max-width: 768px) {
.admins {
.brand-logo { font-size: 2em; font-weight: 200; } width: 95%; }
.admins li {
.typed-cursor { display: none; } display: block;
border-radius: 0; } }
@media only screen and (max-width: 768px) { .admins { width: 95%; }
.admins li { display: block; border-radius: 0; } }

View file

@ -21,7 +21,8 @@
<div class="navbar-fixed"> <div class="navbar-fixed">
<nav class="transparent z-depth-0" id="menu"> <nav class="transparent z-depth-0" id="menu">
<div class="nav-wrapper z-depth-0"> <div class="nav-wrapper z-depth-0">
<a href="#" id="brand-top" class="brand-logo"></a> <a href="#" data-activates="mobile" class="button-collapse"><i class="fa fa-bars"></i></a> <a href="#" id="brand-top" class="brand-logo"><small class="hide-on-med-and-down">play.</small>TotalFreedom<small class="hide-on-med-and-down">.me</small></a>
<a href="#" data-activates="mobile" class="button-collapse"><i class="fa fa-bars"></i></a>
<ul class="right hide-on-med-and-down cl-effect-14" id="cl-effect-14"> <ul class="right hide-on-med-and-down cl-effect-14" id="cl-effect-14">
<li><a href="#" id="top">Home</a></li> <li><a href="#" id="top">Home</a></li>
<li><a href="#" id="rules">Rules</a></li> <li><a href="#" id="rules">Rules</a></li>
@ -39,28 +40,28 @@
</div> </div>
</nav> </nav>
</div> </div>
<div class="section active cover-1" id="header"> <div class="section active cover-1" id="header">
<div class="online-part"> <div class="online-part">
<h3 id="server-status"> <span id="online"></span></h3> <h3 id="server-status"> <span id="online"></span></h3>
<a href="#onlineplayers" class="button modal-trigger" data-target="onlineplayers">Online Players</a> <a href="#onlineplayers" class="button modal-trigger" data-target="onlineplayers">Online Players</a>
</div> </div>
<div id="onlineplayers" class="modal modal-fixed-footer"> <div id="onlineplayers" class="modal modal-fixed-footer">
<div class="modal-content"> <div class="modal-content">
<h4 id="players-online"> <h4 id="players-online">
</h4> </h4>
<ul id="players"></ul> <ul id="players"></ul>
<div class="modal-msg"> <div class="modal-msg">
<h5>Why don't you visit us yourself?</h5> <h5>Why don't you visit us yourself?</h5>
<span class="ip">play.totalfreedom.me</span> <span class="ip">play.totalfreedom.me</span>
</div>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close btn-flat waves-effect waves-dark">I'm Done</a>
</div>
</div> </div>
</div> </div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close btn-flat waves-effect waves-dark">I'm Done</a>
</div>
</div>
</div>
<div class="section cover-2" id="rules-sec"> <div class="section cover-2" id="rules-sec">
<h1 class="section-title">TotalFreedom Rules</h1> <h1 class="section-title">TotalFreedom Rules</h1>
<div class="rules-section"> <div class="rules-section">
@ -180,36 +181,47 @@
</ul> </ul>
<div class="container"> <div class="container">
<ul class="rest"> <ul class="rest">
<li><a href="staff.html" class="readmore waves-effect waves-light">See the rest of the staff <i class="fa fa-chevron-right fa-fw"></i></a></li> <li><a href="staff.html" class="readmore waves-effect waves-light">See the rest of the staff </a></li>
<br/> <br/>
</ul> </ul>
<br/> <br/>
<hr> <hr>
<br/> <br/>
<div class="row">
<ul class="useful"> <div class="col s12 m12 l8">
<h3 style="text-align: center;">Useful Links</h3> <ul class="useful">
<a href="http://totalfreedom.boards.net" target="_blank" class="readmore waves-effect waves-dark"> <h3 style="text-align: center;">Useful Links</h3>
<li><i class="fa fa-comments icon"></i><br/> Forum</li> <a href="http://totalfreedom.boards.net" target="_blank" class="readmore waves-effect waves-dark">
</a> <li><i class="fa fa-comments icon"></i><br/> Forum</li>
<a href="http://totalfreedom.boards.net/thread/21065/server-conduct-policy-players-admins" target="_blank" class="readmore waves-effect waves-dark"> </a>
<li><i class="fa fa-ban icon"></i><br/> Conduct Policy</li> <a href="http://totalfreedom.boards.net/thread/21065/server-conduct-policy-players-admins" target="_blank" class="readmore waves-effect waves-dark">
</a> <li><i class="fa fa-ban icon"></i><br/> Conduct Policy</li>
<a href="http://github.com/TotalFreedom" target="_blank" class="readmore waves-effect waves-dark"> </a>
<li><i class="fa fa-github icon"></i><br/>Github</li> <a href="http://github.com/TotalFreedom" target="_blank" class="readmore waves-effect waves-dark">
</a> <li><i class="fa fa-github icon"></i><br/>Github</li>
<a href="https://twitter.com/totalfreedommc" target="_blank" class="readmore waves-effect waves-dark"> </a>
<li><i class="fa fa-twitter icon"></i><br/> Twitter</li> <a href="https://twitter.com/totalfreedommc" target="_blank" class="readmore waves-effect waves-dark">
</a> <li><i class="fa fa-twitter icon"></i><br/> Twitter</li>
</ul> </a>
</div> </ul>
</div> </div>
<div class="col s12 m12 l4">
<!-- <h3 style="text-align: center;" class="discord-widget-title">Join us on Discord</h3> -->
<iframe src="https://discordapp.com/widget?id=142361999538520065&theme=dark" class="discord-widget" width="375" height="400" align="center" allowtransparency="true" frameborder="0"></iframe>
<br><hr><br>
<p align="center" class="text-align: center;"><a href="http://totalfreedom.boards.net/thread/35427/totalfreedom-discord-server" class="readmore">More information about our Discord Server</a></p>
</div>
</div>
<footer class="page-footer transparent"> <footer class="page-footer transparent">
<div class="container"> <div class="container">
<div class="footer-copyright"> <div class="footer-copyright">
<div class="container"> <div class="container">
<hr> <hr>
TotalFreedom &copy; 2010 - <span id="curYear"></span> <a class="grey-text text-lighten-4 right" href="https://aggelosqq.github.io" target="_blank">Made by aggelosQQ</a> TotalFreedom &copy; 2010 - <span id="curYear"></span> <a class="grey-text text-lighten-4 right" href="https://aggelosqq.com" target="_blank">Made by aggelosQQ</a>
</div> </div>
</div> </div>
</div> </div>
@ -223,7 +235,6 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
<script src="https://use.fontawesome.com/cb2592f0cc.js"></script> <script src="https://use.fontawesome.com/cb2592f0cc.js"></script>
<script src="js/typed.js"></script>
<script src="js/index.js"></script> <script src="js/index.js"></script>
<script src="js/moment.js"></script> <script src="js/moment.js"></script>
<script src="js/jquery.cookies.js"></script> <script src="js/jquery.cookies.js"></script>

View file

@ -6,7 +6,7 @@ $(document).ready(function() {
interval); interval);
var refresh = function() { var refresh = function() {
$.getJSON("https://mcapi.ca/query/play.totalfreedom.me:28965/extensive", function(json) { $.getJSON("https://mcapi.ca/query/play.totalfreedom.me:26865/extensive", function(json) {
if (json.status !== true) { if (json.status !== true) {
$("#online").html('<span style="color: firebrick; font-weight: bolder;"> Server is Offline</span><br/><small style="font-size: .5em;">Check out our <a href="status">Associated Servers</a>!</small>'); $("#online").html('<span style="color: firebrick; font-weight: bolder;"> Server is Offline</span><br/><small style="font-size: .5em;">Check out our <a href="status">Associated Servers</a>!</small>');
$(".button").hide(); $(".button").hide();
@ -22,12 +22,12 @@ $(document).ready(function() {
}); });
$(document).ready(function() { // $(document).ready(function() {
$('.brand-logo').typed({ // $('.brand-logo').typed({
strings: ['<small class="hide-on-med-and-down">play.</small>TotalFreedom<small class="hide-on-med-and-down">.me</small>'], // strings: [''],
typeSpeed: 30 // typeSpeed: -1000
}); // });
}); // });
$(document).ready(function(){ $(document).ready(function(){
$(".one").click(function(){ $(".one").click(function(){

View file

@ -28,6 +28,7 @@ body {
} }
#rules-title { #rules-title {
border-radius: 0px; border-radius: 0px;
font-weight: 100;
} }
.admins ul, .admins ul,
.cover-1, .cover-1,
@ -40,7 +41,7 @@ body {
.brand-logo { .brand-logo {
margin-top: 5px; margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
font-weight: 100; font-weight: 300;
} }
.button-collapse { .button-collapse {
margin-top: 5px; margin-top: 5px;
@ -81,7 +82,8 @@ body {
} }
#rules-title:hover { #rules-title:hover {
background: rgba(150, 150, 150, .2); background: rgba(150, 150, 150, .2);
transform: scale(1.03,1.03); transform: scale(1.01,1.01);
color: #fff;
} }
.admins>ul>a, .admins>ul>a,
i.rules-icon { i.rules-icon {
@ -125,7 +127,7 @@ i.rules-icon {
font-size: 0.9em; font-size: 0.9em;
} }
.admins>ul>a:hover { .admins>ul>a:hover {
background: rgba(30, 30, 30, .8); background: rgba(0, 0, 0, .5);
transform: translateY(-3px); transform: translateY(-3px);
} }
.admins ul { .admins ul {
@ -158,23 +160,49 @@ i.rules-icon {
font-weight: 300; font-weight: 300;
color: rgba(255, 255, 255, .6); color: rgba(255, 255, 255, .6);
border-radius: 10px; border-radius: 10px;
@include transition(all .2s ease); @include transition(all .5s ease);
display: inline-block; display: inline-block;
position: relative;
padding-right: 10px;
&:before {
font-family: 'FontAwesome';
content: '\f105';
position: absolute;
right: 30%;
top: 50%;
transform: translateY(-50%);
font-size: 1.35em;
@include transition(all .5s ease);
opacity: 0;
}
&:hover:before {
opacity: 1;
padding-right: 10px;
right: 0;
}
&:hover { &:hover {
background: rgba(100, 100, 100, .2); background: rgba(100, 100, 100, .2);
color: #fff color: #fff;
padding-right: 30px;
} }
} }
.rest>li { .rest>li {
margin-top: 50px; margin-top: 50px;
display: inline-block; display: inline-block;
@include transition(all .2s ease);
&:hover {
transform: translateX(5px)
}
} }
h3.discord-widget-title {
font-size: 2em;
font-weight: 100;
}
.discord-widget {
text-align: center;
margin: 50px auto 0;
box-shadow: 0 0 20px rgba(#222, .9);
}
.useful { .useful {
margin-top:125px;
a { a {
display: inline-block; display: inline-block;
font-size: 1.05em; font-size: 1.05em;
@ -218,9 +246,9 @@ i.rules-icon {
.nav-wrapper { .nav-wrapper {
margin: -8px; margin: -8px;
background: rgba(20, 20, 20, .5); background: #222;
li>a { li>a {
font-weight: 200; font-weight: 300;
font-size: .9em; font-size: .9em;
} }
} }
@ -297,7 +325,10 @@ small {
.typed-cursor { display: none; } .typed-cursor { display: none; }
.readmore {
text-align: center;
color: #bbb;
}
@ -315,6 +346,14 @@ small {
.rule { .rule {
padding: 15px padding: 15px
} }
.useful {
margin-top: 0;
margin: 0;
}
.discord-widget {
padding-left: 0;
transform: translateX(25%);
}
.admins>ul>a { .admins>ul>a {
display: block; display: block;
border-radius: 0 border-radius: 0
@ -335,6 +374,9 @@ small {
margin: 25px 0; margin: 25px 0;
padding: 5px; padding: 5px;
} }
.nav-wrapper {
background: #111;
}
.modal.modal-fixed-footer .modal-content { .modal.modal-fixed-footer .modal-content {
padding: 10px; padding: 10px;
} }

View file

@ -23,9 +23,6 @@ body {
background: url(../images/staff-bg.png) center fixed #222; background: url(../images/staff-bg.png) center fixed #222;
color: #ccc color: #ccc
} }
.nav-wrapper {
background: rgba(#000, .2)
}
.admins { .admins {
width: 85%; width: 85%;
margin: 0 auto; margin: 0 auto;
@ -40,7 +37,7 @@ body {
border-radius: 5px; border-radius: 5px;
@include transition(all .13s ease-in-out); @include transition(all .13s ease-in-out);
&:hover { &:hover {
background: rgba(200, 200, 200, .2); background: rgba(100, 100, 100, .4);
} }
} }
} }

View file

@ -19,7 +19,7 @@
<body> <body>
<nav class="transparent z-depth-0" id="menu"> <nav class="transparent z-depth-0" id="menu">
<div class="nav-wrapper z-depth-0"> <div class="nav-wrapper z-depth-0">
<a href="#" id="brand-top" class="brand-logo"></a> <a href="#" data-activates="mobile" class="button-collapse"><i class="fa fa-bars"></i></a> <a href="#" id="brand-top" class="brand-logo">TotalFreedom Staff Members</a> <a href="#" data-activates="mobile" class="button-collapse"><i class="fa fa-bars"></i></a>
<a href="#" data-activates="mobile" class="button-collapse"><i class="fa fa-bars"></i></a> <a href="#" data-activates="mobile" class="button-collapse"><i class="fa fa-bars"></i></a>
<ul class="right hide-on-med-and-down cl-effect-14" id="cl-effect-14"> <ul class="right hide-on-med-and-down cl-effect-14" id="cl-effect-14">
<li><a href="index.html">Back to Home</a></li> <li><a href="index.html">Back to Home</a></li>