diff --git a/javascript/script.js b/javascript/script.js
index bd18b4b..e32ca73 100644
--- a/javascript/script.js
+++ b/javascript/script.js
@@ -8,3 +8,8 @@
* For esbuild documentation, please see:
* https://esbuild.github.io/
*/
+import Alpine from 'alpinejs'
+
+window.Alpine = Alpine
+
+Alpine.start()
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index d7e5572..a3d7c11 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4,6 +4,9 @@
"requires": true,
"packages": {
"": {
+ "dependencies": {
+ "alpinejs": "^3.13.8"
+ },
"devDependencies": {
"@_tw/themejson": "^0.2.0",
"@_tw/typography": "^0.5.10",
@@ -792,6 +795,19 @@
"integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",
"dev": true
},
+ "node_modules/@vue/reactivity": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.5.tgz",
+ "integrity": "sha512-1tdfLmNjWG6t/CsPldh+foumYFo3cpyCHgBYQ34ylaMsJ+SNHQ1kApMIa8jN+i593zQuaw3AdWH0nJTARzCFhg==",
+ "dependencies": {
+ "@vue/shared": "3.1.5"
+ }
+ },
+ "node_modules/@vue/shared": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.1.5.tgz",
+ "integrity": "sha512-oJ4F3TnvpXaQwZJNF3ZK+kLPHKarDmJjJ6jyzVNDKH9md1dptjC7lWR//jrGuLdek/U6iltWxqAnYOu8gCiOvA=="
+ },
"node_modules/@wordpress/prettier-config": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-3.5.0.tgz",
@@ -856,6 +872,14 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
+ "node_modules/alpinejs": {
+ "version": "3.13.8",
+ "resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-3.13.8.tgz",
+ "integrity": "sha512-XolbBJryCndomtaHd/KHQjQeD/L72FJxy/YhLLFD4Lr7zzGcpcbg+UgXteMR2pYg1KhRUr6V4O3GfN1zJAmRWw==",
+ "dependencies": {
+ "@vue/reactivity": "~3.1.1"
+ }
+ },
"node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
diff --git a/package.json b/package.json
index 89a5f25..3b16861 100644
--- a/package.json
+++ b/package.json
@@ -54,5 +54,8 @@
"zip": "node node_scripts/zip.js wowpress",
"bundle": "run-s production zip"
},
- "prettier": "@wordpress/prettier-config"
+ "prettier": "@wordpress/prettier-config",
+ "dependencies": {
+ "alpinejs": "^3.13.8"
+ }
}
diff --git a/tailwind/custom/components/buttons.css b/tailwind/custom/components/buttons.css
index da67da4..9990caa 100644
--- a/tailwind/custom/components/buttons.css
+++ b/tailwind/custom/components/buttons.css
@@ -2,12 +2,13 @@
.btn{
@apply p-3 flex flex-row items-center justify-center gap-2 border;
- border-color: white;
+ border-color: color-mix(in srgb, var(--btn-color) 80%, white);
background-color: var(--btn-color);
- color: white;
+ color: black;
&:hover, &.current-menu-item, &.current-page-item, &.current-menu-ancestor ,&.current-menu-parent{
@apply bg-glass;
border-color: color-mix(in srgb, var(--btn-color) 80%, black);
+ color: var(--btn-color);
}
}
@@ -30,21 +31,4 @@ nav{
.nav-btn{
@apply btn btn-outline;
-}
-
-.btn-druid{
- --btn-color: var(--wp--preset--color--druid);
-}
-
-.btn-deathknight{
- --btn-color: var(--wp--preset--color--deathknight);
-}
-
-.btn-shaman{
- --btn-color: var(--wp--preset--color--shaman);
-}
-
-
-.btn-hunter{
- --btn-color: var(--wp--preset--color--hunter);
}
\ No newline at end of file
diff --git a/tailwind/tailwind.css b/tailwind/tailwind.css
index c63060b..610087f 100644
--- a/tailwind/tailwind.css
+++ b/tailwind/tailwind.css
@@ -51,6 +51,9 @@
--color-shaman: #0070DD;
--color-warlock: #8788EE;
--color-warrior: #C69B6D;
+ --color-deepblue: #000032;
+ --color-background: var(--color-deepblue);
+ --color-glass:color-mix(in lch, transparent 75%, var(--color-background) );
}
.p-auto{
@@ -63,14 +66,14 @@
body {
background-color: unset;
- --body-bg: url('https://nebelkrieger.de/wp-content/uploads/2023/05/F8lCEpyWoAAFCFS-scaled.jpg');
+ --body-bg: url('https://bnetcmsus-a.akamaihd.net/cms/blog_header/3i/3ITOIMA3P61U1699028715242.png');
position: relative;
z-index: -10;
@apply min-h-screen;
}
.bg-glass {
- background-color: rgba(0, 0, 50, 0.4);
+ background-color: var(--color-glass);
backdrop-filter: blur(10px);
}
@@ -97,11 +100,6 @@ body:before {
}
-header#masthead {
- @apply bg-glass;
-}
-
-
.content-wrapper {
position: relative;
diff --git a/theme/components/class-button.php b/theme/components/class-button.php
new file mode 100644
index 0000000..3fd2ad3
--- /dev/null
+++ b/theme/components/class-button.php
@@ -0,0 +1,3 @@
+
+
\ No newline at end of file
diff --git a/theme/components/raid-signup.php b/theme/components/raid-signup.php
new file mode 100644
index 0000000..3686d3d
--- /dev/null
+++ b/theme/components/raid-signup.php
@@ -0,0 +1,99 @@
+
+
+
+
+
= Icon::get('o-minus-circle') ?>
+
= Icon::get('o-minus-circle') ?>
+
+
+
+
+
+
+
+
+
Anwesenheit
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_status',
+ 'text' => 'Anwesend',
+ 'color' => 'monk',
+ 'icon_yes' => 'o-check-circle',
+ 'checked' => true,
+ 'row' => false,
+ ]))->render() ?>
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_status',
+ 'text' => 'Abwesend',
+ 'color' => 'deathknight',
+ 'icon_yes' => 'o-x-circle',
+ 'row' => false,
+ ]))->render() ?>
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_status',
+ 'text' => 'Ersatzbank',
+ 'color' => 'druid',
+ 'icon_yes' => 'o-question-mark-circle',
+ 'row' => false,
+ ]))->render() ?>
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_status',
+ 'text' => 'Verspätet',
+ 'color' => 'demonhunter',
+ 'icon_yes' => 'o-clock',
+ 'row' => false,
+ ]))->render() ?>
+
Rolle
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_role',
+ 'text' => 'Tank',
+ 'color' => 'priest',
+ 'icon_yes' => 'o-shield-exclamation',
+ 'row' => false,
+ ]))->render() ?>
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_role',
+ 'text' => 'Heal',
+ 'color' => 'priest',
+ 'icon_yes' => 'o-heart',
+ 'row' => false,
+ ]))->render() ?>
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_role',
+ 'text' => 'Ranged',
+ 'color' => 'priest',
+ 'icon_yes' => 'o-bolt',
+ 'checked' => true,
+ 'row' => false,
+ ]))->render() ?>
+ = (new ToggleButton([
+ 'type' => 'radio',
+ 'name' => 'raid_role',
+ 'text' => 'Melee',
+ 'color' => 'priest',
+ 'icon_yes' => 'o-hand-raised',
+ 'row' => false,
+ ]))->render() ?>
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/theme/header.php b/theme/header.php
index 9246b99..da8e6fe 100644
--- a/theme/header.php
+++ b/theme/header.php
@@ -21,6 +21,11 @@
+
>
diff --git a/theme/pages/raids.php b/theme/pages/raids.php
index b2ca256..bf909c5 100644
--- a/theme/pages/raids.php
+++ b/theme/pages/raids.php
@@ -9,6 +9,7 @@ global $month;
set_sidebar_status('top', false);
+
$raids = Raid::where("start", ">", "$year-$month-01 00:00:00")->get();
get_header();
diff --git a/theme/pages/single_raid.php b/theme/pages/single_raid.php
index a7edb12..1c772b8 100644
--- a/theme/pages/single_raid.php
+++ b/theme/pages/single_raid.php
@@ -2,6 +2,7 @@
use WoWPress\Frontend\Icon;
use WoWPress\Frontend\ToggleButton;
+use WoWPress\Models\Character;
use WoWPress\Models\Raid;
@@ -28,143 +29,72 @@ get_header();
-
-
= format_date($raid->start, "EEEE") ?>
-
-
= format_date($raid->start, "dd. MMMM") ?>
-
-
Start: = format_date($raid->start, "HH:mm") ?>
-
Ende: = format_date($raid->end, "HH:mm") ?>
- difficulty) : ?>
-
= $raid->difficulty ?>
-
+
Bosse
+
+
+
+
+
+
+
-
-
Informationen:
-
-
-
Bosse
-
-
-
-
-
-
-
+
+
+
= format_date($raid->start, "EEEE") ?>
+
+
= format_date($raid->start, "dd. MMMM") ?>
+
+
Start: = format_date($raid->start, "HH:mm") ?>
+
Ende: = format_date($raid->end, "HH:mm") ?>
+ difficulty) : ?>
+
= $raid->difficulty ?>
+
+
+
Informationen:
+
+
+
+
+
+
Tank
-
-
+
Heal
-
-
+ = $raid->showSignup(Character::whereName('Pandacetamol')->first()) ?>
Range
-
+ = $raid->showSignup(Character::whereName('Bleihagel')->first()) ?>
+
+
Melee
-
+ = $raid->showSignup(Character::whereName('Moodyblues')->first()) ?>
+
-
-
Status
-
- = Icon::get('c-check') ?>
-
Angemeldet
+
+
+
Status
+ = $raid->showSignup(Character::first()) ?>
-
-
-
Status ändern
-
-
Anwesenheit
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_status',
- 'text' => 'Anwesend',
- 'color' => 'monk',
- 'icon_yes' => 'o-check-circle',
- 'row' => false,
- ]))->render() ?>
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_status',
- 'text' => 'Abwesend',
- 'color' => 'deathknight',
- 'icon_yes' => 'o-x-circle',
- 'row' => false,
- ]))->render() ?>
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_status',
- 'text' => 'Ersatzbank',
- 'color' => 'druid',
- 'icon_yes' => 'o-question-mark-circle',
- 'row' => false,
- ]))->render() ?>
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_status',
- 'text' => 'Verspätet',
- 'color' => 'demonhunter',
- 'icon_yes' => 'o-clock',
- 'row' => false,
- ]))->render() ?>
-
Rolle
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_role',
- 'text' => 'Tank',
- 'color' => 'priest',
- 'icon_yes' => 'o-shield-exclamation',
- 'row' => false,
- ]))->render() ?>
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_role',
- 'text' => 'Heal',
- 'color' => 'priest',
- 'icon_yes' => 'o-heart',
- 'row' => false,
- ]))->render() ?>
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_role',
- 'text' => 'Ranged',
- 'color' => 'priest',
- 'icon_yes' => 'o-bolt',
- 'row' => false,
- ]))->render() ?>
- = (new ToggleButton([
- 'type' => 'radio',
- 'name' => 'raid_role',
- 'text' => 'Melee',
- 'color' => 'priest',
- 'icon_yes' => 'o-hand-raised',
- 'row' => false,
- ]))->render() ?>
-
-
-
@@ -177,7 +107,7 @@ get_header();
-
+
-