Move all files to workshop-tailwind-css/demo/florida-drupalcamp/
This commit is contained in:
parent
0da8b14a52
commit
fc8813a5c9
49 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
/**/*.{md,txt}
|
||||
/.git-blame-ignore-revs
|
||||
/.git/
|
||||
/.github/
|
||||
/.gitignore
|
||||
/.idea/
|
||||
/.notes/
|
19
workshop-tailwind-css/demo/florida-drupalcamp/.env
Normal file
19
workshop-tailwind-css/demo/florida-drupalcamp/.env
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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 ###
|
12
workshop-tailwind-css/demo/florida-drupalcamp/.gitignore
vendored
Normal file
12
workshop-tailwind-css/demo/florida-drupalcamp/.gitignore
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
/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 ###
|
11
workshop-tailwind-css/demo/florida-drupalcamp/README.rst
Normal file
11
workshop-tailwind-css/demo/florida-drupalcamp/README.rst
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
|
@ -0,0 +1,3 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
43
workshop-tailwind-css/demo/florida-drupalcamp/bin/console
Executable file
43
workshop-tailwind-css/demo/florida-drupalcamp/bin/console
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/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);
|
67
workshop-tailwind-css/demo/florida-drupalcamp/composer.json
Normal file
67
workshop-tailwind-css/demo/florida-drupalcamp/composer.json
Normal file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"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.*",
|
||||
"tightenco/collect": "^8.19",
|
||||
"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.*"
|
||||
}
|
||||
}
|
||||
}
|
3343
workshop-tailwind-css/demo/florida-drupalcamp/composer.lock
generated
Normal file
3343
workshop-tailwind-css/demo/florida-drupalcamp/composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,9 @@
|
|||
<?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],
|
||||
];
|
|
@ -0,0 +1,19 @@
|
|||
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
|
|
@ -0,0 +1,17 @@
|
|||
# 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
|
|
@ -0,0 +1,3 @@
|
|||
framework:
|
||||
router:
|
||||
strict_requirements: null
|
|
@ -0,0 +1,7 @@
|
|||
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
|
|
@ -0,0 +1,3 @@
|
|||
sensio_framework_extra:
|
||||
router:
|
||||
annotations: false
|
|
@ -0,0 +1,4 @@
|
|||
framework:
|
||||
test: true
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
|
@ -0,0 +1,2 @@
|
|||
twig:
|
||||
strict_variables: true
|
|
@ -0,0 +1,5 @@
|
|||
twig:
|
||||
default_path: '%kernel.project_dir%/templates'
|
||||
globals:
|
||||
menu_items: '@App\Repository\MenuItemRepository'
|
||||
sponsors: '@App\Repository\SponsorRepository'
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
|
||||
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#index:
|
||||
# path: /
|
||||
# controller: App\Controller\DefaultController::index
|
|
@ -0,0 +1,7 @@
|
|||
controllers:
|
||||
resource: ../../src/Controller/
|
||||
type: annotation
|
||||
|
||||
kernel:
|
||||
resource: ../../src/Kernel.php
|
||||
type: annotation
|
|
@ -0,0 +1,3 @@
|
|||
_errors:
|
||||
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
|
||||
prefix: /_error
|
|
@ -0,0 +1,31 @@
|
|||
# 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
|
|
@ -0,0 +1,52 @@
|
|||
version: '2.4'
|
||||
|
||||
networks:
|
||||
public:
|
||||
external:
|
||||
name: traefik_proxy
|
||||
|
||||
volumes:
|
||||
node_modules: ~
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:1
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ./:/app
|
||||
- ./tools/docker/images/nginx/configs/vhost.conf:/etc/nginx/conf.d/default.conf
|
||||
# ports:
|
||||
# - 9000:80
|
||||
depends_on:
|
||||
node:
|
||||
condition: service_started
|
||||
php:
|
||||
condition: service_started
|
||||
networks:
|
||||
default: {}
|
||||
public: {}
|
||||
labels:
|
||||
- traefik.docker.network=traefik_proxy
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.workshop-tailwind.rule=Host(`workshop-tailwind.docker.localhost`)
|
||||
|
||||
php:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: tools/docker/Dockerfile
|
||||
target: dev
|
||||
volumes:
|
||||
- ./:/app
|
||||
networks:
|
||||
default: {}
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
|
||||
node:
|
||||
image: node:12
|
||||
working_dir: /node/app
|
||||
volumes:
|
||||
- .:/node/app
|
||||
- node_modules:/node/app/node_modules
|
||||
labels:
|
||||
- "traefik.enabled=false"
|
15
workshop-tailwind-css/demo/florida-drupalcamp/package.json
Normal file
15
workshop-tailwind-css/demo/florida-drupalcamp/package.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "cross-env NODE_ENV=development postcss assets/css/tailwind.pcss -o public/build/tailwind.css",
|
||||
"prod": "cross-env NODE_ENV=production postcss assets/css/tailwind.pcss -o public/build/tailwind.css",
|
||||
"watch": "cross-env NODE_ENV=development postcss assets/css/tailwind.pcss -o public/build/tailwind.css --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^10.2.4",
|
||||
"cross-env": "^7.0.3",
|
||||
"postcss": "^8.2.6",
|
||||
"postcss-cli": "^8.3.1",
|
||||
"tailwindcss": "^2.0.3"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
<?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);
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Collection;
|
||||
|
||||
use Tightenco\Collect\Support\Collection;
|
||||
|
||||
final class SponsorCollection extends Collection
|
||||
{
|
||||
public function byType(string $type): self
|
||||
{
|
||||
return $this->filter(function (array $sponsor) use ($type): bool {
|
||||
return $sponsor['type'] == $type;
|
||||
});
|
||||
}
|
||||
}
|
0
workshop-tailwind-css/demo/florida-drupalcamp/src/Controller/.gitignore
vendored
Normal file
0
workshop-tailwind-css/demo/florida-drupalcamp/src/Controller/.gitignore
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Twig\Environment;
|
||||
|
||||
abstract class BaseController
|
||||
{
|
||||
protected $twig;
|
||||
|
||||
public function __construct(Environment $twig)
|
||||
{
|
||||
$this->twig = $twig;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
38
workshop-tailwind-css/demo/florida-drupalcamp/src/Kernel.php
Normal file
38
workshop-tailwind-css/demo/florida-drupalcamp/src/Kernel.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
final class MenuItemArrayRepository implements MenuItemRepository
|
||||
{
|
||||
public function findAll(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
'title' => 'Conference',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Sponsors',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Community',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'FAQ',
|
||||
'is_active' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Register',
|
||||
'is_active' => true,
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
interface MenuItemRepository
|
||||
{
|
||||
public function findAll(): array;
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Collection\SponsorCollection;
|
||||
|
||||
final class SponsorArrayRepository implements SponsorRepository
|
||||
{
|
||||
private const TYPE_PLATINUM = 'platinum';
|
||||
private const TYPE_GOLD = 'gold';
|
||||
private const TYPE_SILVER = 'silver';
|
||||
private const TYPE_BRONZE = 'bronze';
|
||||
private const TYPE_IN_KIND = 'in_kind';
|
||||
|
||||
private const SPONSORS = [
|
||||
[
|
||||
'name' => 'DDEV',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/ddev1000.png',
|
||||
'type' => self::TYPE_PLATINUM,
|
||||
],
|
||||
[
|
||||
'name' => 'Acquia',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/Acquia_no_tagline.png',
|
||||
'type' => self::TYPE_GOLD,
|
||||
],
|
||||
[
|
||||
'name' => 'Palantir.net',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/palantir-logo_0.png',
|
||||
'type' => self::TYPE_GOLD,
|
||||
],
|
||||
[
|
||||
'name' => 'Drupal Contractors, by esteemed',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/dcont-logo-v1-stacked-black-01.png',
|
||||
'type' => self::TYPE_GOLD,
|
||||
],
|
||||
[
|
||||
'name' => 'Lullabot',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/lullabot.jpg',
|
||||
'type' => self::TYPE_GOLD,
|
||||
],
|
||||
[
|
||||
'name' => 'Florida Realtors Association',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/florida-realtors-logo.png',
|
||||
'type' => self::TYPE_SILVER,
|
||||
],
|
||||
[
|
||||
'name' => 'DrupalEasy',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/DrupalEasy%20CMYK%20Layered_0.png',
|
||||
'type' => self::TYPE_SILVER,
|
||||
],
|
||||
[
|
||||
'name' => 'Specbee',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/SpecbeeLogo-800x800.png',
|
||||
'type' => self::TYPE_SILVER,
|
||||
],
|
||||
[
|
||||
'name' => 'devPanel',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/logo_devPanel_800x800_3.png',
|
||||
'type' => self::TYPE_BRONZE,
|
||||
],
|
||||
[
|
||||
'name' => 'Promet Source',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/Promet_Logo_Master-04.png',
|
||||
'type' => self::TYPE_BRONZE,
|
||||
],
|
||||
[
|
||||
'name' => 'Hot Sauce',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/hotsauce_logo.png',
|
||||
'type' => self::TYPE_BRONZE,
|
||||
],
|
||||
[
|
||||
'name' => 'CLoud NYNE Design',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/CLoud-NYNE-Design.jpg',
|
||||
'type' => self::TYPE_BRONZE,
|
||||
],
|
||||
[
|
||||
'name' => 'Bluehorn Digital',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/Bluehorn%20Digital%20Logo%20-%204C.png',
|
||||
'type' => self::TYPE_BRONZE,
|
||||
],
|
||||
[
|
||||
'name' => 'Pantheon',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/newlogo-webops_New%20logo%20-black%20fist%20tagline.png',
|
||||
'type' => self::TYPE_BRONZE,
|
||||
],
|
||||
[
|
||||
'name' => 'DesignHammer',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/DesignHammer%20%281%29.png',
|
||||
'type' => self::TYPE_BRONZE,
|
||||
],
|
||||
[
|
||||
'name' => 'The Weekly Drop',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/twd-square-logo.png',
|
||||
'type' => self::TYPE_IN_KIND,
|
||||
],
|
||||
[
|
||||
'name' => 'Kanopi Studios',
|
||||
'logo_url' => 'https://www.fldrupal.camp/sites/default/files/styles/medium/public/Kanopi_Logo_Horiz_RGB.png',
|
||||
'type' => self::TYPE_IN_KIND,
|
||||
]
|
||||
];
|
||||
|
||||
public function findByType(string $type): array
|
||||
{
|
||||
$sponsors = new SponsorCollection(self::SPONSORS);
|
||||
|
||||
return $sponsors->byType($type)->toArray();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
interface SponsorRepository
|
||||
{
|
||||
public function findByType(string $type): array;
|
||||
}
|
221
workshop-tailwind-css/demo/florida-drupalcamp/symfony.lock
Normal file
221
workshop-tailwind-css/demo/florida-drupalcamp/symfony.lock
Normal file
|
@ -0,0 +1,221 @@
|
|||
{
|
||||
"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.3"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"tightenco/collect": {
|
||||
"version": "v8.19.0"
|
||||
},
|
||||
"twig/extra-bundle": {
|
||||
"version": "v3.1.1"
|
||||
},
|
||||
"twig/twig": {
|
||||
"version": "v3.1.1"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
module.exports = {
|
||||
purge: ['templates/**/*.twig'],
|
||||
darkMode: false, // or 'media' or 'class'
|
||||
theme: {
|
||||
fontFamily: {
|
||||
display: ['Bebas Neue', 'Arial Narrow', 'Arial', 'sans-serif'],
|
||||
sans: ['Helvetica', 'Arial', 'sans-serif'],
|
||||
},
|
||||
colors: {
|
||||
blue: {
|
||||
DEFAULT: '#56a9db',
|
||||
dark: '#1772ae',
|
||||
},
|
||||
bronze: '#998100',
|
||||
gold: '#e6c200',
|
||||
gray: {
|
||||
light: '#fafafa',
|
||||
dark: '#333333',
|
||||
},
|
||||
orange: '#fcb040',
|
||||
platinum: '#666666',
|
||||
silver: '#999999',
|
||||
white: '#ffffff',
|
||||
},
|
||||
extend: {
|
||||
fontSize: {
|
||||
'2xl': '1.5625rem', // 25px
|
||||
'3xl': '1.6875rem', // 27px
|
||||
},
|
||||
},
|
||||
},
|
||||
variants: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Tailwind CSS workshop{% endblock %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<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>
|
||||
<div>
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
{% block javascripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<div class="max-w-3xl px-4 py-8 mx-auto text-center">
|
||||
<p class="text-xl leading-loose lg:text-3xl text-blue-dark">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="inline-block px-4 py-3 mt-8 text-xl transition-colors duration-200 ease-in-out border-2 lg:px-5 lg:py-4 lg:text-3xl text-blue-dark border-blue-dark hover:bg-blue-dark focus:bg-blue-dark hover:text-white focus:text-white" href="#0">Learn more</a>
|
||||
</div>
|
|
@ -0,0 +1,30 @@
|
|||
<div class="px-4 mx-auto mt-10 mb-10 max-w-screen-xl">
|
||||
<h2 class="sr-only">Sponsors</h2>
|
||||
|
||||
<div>
|
||||
{% include 'includes/sponsor-list.html.twig' with {
|
||||
title: 'Platinum Sponsors',
|
||||
type: 'platinum',
|
||||
} only %}
|
||||
|
||||
{% include 'includes/sponsor-list.html.twig' with {
|
||||
title: 'Gold Sponsors',
|
||||
type: 'gold',
|
||||
} only %}
|
||||
|
||||
{% include 'includes/sponsor-list.html.twig' with {
|
||||
title: 'Silver Sponsors',
|
||||
type: 'silver',
|
||||
} only %}
|
||||
|
||||
{% include 'includes/sponsor-list.html.twig' with {
|
||||
title: 'Bronze Sponsors',
|
||||
type: 'bronze',
|
||||
} only %}
|
||||
|
||||
{% include 'includes/sponsor-list.html.twig' with {
|
||||
title: 'In Kind Sponsors',
|
||||
type: 'in_kind',
|
||||
} only %}
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,11 @@
|
|||
<div class="relative flex items-center justify-center px-4 mx-auto max-w-screen-2xl">
|
||||
<video class="w-full opacity-60" poster="https://www.fldrupal.camp/sites/all/themes/fldc17/images/video-poster.jpg" preload="auto">
|
||||
<source src="https://www.fldrupal.camp/sites/default/files/FLDC17%20Promo-high.mp4" type="video/mp4">
|
||||
</video>
|
||||
|
||||
<img class="absolute w-96" src="https://www.fldrupal.camp/sites/all/themes/fldc17/images/logo-general.svg" alt="Florida Drupalcamp Logo">
|
||||
|
||||
<img class="absolute w-24 h-auto left-32 top-48" src="https://www.fldrupal.camp/sites/all/themes/fldc17/images/stars-1.svg" alt="">
|
||||
<img class="absolute w-24 h-auto top-32 right-48" src="https://www.fldrupal.camp/sites/all/themes/fldc17/images/stars-2.svg" alt="">
|
||||
<img class="absolute w-20 h-auto right-80 bottom-32" src="https://www.fldrupal.camp/sites/all/themes/fldc17/images/stars-3.svg" alt="">
|
||||
</div>
|
|
@ -0,0 +1,30 @@
|
|||
<div class="sticky top-0 z-30 px-4 mx-auto bg-white max-w-screen-2xl">
|
||||
<div class="grid h-full grid-cols-2 gap-4">
|
||||
<div>
|
||||
<a class="absolute" href="#0">
|
||||
<img class="relative z-20 w-auto h-20 md:h-24" src="https://www.fldrupal.camp/sites/all/themes/fldc17/images/header-logo-general.svg">
|
||||
</a>
|
||||
</div>
|
||||
<div class="flex items-center justify-end h-full">
|
||||
<button class="my-4 lg:hidden" type="button" aria-label="Toggle menu">
|
||||
<svg class="w-10 h-10" 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="M4 6h16M4 12h16M4 18h16"></path>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<ul class="justify-end hidden h-full md:flex">
|
||||
{% for menu_item in menu_items.findAll() %}
|
||||
{% set linkClasses = [
|
||||
'block px-2 py-3 text-2xl uppercase duration-200 ease-out transition-color font-display text-blue-dark hover:bg-orange focus:bg-orange hover:text-gray-dark focus:text-gray-dark',
|
||||
menu_item.is_active ? 'text-white bg-blue'
|
||||
] %}
|
||||
<li>
|
||||
<a class="{{ linkClasses|join(' ')|trim }}" href="#0">
|
||||
{{ menu_item.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,27 @@
|
|||
{% set titleClasses = [
|
||||
'text-5xl font-display',
|
||||
type == 'bronze' ? 'text-bronze',
|
||||
type == 'gold' ? 'text-gold',
|
||||
type == 'in_kind' ? 'text-blue-dark',
|
||||
type == 'platinum' ? 'text-platinum',
|
||||
type == 'silver' ? 'text-silver',
|
||||
] %}
|
||||
|
||||
<div class="mt-10 text-center">
|
||||
<h2 class="{{ titleClasses|join(' ')|trim }}">{{ title }}</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<ul class="flex flex-wrap justify-center mx-auto -mt-2 -ml-2">
|
||||
{% for sponsor in sponsors.findByType(type) %}
|
||||
<li class="w-full mt-2 ml-2 sm:w-auto">
|
||||
<a class="flex flex-col items-center justify-center p-4 sm:w-64 sm:h-48 sm:bg-gray-light" href="#0">
|
||||
<span class="flex items-center h-full">
|
||||
<img class="block w-4/5 max-h-full mx-auto" src="{{ sponsor.logo_url }}" alt="">
|
||||
</span>
|
||||
<p class="sr-only">{{ sponsor.name }}</p>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,13 @@
|
|||
{% extends 'html.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
{% include 'includes/navbar.html.twig' %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<footer class="py-10 bg-blue-dark">
|
||||
<div class="px-4 mx-auto max-w-screen-2xl">
|
||||
<p class="text-white">A clone of the <a class="underline" href="https://www.fldrupal.camp">DrupalCamp Florida website</a>, built by <a class="underline" href="https://www.oliverdavies.uk">Oliver Davies</a>, for his Tailwind CSS training workshop.</p>
|
||||
</div>
|
||||
</footer>
|
||||
{% endblock %}
|
|
@ -0,0 +1,9 @@
|
|||
{% extends 'page.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'includes/home/video.html.twig' %}
|
||||
|
||||
{% include 'includes/home/intro-text.html.twig' %}
|
||||
|
||||
{% include 'includes/home/sponsors.html.twig' %}
|
||||
{% endblock %}
|
|
@ -0,0 +1,35 @@
|
|||
fROM php:7.3-fpm-buster AS base
|
||||
|
||||
RUN apt update -yqq && apt install -yqq \
|
||||
git \
|
||||
libpng-dev \
|
||||
mariadb-client \
|
||||
zip \
|
||||
zlib1g-dev \
|
||||
&& docker-php-ext-install \
|
||||
exif \
|
||||
gd \
|
||||
pdo_mysql
|
||||
|
||||
###
|
||||
|
||||
FROM base AS dev
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PATH="./bin:./vendor/bin:$PATH"
|
||||
|
||||
RUN apt update -yqq \
|
||||
&& apt install -yqq \
|
||||
pv \
|
||||
vim \
|
||||
&& pecl install xdebug-2.9.0 \
|
||||
&& docker-php-ext-enable xdebug
|
||||
|
||||
COPY --from=composer:1 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
COPY composer.json composer.lock /app/
|
||||
COPY assets /app/assets
|
||||
RUN composer install
|
||||
|
||||
COPY tools/docker/images/php/configs/php.ini /usr/local/etc/php/conf.d/php.ini
|
|
@ -0,0 +1,19 @@
|
|||
server {
|
||||
server_name _;
|
||||
root /app/public;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
|
||||
try_files $fastcgi_script_name =404;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_pass php:9000;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
date.timezone=UTC
|
||||
expose_php=Off
|
1111
workshop-tailwind-css/demo/florida-drupalcamp/yarn.lock
Normal file
1111
workshop-tailwind-css/demo/florida-drupalcamp/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue