Update DrupalCamp Florida demo

This commit is contained in:
Oliver Davies 2025-10-02 23:35:03 +01:00
parent a42a904f0d
commit feff81c15d
41 changed files with 0 additions and 6603 deletions

View file

@ -1,19 +0,0 @@
# In all environments, the following files are loaded if they exist,
# the latter taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=46fa47144047c93268cbab44bb33a01d
###< symfony/framework-bundle ###

View file

@ -1,12 +0,0 @@
/node_modules/
/public/build/
###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###

View file

@ -1,22 +0,0 @@
Florida DrupalCamp Tailwind CSS Workshop
########################################
Local web server
================
Run the following command to start a local web server. Going to that URL in your browser should show you the example page.
.. code::
php -S 127.0.0.1:8000 -t public
Building the CSS
================
The CSS is generated from ``assets/css/tailwind.pcss`` and is compiled using ``postcss-cli``.
To simplify the process, there are some custom npm scripts added in ``package.json`` that can be used to compile the CSS:
- ``yarn dev`` - generate the development CSS which is un-purged and un-minified.
- ``yarn prod`` - generate the production CSS which is purged and minified.
- ``yarn watch`` - generate the development CSS, but re-generate automatically when the source file is changed.

View file

@ -1,9 +0,0 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
[x-cloak] {
display: none
}
}

View file

@ -1,43 +0,0 @@
#!/usr/bin/env php
<?php
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
}
set_time_limit(0);
require dirname(__DIR__).'/vendor/autoload.php';
if (!class_exists(Application::class) || !class_exists(Dotenv::class)) {
throw new LogicException('You need to add "symfony/framework-bundle" and "symfony/dotenv" as Composer dependencies.');
}
$input = new ArgvInput();
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
}
if ($input->hasParameterOption('--no-debug', true)) {
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
}
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
if ($_SERVER['APP_DEBUG']) {
umask(0000);
if (class_exists(Debug::class)) {
Debug::enable();
}
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$application = new Application($kernel);
$application->run($input);

View file

@ -1,66 +0,0 @@
{
"type": "project",
"license": "proprietary",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.2.5",
"ext-ctype": "*",
"ext-iconv": "*",
"sensio/framework-extra-bundle": "^5.6",
"symfony/console": "5.2.*",
"symfony/dotenv": "5.2.*",
"symfony/flex": "^1.3.1",
"symfony/framework-bundle": "5.2.*",
"symfony/maker-bundle": "^1.26",
"symfony/twig-bundle": "5.2.*",
"symfony/yaml": "5.2.*",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0"
},
"require-dev": {
},
"config": {
"optimize-autoloader": true,
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.2.*"
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,9 +0,0 @@
<?php
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
];

View file

@ -1,19 +0,0 @@
framework:
cache:
# Unique name of your app: used to compute stable namespaces for cache keys.
#prefix_seed: your_vendor_name/app_name
# The "app" cache stores to the filesystem by default.
# The data in this cache should persist between deploys.
# Other options include:
# Redis
#app: cache.adapter.redis
#default_redis_provider: redis://localhost
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
#app: cache.adapter.apcu
# Namespaced pools use the above "app" backend by default
#pools:
#my.dedicated.cache: null

View file

@ -1,17 +0,0 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
#http_method_override: true
# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
handler_id: null
cookie_secure: auto
cookie_samesite: lax
#esi: true
#fragments: true
php_errors:
log: true

View file

@ -1,3 +0,0 @@
framework:
router:
strict_requirements: null

View file

@ -1,7 +0,0 @@
framework:
router:
utf8: true
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
#default_uri: http://localhost

View file

@ -1,3 +0,0 @@
sensio_framework_extra:
router:
annotations: false

View file

@ -1,4 +0,0 @@
framework:
test: true
session:
storage_id: session.storage.mock_file

View file

@ -1,2 +0,0 @@
twig:
strict_variables: true

View file

@ -1,4 +0,0 @@
twig:
default_path: '%kernel.project_dir%/templates'
globals:
menuLinks: '@App\Repository\MenuLinkRepository'

View file

@ -1,5 +0,0 @@
<?php
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
}

View file

@ -1,3 +0,0 @@
#index:
# path: /
# controller: App\Controller\DefaultController::index

View file

@ -1,7 +0,0 @@
controllers:
resource: ../../src/Controller/
type: annotation
kernel:
resource: ../../src/Kernel.php
type: annotation

View file

@ -1,3 +0,0 @@
_errors:
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
prefix: /_error

View file

@ -1,31 +0,0 @@
# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
- '../src/Tests/'
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../src/Controller/'
tags: ['controller.service_arguments']
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones

View file

@ -1,19 +0,0 @@
{
"private": true,
"config": {
"inputFile": "assets/css/tailwind.pcss",
"outputFile": "public/build/tailwind.css"
},
"scripts": {
"dev": "cross-env NODE_ENV=development postcss $npm_package_config_inputFile -o $npm_package_config_outputFile",
"prod": "cross-env NODE_ENV=production postcss $npm_package_config_inputFile -o $npm_package_config_outputFile",
"watch": "cross-env NODE_ENV=development postcss $npm_package_config_inputFile -o $npm_package_config_outputFile --watch"
},
"dependencies": {
"cross-env": "^7.0.3",
"cssnano": "^4.1.10",
"postcss": "^8.2.1",
"postcss-cli": "^8.3.1",
"tailwindcss": "^2.0.2"
}
}

View file

@ -1,8 +0,0 @@
module.exports = {
plugins: [
require('tailwindcss'),
...process.env.NODE_ENV === 'production'
? [require('cssnano')]
: []
]
}

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

View file

@ -1,22 +0,0 @@
<?php
use App\Kernel;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;
require dirname(__DIR__).'/vendor/autoload.php';
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
if ($_SERVER['APP_DEBUG']) {
umask(0000);
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);

View file

@ -1,17 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Controller;
use Twig\Environment;
abstract class BaseController
{
protected Environment $twig;
public function __construct(Environment $twig)
{
$this->twig = $twig;
}
}

View file

@ -1,21 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
final class HomeController extends BaseController
{
/**
* @Route("/", name="home")
*/
public function __invoke(): Response
{
$content = $this->twig->render('pages/home.html.twig');
return new Response($content);
}
}

View file

@ -1,38 +0,0 @@
<?php
namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
protected function configureContainer(ContainerConfigurator $container): void
{
$container->import('../config/{packages}/*.yaml');
$container->import('../config/{packages}/'.$this->environment.'/*.yaml');
if (is_file(\dirname(__DIR__).'/config/services.yaml')) {
$container->import('../config/services.yaml');
$container->import('../config/{services}_'.$this->environment.'.yaml');
} elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) {
(require $path)($container->withPath($path), $this);
}
}
protected function configureRoutes(RoutingConfigurator $routes): void
{
$routes->import('../config/{routes}/'.$this->environment.'/*.yaml');
$routes->import('../config/{routes}/*.yaml');
if (is_file(\dirname(__DIR__).'/config/routes.yaml')) {
$routes->import('../config/routes.yaml');
} elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) {
(require $path)($routes->withPath($path), $this);
}
}
}

View file

@ -1,43 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Repository;
final class MenuLinkArrayRepository implements MenuLinkRepository
{
public function findAll(): array
{
return [
[
'name' => 'Conference',
'children' => [
['name' => 'Trainings'],
['name' => 'Contribution Day'],
['name' => 'About FLDC'],
['name' => 'Speaker Info'],
['name' => 'Contact'],
],
],
[
'name' => 'Sponsors',
'children' => [
['name' => 'All sponsors'],
['name' => 'Become a sponsor'],
],
],
[
'name' => 'Community',
'children' => [
['name' => 'Code of Conduct'],
['name' => 'Tourism'],
['name' => 'Mailing List'],
],
],
[
'name' => 'FAQ',
'children' => [],
],
];
}
}

View file

@ -1,10 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Repository;
interface MenuLinkRepository
{
public function findAll(): array;
}

View file

@ -1,218 +0,0 @@
{
"doctrine/annotations": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "a2759dd6123694c8d901d0ec80006e044c2e6457"
},
"files": [
"config/routes/annotations.yaml"
]
},
"doctrine/inflector": {
"version": "2.0.3"
},
"doctrine/lexer": {
"version": "1.2.1"
},
"nikic/php-parser": {
"version": "v4.10.4"
},
"php": {
"version": "7.4"
},
"psr/cache": {
"version": "1.0.1"
},
"psr/container": {
"version": "1.0.0"
},
"psr/event-dispatcher": {
"version": "1.0.0"
},
"psr/log": {
"version": "1.1.3"
},
"sensio/framework-extra-bundle": {
"version": "5.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.2",
"ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b"
},
"files": [
"config/packages/sensio_framework_extra.yaml"
]
},
"symfony/cache": {
"version": "v5.2.1"
},
"symfony/cache-contracts": {
"version": "v2.2.0"
},
"symfony/config": {
"version": "v5.2.1"
},
"symfony/console": {
"version": "5.1",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.1",
"ref": "c6d02bdfba9da13c22157520e32a602dbee8a75c"
},
"files": [
"bin/console"
]
},
"symfony/dependency-injection": {
"version": "v5.2.1"
},
"symfony/deprecation-contracts": {
"version": "v2.2.0"
},
"symfony/dotenv": {
"version": "v5.2.1"
},
"symfony/error-handler": {
"version": "v5.2.1"
},
"symfony/event-dispatcher": {
"version": "v5.2.1"
},
"symfony/event-dispatcher-contracts": {
"version": "v2.2.0"
},
"symfony/filesystem": {
"version": "v5.2.1"
},
"symfony/finder": {
"version": "v5.2.1"
},
"symfony/flex": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "c0eeb50665f0f77226616b6038a9b06c03752d8e"
},
"files": [
".env"
]
},
"symfony/framework-bundle": {
"version": "5.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.2",
"ref": "6ec87563dcc85cd0c48856dcfbfc29610506d250"
},
"files": [
"config/packages/cache.yaml",
"config/packages/framework.yaml",
"config/packages/test/framework.yaml",
"config/preload.php",
"config/routes/dev/framework.yaml",
"config/services.yaml",
"public/index.php",
"src/Controller/.gitignore",
"src/Kernel.php"
]
},
"symfony/http-client-contracts": {
"version": "v2.3.1"
},
"symfony/http-foundation": {
"version": "v5.2.1"
},
"symfony/http-kernel": {
"version": "v5.2.1"
},
"symfony/maker-bundle": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
}
},
"symfony/polyfill-intl-grapheme": {
"version": "v1.20.0"
},
"symfony/polyfill-intl-normalizer": {
"version": "v1.20.0"
},
"symfony/polyfill-mbstring": {
"version": "v1.20.0"
},
"symfony/polyfill-php73": {
"version": "v1.20.0"
},
"symfony/polyfill-php80": {
"version": "v1.20.0"
},
"symfony/routing": {
"version": "5.1",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.1",
"ref": "b4f3e7c95e38b606eef467e8a42a8408fc460c43"
},
"files": [
"config/packages/prod/routing.yaml",
"config/packages/routing.yaml",
"config/routes.yaml"
]
},
"symfony/service-contracts": {
"version": "v2.2.0"
},
"symfony/string": {
"version": "v5.2.1"
},
"symfony/translation-contracts": {
"version": "v2.3.0"
},
"symfony/twig-bridge": {
"version": "v5.2.1"
},
"symfony/twig-bundle": {
"version": "5.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.0",
"ref": "fab9149bbaa4d5eca054ed93f9e1b66cc500895d"
},
"files": [
"config/packages/test/twig.yaml",
"config/packages/twig.yaml",
"templates/base.html.twig"
]
},
"symfony/twig-pack": {
"version": "v1.0.1"
},
"symfony/var-dumper": {
"version": "v5.2.1"
},
"symfony/var-exporter": {
"version": "v5.2.1"
},
"symfony/yaml": {
"version": "v5.2.1"
},
"twig/extra-bundle": {
"version": "v3.1.1"
},
"twig/twig": {
"version": "v3.1.1"
}
}

View file

@ -1,30 +0,0 @@
const colors = require('tailwindcss/colors')
module.exports = {
purge: {
content: ['templates/**/*.twig']
},
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
display: ['Bebas Neue', 'Arial Narrow', 'Arial', 'sans-serif'],
sans: ['Helvetica', 'Arial', 'sans-serif']
},
screens: {
sm: '700px'
}
},
colors: {
'hit-pink': '#FBA786',
blue: colors.lightBlue,
dandelion: '#FFDC67',
gray: colors.trueGray,
white: '#ffffff'
}
},
variants: {
extend: {},
},
plugins: [],
}

View file

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Florida DrupalCamp{% endblock %}</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/build/tailwind.css"/>
{% block stylesheets %}{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
{% block javascripts %}{% endblock %}
</body>
</html>

View file

@ -1,5 +0,0 @@
<div class="py-12 px-8 text-center sm:max-w-3xl sm:mx-auto">
<p class="text-xl leading-relaxed font-sans text-center text-blue-700 sm:text-3xl sm:leading-normal">Florida DrupalCamp is an annual conference that brings together web developers from all over the world to learn, network and discuss web development and the Drupal content management system.</p>
<a class="my-6 px-5 py-3 inline-block text-xl font-sans text-blue-700 border-2 border-blue-700 transition transition-color duration-200 ease-in-out hover:text-white hover:bg-blue-700 focus:text-white focus:bg-blue-700 sm:text-3xl" href="#0">Learn more</a>
</div>

View file

@ -1,16 +0,0 @@
<div class="xl:w-4/5 xl:mx-auto">
<div class="relative w-full flex flex-col items-center justify-center" style="height: 700px">
<img class="h-full w-full object-cover object-center" src="/images/auditorium_blur-tablet_narrow.jpg" alt="">
<div class="absolute inset-0 bg-blue-600 opacity-60 z-10"></div>
<img class="absolute h-4/6 z-10" src="/images/2020-logo.svg" alt="">
</div>
<div class="-mt-12 flex flex-col items-center lg:-mt-16">
<a class="py-5 px-6 flex items-center space-x-4 font-display relative text-4xl z-10 text-white bg-gradient-to-r from-dandelion to-hit-pink sm:text-5xl" href="#0">
<span>Register now</span>
<span>
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3"/></svg>
</span>
</a>
</div>
</div>

File diff suppressed because one or more lines are too long

View file

@ -1,7 +0,0 @@
{% extends 'html.html.twig' %}
{% block body %}
{% include 'includes/navbar.html.twig' %}
{% block content %}{% endblock %}
{% endblock %}

View file

@ -1,6 +0,0 @@
{% extends 'page.html.twig' %}
{% block content %}
{% include 'includes/home/header.html.twig' %}
{% include 'includes/home/description.html.twig' %}
{% endblock %}

File diff suppressed because it is too large Load diff