Skip to content

Commit

Permalink
test staging server
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrturner committed Jan 31, 2024
1 parent 492ce58 commit 5e5e68e
Show file tree
Hide file tree
Showing 18 changed files with 87 additions and 141 deletions.
4 changes: 4 additions & 0 deletions assets/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.logo-container svg {
width: 10em;
height: auto;
}
16 changes: 16 additions & 0 deletions content/6_supporters/supporters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,20 @@ Title: Supporters

----

Description:

----

Fundingsupport: - file://442hFuYdz0zFAObB

----

Commissioningpartners:

----

Presentingpartners:

----

Uuid: t2Dc48PJWAcMwpH1
2 changes: 1 addition & 1 deletion kirby
Submodule kirby updated 766 files
4 changes: 0 additions & 4 deletions site/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ function generateArtistsAndEventsJson()
foreach ($artist->events()->toPages() as $eventPage) {
if ($eventPage) {
$events[] = [
// 'uuid' => $eventPage->uuid(),
// 'title' => $eventPage->title()
'uuid' => (string) $eventPage->id(),
'title' => (string) $eventPage->title()->value(),

Expand All @@ -24,8 +22,6 @@ function generateArtistsAndEventsJson()
}

$artistData[] = [
// 'uuid' => $artist->uuid(),
// 'title' => $artist->title(),
'uuid' => (string) $artist->id(),
'title' => (string) $artist->title()->value(),
'events' => $events,
Expand Down
13 changes: 13 additions & 0 deletions site/snippets/events.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<section class="events">
<ul class="tablesorter">
<?php foreach ($page->children()->listed() as $event) : ?>
<li class="event">
<a href="<?= $event->url() ?>">
<?php if ($event->title()->isNotEmpty()) : ?>
<span><?= $event->title()->esc() ?></span>
<?php endif ?>
</a>
</li>
<?php endforeach ?>
</ul>
</section>
9 changes: 6 additions & 3 deletions site/snippets/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,18 @@

<div class="logo-container desktop">
<a class="logo" href="<?= $site->url() ?>" tabindex="1" title="Audible Edge" aria-label="Audible Edge Homepage">
<?= svg('assets/logo.svg') ?>
<?= svg('assets/img/logo-2.svg') ?>
</a>

<?php if ($page->isHomePage()) : ?>
<div class="search-container">
<!-- <div class="search-container">
<input class="search" type="search" data-column="all" placeholder="search">
</div>
</div> -->
<?php endif ?>
</div>
<?php if (!$page->isHomePage()) : ?>
<h1><?= $page->title() ?></h1>
<?php endif ?>


<nav class="menu-container">
Expand Down
6 changes: 2 additions & 4 deletions site/snippets/intro.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<?php if ($page->year()->isNotEmpty()) : ?>
<h2 class="subtitle"><?= $page->subtitle() ?></h2>
<?php endif ?>

<?php if ($page->year()->isNotEmpty()) : ?>
<span class="year"><?= $page->year() ?></span>
<?php endif ?>

<?php if ($page->credits()->isNotEmpty()) : ?>
<ul class="credits-container">
<?php
// using the `toStructure()` method, we create a structure collection
$credits = $page->credits()->toStructure();
$first = $credits->first();
// we can then loop through the entries and render the individual fields

foreach ($credits as $credit) :
?>
<li class="credit">
Expand All @@ -40,8 +40,6 @@
</span>
<?php endif ?>
</div>


</li>
<?php endforeach ?>
</ul>
Expand Down
3 changes: 0 additions & 3 deletions site/templates/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

<main class="content">
<div class="text-container">
<section class="text">
<h1><?= $page->title()->html() ?></h1>
</section>
<section class="text">
<div class="contact">
<?= kt($page->Description()) ?>
Expand Down
1 change: 0 additions & 1 deletion site/templates/accessibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</style>

<main class="main">
<h1><?= $page->title()->html() ?></h1>

<section class="description">
<?= kt($page->description()) ?>
Expand Down
1 change: 0 additions & 1 deletion site/templates/artists.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<main class="main" role="main">

<div class="text">
<h1><?= $page->title()->html() ?></h1>
<?= kt($page->text()) ?>
</div>

Expand Down
7 changes: 1 addition & 6 deletions site/templates/donate.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<?php snippet('header') ?>
<main class="content">
<div class="text-container">
<section class="text">
<h2>Acknowledgement</h2>
<?= $page->acknowledgement() ?>
</section>

<div class="text-container">
<section class="text">
<h2>Biography</h2>
<?= $page->description() ?>
</section>

Expand Down
24 changes: 1 addition & 23 deletions site/templates/events.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
<?php snippet('header') ?>

<section class="events">


<?php if ($events = page('program')) : ?>
<ul id="table-of-events" class="tablesorter">

<?php foreach ($events->children()->listed() as $event) : ?>

<li class="event">
<a href="<?= $event->url() ?>">
<?php if ($event->title()->isNotEmpty()) : ?>
<span><?= $event->title()->esc() ?></span>
<?php endif ?>


</a>
</li>

<?php endforeach ?>
</ul>
<?php endif ?>

</section>
<?php snippet('events') ?>

<?php snippet('footer') ?>
16 changes: 10 additions & 6 deletions site/templates/newsletter.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php snippet('header') ?>

<h1><?= $page->title()->html() ?></h1>

<a href="<?= $page->emailSignupLink()->url() ?>">Sign up for our Email Newsletter</a>
<br>
<a href="<?= $page->smsSignupLink()->url() ?>">Sign up for our SMS Newsletter</a>

<main>
<section class="text">
<div class="signup">
<a href="<?= $page->emailSignupLink()->url() ?>">Sign up for our Email Newsletter</a>
</div>
<div class="signup">
<a href="<?= $page->smsSignupLink()->url() ?>">Sign up for our SMS Newsletter</a>
</div>
</section>
</main>
<?php snippet('footer') ?>
45 changes: 1 addition & 44 deletions site/templates/nightschool.php
Original file line number Diff line number Diff line change
@@ -1,48 +1,5 @@
<?php snippet('header') ?>

<script>
let string_dylan =
"let me say this about Justine — she was 5 ft 2 & had Hungarian eyes — her belief was that if she could make it with Bo Diddley— she could get herself straight— now Ruthy— she was different— she always wanted to see a cock fight & went to Mexico City when she was 17 & a runaway castoff— she met Zonk when she was 18— Zonk came from her home town— at least that 's what he said when he met her — when they busted up, he said he never heard of the place but that 's beside the point—anyway these three—they make up the Realm Crew...i met them exactly at their table & they took 2 years of sanction from me but i never talk much about it myself— Justine was always trying to prove she existed as if she really needed proof— Ruthy— she was always trying to prove that Bo Diddley existed & Zonk he was trying to prove that he existed just for Ruthy but later on said that he was just trying to prove he existed to himself— me ? i started wondering about whether anybody existed but i never pushed it too much— especially when Zonk was around— Zonk hated himself & when he got too high he thought everybody was a mirror";
<?php snippet('events') ?>


function pathOnDiv(text, pos) {
// Get the coordinates of the point that is the fraction 'pos' along the path
var path = document.getElementById("mypath");
var pathLength = path.getTotalLength();
var loc = path.getPointAtLength(pos * pathLength);




// Make a div
var div = document.createElement("div");
div.textContent = text;
div.setAttribute("class", "pathDiv");
div.style.left = loc.x + "px";
div.style.top = loc.y + "px";
div.style.position = "absolute";
document.body.appendChild(div);
}
var slider = document.getElementById("slider");


function moveSlider() {
let sliderVal = slider.value / 100;
console.log(sliderVal)
pathOnDiv(sliderVal, 0.1);
}
var path = document.getElementById("mypath");

console.log(path.getTotalLength());

for (var i = 0; i < 500; i++) {
let sliderVal = i / 500;
var pathLength = path.getTotalLength();
console.log(sliderVal)

pathOnDiv(string_dylan.charAt(i), sliderVal);
var pathLength = path.getTotalLength();

}
</script>
<?php snippet('footer') ?>
21 changes: 0 additions & 21 deletions site/templates/service.php

This file was deleted.

24 changes: 0 additions & 24 deletions site/templates/support.php

This file was deleted.

29 changes: 29 additions & 0 deletions site/templates/supporters.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php snippet('header') ?>

<main>
<section class="text">
<div>
<?= kt($page->description()) ?>
</div>
</section>

<section class="logos">

<h2>Funding Support</h2>
<?php foreach ($page->fundingSupport()->toFiles() as $logo) : ?>
<img src="<?= $logo->resize(200)->url() ?>" alt="Funding Support Logo">
<?php endforeach; ?>

<h2>Commissioning Partners</h2>
<?php foreach ($page->commissioningPartners()->toFiles() as $logo) : ?>
<img src="<?= $logo->resize(200)->url() ?>" alt="Commissioning Partner Logo">
<?php endforeach; ?>

<h2>Presenting Partners</h2>
<?php foreach ($page->presentingPartners()->toFiles() as $logo) : ?>
<img src="<?= $logo->resize(200)->url() ?>" alt="Presenting Partner Logo">
<?php endforeach; ?>
</section>
</main>

<?php snippet('footer') ?>
3 changes: 3 additions & 0 deletions site/templates/venues.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
// Redirect to homepage if accessed directly
go('/');

0 comments on commit 5e5e68e

Please sign in to comment.