Initial commit
This commit is contained in:
commit
abdc53ed24
17
.editorconfig
Normal file
17
.editorconfig
Normal file
|
@ -0,0 +1,17 @@
|
|||
# This file is used by editors and IDEs to unify coding standards
|
||||
# @see http://EditorConfig.org
|
||||
# @standards PHP: http://www.php-fig.org/psr/psr-2/
|
||||
root = true
|
||||
|
||||
# Default configuration (applies to all file types)
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
|
||||
# Markdown customizations
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/output_*/
|
||||
/vendor/
|
3
app/config/sculpin_kernel.yml
Normal file
3
app/config/sculpin_kernel.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
sculpin_content_types:
|
||||
posts:
|
||||
enabled: false
|
1
app/config/sculpin_site.yml
Normal file
1
app/config/sculpin_site.yml
Normal file
|
@ -0,0 +1 @@
|
|||
title: 'Cardiff BJJ'
|
22
composer.json
Normal file
22
composer.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"name": "opdavies/sculpin-skeleton",
|
||||
"description": "A skeleton Sculpin site.",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Oliver Davies",
|
||||
"email": "oliver@oliverdavies.uk",
|
||||
"homepage": "https://www.oliverdavies.uk"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"dflydev/embedded-composer": "^1.0@dev",
|
||||
"sculpin/sculpin": "^2.1@dev"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "composer run-script generate",
|
||||
"generate": "sculpin generate --clean --no-interaction",
|
||||
"prod": "composer run-script generate -- --env prod",
|
||||
"watch": "composer run-script --timeout=0 generate -- --server --watch"
|
||||
}
|
||||
}
|
2709
composer.lock
generated
Normal file
2709
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
3
netlify.toml
Normal file
3
netlify.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
[build]
|
||||
command = "vendor/bin/sculpin generate -e prod"
|
||||
publish = "output_prod"
|
11
source/_layouts/default.html.twig
Normal file
11
source/_layouts/default.html.twig
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ site.title }}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body class="text-black">
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
22
source/_partials/class-list.html.twig
Normal file
22
source/_partials/class-list.html.twig
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% for day in ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] %}
|
||||
{% set items = [] %}
|
||||
|
||||
{% for class in classes[day] if class.type == type %}
|
||||
{% set items = items|merge([class]) %}
|
||||
{% endfor %}
|
||||
|
||||
{% if items %}
|
||||
<div class="mb-4">
|
||||
<h3 class="mb-2">{{ day }}</h3>
|
||||
|
||||
<ul>
|
||||
{% for item in items %}
|
||||
<li>
|
||||
{{ item.time }} -
|
||||
{{ item.description }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
4
source/index.md
Normal file
4
source/index.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
Cardiff BJJ
|
69
source/schedule.html.twig
Normal file
69
source/schedule.html.twig
Normal file
|
@ -0,0 +1,69 @@
|
|||
---
|
||||
layout: default
|
||||
title: Schedule
|
||||
classes:
|
||||
Monday:
|
||||
- { time: 7.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 11.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 12.00pm, description: Live training, type: adults }
|
||||
- { time: 4.00pm, description: Open mat, type: adults }
|
||||
- { time: 6.00pm, description: Jiu-jitsu, type: adults }
|
||||
- { time: 7.00pm, description: Live training, type: adults }
|
||||
- { time: 8.00pm, description: Fundamentals, type: adults }
|
||||
Tuesday:
|
||||
- { time: 5.45pm, description: Kids 4 to 6, type: kids }
|
||||
- { time: 6:30pm, description: Kids 7 to 10, type: kids }
|
||||
- { time: 7.15pm, description: Kids 11+, type: kids }
|
||||
- { time: 8.00pm, description: Adults jiu-jitsu, type: adults }
|
||||
Wednesday:
|
||||
- { time: 7.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 11.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 12.00am, description: Live training, type: adults }
|
||||
- { time: 4.00pm, description: Open mat, type: adults }
|
||||
- { time: 6.00pm, description: Nogi jiu-jitsu, type: adults }
|
||||
- { time: 7.30pm, description: Gi jiu-jitsu, type: adults }
|
||||
Thursday:
|
||||
- { time: 11.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 12.00pm, description: Live training, type: adults }
|
||||
- { time: 5.00pm, description: Kids 7+ open mat, type: kids }
|
||||
- { time: 5.30pm, description: Kids 7+, type: kids }
|
||||
- { time: 6.30pm, description: Fundamentals, type: adults }
|
||||
- { time: 8.00pm, description: Advanced, type: adults }
|
||||
Friday:
|
||||
- { time: 7.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 11.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 12.00am, description: Live training, type: adults }
|
||||
- { time: 6.30pm, description: Jiu-jitsu, type: adults }
|
||||
Saturday:
|
||||
- { time: 9.00am, description: Kids 4 to 6, type: kids }
|
||||
- { time: 9.45am, description: Kids 7 to 10, type: kids }
|
||||
- { time: 10:30am, description: Kids 11+, type: kids }
|
||||
- { time: 11.15pm, description: Jiu-jitsu, type: adults }
|
||||
Sunday:
|
||||
- { time: 10.00am, description: Jiu-jitsu, type: adults }
|
||||
- { time: 4.00pm, description: Women only jiu-jitsu, type: adults }
|
||||
---
|
||||
<h1 class="uppercase text-red-dark">Class Schedule</h1>
|
||||
|
||||
<div class="md:flex">
|
||||
<div class="w-1/2 px-6 -mx-6">
|
||||
<h2 class="uppercase mb-2">Adults</h2>
|
||||
|
||||
{% include 'class-list' with {
|
||||
classes: page.classes,
|
||||
type: 'adults',
|
||||
} %}
|
||||
</div>
|
||||
|
||||
<div class="w-1/2 px-6 -mx-6">
|
||||
<h2 class="uppercase mb-2">Kids</h2>
|
||||
|
||||
{% include 'class-list' with {
|
||||
classes: page.classes,
|
||||
type: 'kids',
|
||||
} %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
Reference in a new issue