Remove DRR, add companies template, add Fedbank

This commit is contained in:
blryface 2024-05-18 16:58:50 -03:00
parent aeb2e7fd43
commit fc5495ab13
3 changed files with 57 additions and 7 deletions

View file

@ -19,13 +19,6 @@
'short_description' => 'The first nation, prev. known as ROP.',
'description' => 'The first nation on CRSS, previously known as ROP.',
),
'drr' => array(
'name' => 'Democratic Republic of Rayland',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Democratic%20Republic%20of%20Rayland/bannre.png',
'short' => 'drr',
'short_description' => 'Short description of D.R.R.',
'description' => 'Full description of D.R.R', //does this support html and line breaks
),
'cnk' => array(
'name' => 'Chunkia',
'flag' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Chunkia/chunkia512.png',
@ -41,6 +34,16 @@
'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.',
)
);
$companies = array(
'fbk' => array(
'name' => 'FedBank',
'logo' => 'https://raw.theclashfruit.me/CRSS/CRSS/main/Nations/Republic%20of%20Panorama/Flag.svg',
'short' => 'fbk',
'short_description' => 'An International Bank, owned by the PSF government',
'description' => 'FedBank is an International bank owned and controlled by the Panorama Socialist Federation\'s Government. The main building is in PSF, but there is a FedBank in TTK too.'
)
);
if(isset($_SESSION['user'])) {
$dbUser = $mysql->getUserRecordFromId($_SESSION['user']['id']);

22
template/companies.twig Normal file
View file

@ -0,0 +1,22 @@
{% include 'includes/head.twig' with {'pageTitle': 'Companies'} %}
{% include 'includes/hero.twig' %}
{% include 'includes/nav.twig' with {'page': 'companies'} %}
<main class="pageContent container">
<h1>Companies</h1>
<div class="cards">
{% for company in companies %}
<a class="card transitionEnabled" href="/nation/{{ company.short }}">
<h1>{{ company.name }}</h1>
<p>{{ company.short_description }}</p>
<img class="icon" src="{{ company.logo }}">
</a>
{% endfor %}
</div>
</main>
{% include 'includes/footer.twig' %}
{% include 'includes/foot.twig' %}

25
template/company.twig Normal file
View file

@ -0,0 +1,25 @@
{% include 'includes/head.twig' with {'pageTitle': company.name} %}
{% include 'includes/hero.twig' %}
{% 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>
</main>
{% include 'includes/footer.twig' %}
{% include 'includes/foot.twig' %}