Compare commits

...

34 commits

Author SHA1 Message Date
Lupancham 3dafb1703b
Merge pull request 'main' (#1) from CRSS/Website:main into main
Reviewed-on: #1
2024-06-09 22:29:09 +02:00
blurryface 16bedf6ba7
New IP, 1.11 2024-06-09 22:21:56 +02:00
blurryface d13db9280e
New sponsors
someone pr more pls
2024-06-09 22:21:01 +02:00
blurryface efcb438b81
Merge pull request 'Add TCG' (#16) from blurryface/Website:main into main
Reviewed-on: CRSS/Website#16
2024-06-08 09:48:56 +02:00
blurryface a2cb76c7c6
Add TCG
It would be nice if it worked first try
2024-06-08 09:46:32 +02:00
blurryface 42bef17146
$0 2024-06-07 22:12:37 +02:00
TheClashFruit e168c72e20
fix: missing commas 2024-06-07 17:26:04 +02:00
TheClashFruit 58f0768536
adding RFM to crss website (#15)
Reviewed-on: CRSS/Website#15
2024-06-07 17:24:28 +02:00
polycord 51b4e4c914
done 2024-06-07 17:20:41 +02:00
polycord f8ca53b664
Update index.php 2024-06-07 17:08:15 +02:00
polycord 49748e7f0d
added the code for RFM 2024-06-07 17:07:21 +02:00
blurryface 98131b9914
To Be Done icon for.. whatever you want to use it for 2024-06-04 05:46:48 +02:00
worldwidepixel ca7c4c3d8f Chunkia flag now uses SVG 2024-06-02 19:42:32 -07:00
worldwidepixel 0fe313fc34 Add customisable terms for Nation leaders 2024-06-02 19:36:05 -07:00
worldwidepixel e9ebb6dc7d fix silly issues 2024-06-02 19:33:27 -07:00
worldwidepixel a2da6bca7e Add companies to navigation, remove 'Rails' from 'Map & Rails' 2024-06-02 19:26:29 -07:00
worldwidepixel a777ff7a1e Expand nation redesign to company pages. 2024-06-02 19:20:44 -07:00
worldwidepixel f70cda5c9f Add 'flag' header 2024-06-02 19:16:45 -07:00
worldwidepixel aa1218ca9a Experimental 'leader' addition 2024-06-02 19:15:16 -07:00
worldwidepixel d7707def22 Margin: 0 2024-06-02 19:10:54 -07:00
worldwidepixel 3310fffc63 CSS 4 2024-06-02 19:09:41 -07:00
worldwidepixel 9b748213aa Apoligies in advance for this horrible commit history I am making. 2024-06-02 19:06:19 -07:00
worldwidepixel 453eb7036d CSS 3 2024-06-02 19:03:38 -07:00
worldwidepixel 32ea7ecda3 CSS Laziness! 2024-06-02 19:01:23 -07:00
worldwidepixel 8142c4b58c Fix CSS oopsie 2024-06-02 18:56:27 -07:00
worldwidepixel 71c5b98197 Experimental new design, part two! 2024-06-02 18:54:49 -07:00
WorldWidePixel 3888d34eec
The actual solution to the 'companies/' issue 2024-06-03 03:09:32 +02:00
WorldWidePixel 54a4965102
}} 2024-06-03 02:57:46 +02:00
WorldWidePixel 66c67eaacc
Nation page visual fixup 2024-06-03 02:56:31 +02:00
WorldWidePixel f394069c1a
Update template/company.twig 2024-06-03 02:46:43 +02:00
WorldWidePixel 17411936c9
Experimental company logo-rendering fix 2024-06-03 02:45:57 +02:00
WorldWidePixel 3a19668e87
Company logo alt text changed from 'flag' to 'logo', to match other texts 2024-06-03 02:42:47 +02:00
WorldWidePixel 3313bf3d0a
Update TTK's flag to the new SVG version 2024-06-03 02:40:33 +02:00
blurryface 63df668049
thanks tea 2024-05-31 04:09:19 +02:00
8 changed files with 127 additions and 55 deletions

View file

@ -6,7 +6,8 @@
-webkit-tap-highlight-color: transparent; // fuck you (L)
}
html, body {
html,
body {
overflow-x: hidden;
}
@ -51,7 +52,8 @@ main {
box-sizing: border-box;
}
ul, ol {
ul,
ol {
list-style-position: inside;
}
@ -146,6 +148,7 @@ img {
object-fit: cover;
mask-image: linear-gradient(to right, transparent, rgba(red, 0.3));
@media (prefers-color-scheme: dark) {
mask-image: linear-gradient(to right, transparent, rgba(red, 0.1));
}
@ -172,11 +175,11 @@ a {
.pageHero {
background-image: linear-gradient(rgba(light.$headerOverlay, 0.9), rgba(light.$headerOverlay, 0.9)), // white overlay. yeah that's a bit of an ugly hack?
url('/img/Panorama-Lens-Blur.png');
url('/img/Panorama-Lens-Blur.png');
@media (prefers-color-scheme: dark) {
background-image: linear-gradient(rgba(dark.$headerOverlay, 0.9), rgba(dark.$headerOverlay, 0.9)),
url('/img/Panorama-Lens-Blur.png');
url('/img/Panorama-Lens-Blur.png');
}
background-position: center;
@ -184,7 +187,7 @@ a {
height: 220px;
> .container {
>.container {
height: 100%;
display: flex;
@ -197,7 +200,7 @@ a {
justify-content: center;
}
> div {
>div {
display: flex;
flex-direction: column;
@ -249,6 +252,7 @@ a {
@media (min-width: 601px) {
display: none;
}
z-index: 10;
position: fixed;
@ -287,7 +291,7 @@ a {
background: dark.$navBG;
}
> .container {
>.container {
padding: 16px 24px;
display: flex;
@ -306,6 +310,7 @@ a {
backdrop-filter: blur(15px);
background: rgba(light.$navBG, 0.86);
@media (prefers-color-scheme: dark) {
background: rgba(dark.$navBG, 0.9);
}
@ -314,7 +319,8 @@ a {
flex-direction: column;
gap: 64px;
&, > * {
&,
>* {
transition: 0.16s
}
@ -323,13 +329,13 @@ a {
pointer-events: none;
//&, > * { transition: 0.12s }
> * {
>* {
transform: translateX(32px);
}
}
}
> div {
>div {
margin: 0;
display: flex;
@ -343,13 +349,14 @@ a {
flex-direction: column;
}
> a {
>a {
font-family: Outfit;
user-select: none;
font-size: 16px;
box-sizing: border-box;
color: light.$navLinkNormalColor;
@media (prefers-color-scheme: dark) {
color: dark.$navLinkNormalColor;
}
@ -380,7 +387,8 @@ a {
pointer-events: none;
}
&:hover, &.active {
&:hover,
&.active {
//background: rgba(15, 23, 42, 0.1);
color: light.$navLinkActiveColor;
outline-color: light.$navLinkOutlineColor;
@ -416,15 +424,16 @@ a {
//
}
.pageFooter {
opacity: 0.8;
> .SNS-Links {
>.SNS-Links {
display: flex;
flex-wrap: wrap;
gap: 16px;
> a {
>a {
display: flex;
gap: 8px;
@ -445,4 +454,4 @@ a {
}
}
}
}
}

BIN
img/tobedone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

View file

@ -12,26 +12,33 @@
session_start();
$nations = array(
'psf' => array(
'name' => 'Panorama Socialist Federation',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Republic%20of%20Panorama/Flag.svg',
'short' => 'psf',
'short_description' => 'The first nation, prev. known as ROP.',
'description' => 'The first nation on CRSS, previously known as ROP.',
'leader' => 'iforgotaname',
'leader_term' => 'Prime Minister',
),
'cnk' => array(
'name' => 'Chunkia',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Chunkia/chunkia512.png',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Chunkia/Chunkia.svg',
'short' => 'cnk',
'short_description' => 'Chunkia is based in a chaotic landscape',
'description' => 'In the chaos of Minecraft, chunk errors are inevitable. Chunkia is based in one.',
'leader' => 'WorldWidePixel',
'leader_term' => 'Leader',
),
'ttk' => array(
'name' => 'The Toaster-Königreich',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/The%20Toaster-K%C3%B6nigreich/The%20Toaster-K%C3%B6nigreich%20Flag.png',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/The%20Toaster-K%C3%B6nigreich/The%20Toaster-K%C3%B6nigreich%20Flag.svg',
'short' => 'ttk',
'short_description' => 'The Toaster-Königreich is the Industrialized Nation of CRSS',
'description' => 'In the vast landsacpe of CRSS, The Toaster-Königreich is one of the most industrialized Marxist district of CRSS. With Charge Industries as one of the main government controlled company in the nation.',
'leader' => 'Lupancham',
'leader_term' => 'Chancellor',
),
'rob' => array(
'name' => 'Republic of Budapest',
@ -39,7 +46,27 @@
'short' => 'rob',
'short_description' => 'Republic of Budapest is a country located to the west of the map.',
'description' => 'Republic of Budapest is a country located to the west of the map.',
)
'leader' => 'TheClashFruit',
'leader_term' => 'Leader',
),
'rfm' => array(
'name' => 'Romanian Federation of Minecraft',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Romanian%20Federation%20of%20Minecraft/FMC%20flag.svg',
'short' => 'rfm',
'short_description' => 'Helping modernise CRSS',
'description' => 'RFM is a nation helping in the modernisation of CRSS, not only by practices but by livelihood.',
'leader' => 'polycord',
'leader_term' => 'President',
),
'tcg' => array(
'name' => 'Toasteric Colony of Grapetopia',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Grapetopia/TCG.svg',
'short' => 'tcg',
'short_description' => 'A colony of TTK, ~10K blocks out of 0,0',
'description' => 'This is a colony of TTK, an island with an area of ~382m², located at ~7.5k X and -2.8k Z',
'leader' => 'MrLagSwitcha',
'leader_term' => 'Leader in charge',
),
);
$companies = array(
@ -176,7 +203,7 @@
echo $twig->render('404.twig');
} else {
echo $twig->render('nation.twig', array('nation' => $companies[$company]));
echo $twig->render('company.twig', array('company' => $companies[$company]));
}
});

View file

@ -5,20 +5,18 @@
{% include 'includes/nav.twig' with {'page': 'company'} %}
<main class="pageContent container">
<ul>
<li>
code: {{ company.short }}
</li>
<li>
name: {{ company.name }}
</li>
<li>
flag: <img height="32px" src="{{ company.logo }}" alt="{{ company.name }}'s flag." />
</li>
<li>
description: {{company.description}}
</li>
</ul>
<div class="nationLayout">
<div class="nationCoreInfo">
<h1 style="margin: 0"> {{ company.name }} </h1>
<p style="font-family:monospace"> {{ company.short }} </p>
<h2> Logo </h2>
<img class="nationFlag" src="{{ company.logo }}" alt="{{ company.name }}'s logo." />
</div>
<div class="nationCoreInfo">
<h2 style="margin: 0"> Description </h2>
<p> {{ company.description }} </p>
</div>
</div>
</main>
{% include 'includes/footer.twig' %}

View file

@ -7,7 +7,7 @@
<footer class="pageFooter container">
<p class="copyright">
Copyright &copy; 2024 CRSS <br>
Brought to by PrideCraft Studios, CustardMC, LoopMC, Devin, and TheClashFruit's Real Hosting Company!
Brought to by PrideCraft Studios, CustardMC, LoopMC, Devin, Alto, Badger, Minefacts, FedBank, Northern, WorldWidePixel, Blurryface, Lupancham, and TheClashFruit's Real Hosting Company!
</p>
<div class="SNS-Links">

View file

@ -11,8 +11,8 @@
<!-- Right -->
<div class="Server-Information">
<span>Server address:</span>
<input type="text" size="14" readonly value="play.blryface.xyz">
<span>Version: 1.9.4</span> <!-- is this needed anymore since via -->
<input type="text" size="14" readonly value="play.crss.cc">
<span>Version: 1.11.2</span> <!-- is this needed anymore since via -->
</div>
</div>

View file

@ -13,8 +13,11 @@
<a class="transitionEnabled {% if page == 'nations' %} active {% endif %}" href="/nations">
Nations
</a>
<a class="transitionEnabled {% if page == 'companies' %} active {% endif %}" href="/companies">
Companies
</a>
<a class="{% if page == 'map.js' %} active {% endif %}" href="/map">
Map & Rails
Map
</a>
{% if user.is_admin == 1 %}
<a href="/admin">

View file

@ -3,26 +3,61 @@
{% include 'includes/hero.twig' %}
{% include 'includes/nav.twig' with {'page': 'nation'} %}
<main class="pageContent container">
<ul>
<li>
code: {{ nation.short }}
</li>
<li>
name: {{ nation.name }}
</li>
<li>
flag:
</li>
<li>
<img height="48px" src="{{ nation.flag }}" alt="{{ nation.name }}'s flag." />
</li>
<li>
description: {{nation.description}}
</li>
</ul>
<div class="nationLayout">
<div class="nationCoreInfo">
<h1 style="margin: 0"> {{ nation.name }} </h1>
<p style="font-family:monospace"> {{ nation.short }} </p>
<h2> Flag </h2>
<img class="nationFlag" src="{{ nation.flag }}" alt="{{ nation.name }}'s flag." />
</div>
<div class="nationCoreInfo">
<h2 style="margin: 0"> Description </h2>
<p> {{ nation.description }} </p>
<h2> {{ nation.leader_term }} </h2>
<p> {{ nation.leader }} </p>
</div>
</div>
</main>
<style>
/* TCF PLEASE MOVE THIS TO THE CORRECT CSS FILE, I AM TOO LAZY */
@media (max-width: 700px) {
.nationLayout {
display: flex;
flex-direction: column;
gap: 1rem;
}
}
@media (min-width: 701px) {
.nationLayout {
display: flex;
flex-direction: row;
gap: 3rem;
}
}
.nationLayout p, h1, h2, h3 {
margin: 0;
}
.nationFlag {
border-radius: 12px;
}
.nationCoreInfo {
flex-grow: 1;
flex-basis: 250px;
gap: 1rem;
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
</style>
{% include 'includes/footer.twig' %}
{% include 'includes/foot.twig' %}