mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2024-12-22 16:25:12 +00:00
Multiple Updates & Discord Widget Added
This commit is contained in:
parent
216caadcb0
commit
4ac1390c7d
7 changed files with 265 additions and 138 deletions
102
css/main.css
102
css/main.css
|
@ -28,7 +28,8 @@ body {
|
|||
font-weight: 200; }
|
||||
|
||||
#rules-title {
|
||||
border-radius: 0px; }
|
||||
border-radius: 0px;
|
||||
font-weight: 100; }
|
||||
|
||||
.admins ul,
|
||||
.cover-1,
|
||||
|
@ -41,7 +42,7 @@ body {
|
|||
.brand-logo {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
font-weight: 100; }
|
||||
font-weight: 300; }
|
||||
|
||||
.button-collapse {
|
||||
margin-top: 5px;
|
||||
|
@ -88,7 +89,10 @@ body {
|
|||
|
||||
#rules-title:hover {
|
||||
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,
|
||||
i.rules-icon {
|
||||
|
@ -143,7 +147,9 @@ i.rules-icon {
|
|||
font-size: 0.9em; }
|
||||
|
||||
.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); }
|
||||
|
||||
.admins ul {
|
||||
|
@ -176,27 +182,54 @@ i.rules-icon {
|
|||
font-weight: 300;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
border-radius: 10px;
|
||||
-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;
|
||||
display: inline-block; }
|
||||
-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;
|
||||
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 {
|
||||
background: rgba(100, 100, 100, 0.2);
|
||||
color: #fff; }
|
||||
color: #fff;
|
||||
padding-right: 30px; }
|
||||
|
||||
.rest > li {
|
||||
margin-top: 50px;
|
||||
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); }
|
||||
display: inline-block; }
|
||||
|
||||
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(34, 34, 34, 0.9); }
|
||||
|
||||
.useful {
|
||||
margin-top: 125px; }
|
||||
.useful a {
|
||||
display: inline-block;
|
||||
font-size: 1.05em;
|
||||
|
@ -214,6 +247,8 @@ i.rules-icon {
|
|||
.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; }
|
||||
|
@ -235,9 +270,9 @@ i.rules-icon {
|
|||
|
||||
.nav-wrapper {
|
||||
margin: -8px;
|
||||
background: rgba(20, 20, 20, 0.5); }
|
||||
background: #222; }
|
||||
.nav-wrapper li > a {
|
||||
font-weight: 200;
|
||||
font-weight: 300;
|
||||
font-size: .9em; }
|
||||
|
||||
.cover-2 a {
|
||||
|
@ -306,38 +341,43 @@ small {
|
|||
.typed-cursor {
|
||||
display: none; }
|
||||
|
||||
.readmore {
|
||||
text-align: center;
|
||||
color: #bbb; }
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.cover-2 h2,
|
||||
.cover-2 p {
|
||||
width: 100%; }
|
||||
|
||||
.online-part {
|
||||
padding: 25% 0.7%; }
|
||||
|
||||
padding: 25% .7%; }
|
||||
.rule {
|
||||
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 {
|
||||
display: block;
|
||||
border-radius: 0; }
|
||||
|
||||
.head-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 0;
|
||||
float: left;
|
||||
border-radius: 50%; }
|
||||
|
||||
.modal li {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 5px 70px; }
|
||||
|
||||
.modal-msg {
|
||||
margin: 25px 0;
|
||||
padding: 5px; }
|
||||
|
||||
.nav-wrapper {
|
||||
background: #111; }
|
||||
.modal.modal-fixed-footer .modal-content {
|
||||
padding: 10px; } }
|
||||
|
||||
/*# sourceMappingURL=main.css.map */
|
||||
|
|
|
@ -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; }
|
||||
|
||||
.brand-logo { font-size: 2em; font-weight: 200; }
|
||||
|
||||
.typed-cursor { display: none; }
|
||||
|
||||
@media only screen and (max-width: 768px) { .admins { width: 95%; }
|
||||
.admins li { display: block; border-radius: 0; } }
|
||||
@media only screen and (max-width: 768px) {
|
||||
.admins {
|
||||
width: 95%; }
|
||||
.admins li {
|
||||
display: block;
|
||||
border-radius: 0; } }
|
||||
|
|
21
index.html
21
index.html
|
@ -21,7 +21,8 @@
|
|||
<div class="navbar-fixed">
|
||||
<nav class="transparent z-depth-0" id="menu">
|
||||
<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">
|
||||
<li><a href="#" id="top">Home</a></li>
|
||||
<li><a href="#" id="rules">Rules</a></li>
|
||||
|
@ -180,13 +181,14 @@
|
|||
</ul>
|
||||
<div class="container">
|
||||
<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/>
|
||||
</ul>
|
||||
<br/>
|
||||
<hr>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col s12 m12 l8">
|
||||
<ul class="useful">
|
||||
<h3 style="text-align: center;">Useful Links</h3>
|
||||
<a href="http://totalfreedom.boards.net" target="_blank" class="readmore waves-effect waves-dark">
|
||||
|
@ -203,13 +205,23 @@
|
|||
</a>
|
||||
</ul>
|
||||
</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">
|
||||
<div class="container">
|
||||
<div class="footer-copyright">
|
||||
<div class="container">
|
||||
<hr>
|
||||
TotalFreedom © 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 © 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>
|
||||
|
@ -223,7 +235,6 @@
|
|||
<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://use.fontawesome.com/cb2592f0cc.js"></script>
|
||||
<script src="js/typed.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
<script src="js/moment.js"></script>
|
||||
<script src="js/jquery.cookies.js"></script>
|
||||
|
|
14
js/index.js
14
js/index.js
|
@ -6,7 +6,7 @@ $(document).ready(function() {
|
|||
interval);
|
||||
|
||||
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) {
|
||||
$("#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();
|
||||
|
@ -22,12 +22,12 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.brand-logo').typed({
|
||||
strings: ['<small class="hide-on-med-and-down">play.</small>TotalFreedom<small class="hide-on-med-and-down">.me</small>'],
|
||||
typeSpeed: 30
|
||||
});
|
||||
});
|
||||
// $(document).ready(function() {
|
||||
// $('.brand-logo').typed({
|
||||
// strings: [''],
|
||||
// typeSpeed: -1000
|
||||
// });
|
||||
// });
|
||||
|
||||
$(document).ready(function(){
|
||||
$(".one").click(function(){
|
||||
|
|
|
@ -28,6 +28,7 @@ body {
|
|||
}
|
||||
#rules-title {
|
||||
border-radius: 0px;
|
||||
font-weight: 100;
|
||||
}
|
||||
.admins ul,
|
||||
.cover-1,
|
||||
|
@ -40,7 +41,7 @@ body {
|
|||
.brand-logo {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
font-weight: 100;
|
||||
font-weight: 300;
|
||||
}
|
||||
.button-collapse {
|
||||
margin-top: 5px;
|
||||
|
@ -81,7 +82,8 @@ body {
|
|||
}
|
||||
#rules-title:hover {
|
||||
background: rgba(150, 150, 150, .2);
|
||||
transform: scale(1.03,1.03);
|
||||
transform: scale(1.01,1.01);
|
||||
color: #fff;
|
||||
}
|
||||
.admins>ul>a,
|
||||
i.rules-icon {
|
||||
|
@ -125,7 +127,7 @@ i.rules-icon {
|
|||
font-size: 0.9em;
|
||||
}
|
||||
.admins>ul>a:hover {
|
||||
background: rgba(30, 30, 30, .8);
|
||||
background: rgba(0, 0, 0, .5);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
.admins ul {
|
||||
|
@ -158,23 +160,49 @@ i.rules-icon {
|
|||
font-weight: 300;
|
||||
color: rgba(255, 255, 255, .6);
|
||||
border-radius: 10px;
|
||||
@include transition(all .2s ease);
|
||||
@include transition(all .5s ease);
|
||||
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 {
|
||||
background: rgba(100, 100, 100, .2);
|
||||
color: #fff
|
||||
color: #fff;
|
||||
padding-right: 30px;
|
||||
}
|
||||
}
|
||||
.rest>li {
|
||||
margin-top: 50px;
|
||||
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 {
|
||||
margin-top:125px;
|
||||
a {
|
||||
display: inline-block;
|
||||
font-size: 1.05em;
|
||||
|
@ -218,9 +246,9 @@ i.rules-icon {
|
|||
|
||||
.nav-wrapper {
|
||||
margin: -8px;
|
||||
background: rgba(20, 20, 20, .5);
|
||||
background: #222;
|
||||
li>a {
|
||||
font-weight: 200;
|
||||
font-weight: 300;
|
||||
font-size: .9em;
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +325,10 @@ small {
|
|||
.typed-cursor { display: none; }
|
||||
|
||||
|
||||
|
||||
.readmore {
|
||||
text-align: center;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -315,6 +346,14 @@ small {
|
|||
.rule {
|
||||
padding: 15px
|
||||
}
|
||||
.useful {
|
||||
margin-top: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.discord-widget {
|
||||
padding-left: 0;
|
||||
transform: translateX(25%);
|
||||
}
|
||||
.admins>ul>a {
|
||||
display: block;
|
||||
border-radius: 0
|
||||
|
@ -335,6 +374,9 @@ small {
|
|||
margin: 25px 0;
|
||||
padding: 5px;
|
||||
}
|
||||
.nav-wrapper {
|
||||
background: #111;
|
||||
}
|
||||
.modal.modal-fixed-footer .modal-content {
|
||||
padding: 10px;
|
||||
}
|
||||
|
|
|
@ -23,9 +23,6 @@ body {
|
|||
background: url(../images/staff-bg.png) center fixed #222;
|
||||
color: #ccc
|
||||
}
|
||||
.nav-wrapper {
|
||||
background: rgba(#000, .2)
|
||||
}
|
||||
.admins {
|
||||
width: 85%;
|
||||
margin: 0 auto;
|
||||
|
@ -40,7 +37,7 @@ body {
|
|||
border-radius: 5px;
|
||||
@include transition(all .13s ease-in-out);
|
||||
&:hover {
|
||||
background: rgba(200, 200, 200, .2);
|
||||
background: rgba(100, 100, 100, .4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<body>
|
||||
<nav class="transparent z-depth-0" id="menu">
|
||||
<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>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue