-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #482 from ckrack/feat/tailwind
feat(ui): Add some basic styling with tailwind
- Loading branch information
Showing
23 changed files
with
5,285 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Welcome to your app's main JavaScript file! | ||
* | ||
* We recommend including the built version of this JavaScript file | ||
* (and its CSS file) in your base layout (base.html.twig). | ||
*/ | ||
|
||
// any CSS you import will output into a single css file (app.css in this case) | ||
import './styles/app.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
<?php | ||
|
||
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; | ||
use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle; | ||
use Symfony\Bundle\FrameworkBundle\FrameworkBundle; | ||
use Symfony\Bundle\MakerBundle\MakerBundle; | ||
use Symfony\Bundle\MonologBundle\MonologBundle; | ||
use Symfony\Bundle\TwigBundle\TwigBundle; | ||
use Twig\Extra\TwigExtraBundle\TwigExtraBundle; | ||
|
||
return [ | ||
FrameworkBundle::class => ['all' => true], | ||
MonologBundle::class => ['all' => true], | ||
MakerBundle::class => ['dev' => true], | ||
TwigBundle::class => ['all' => true], | ||
TwigExtraBundle::class => ['all' => true], | ||
DoctrineBundle::class => ['all' => true], | ||
DoctrineMigrationsBundle::class => ['all' => true], | ||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], | ||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], | ||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true], | ||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], | ||
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true], | ||
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], | ||
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], | ||
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$containerConfigurator->extension('webpack_encore', [ | ||
'output_path' => '%kernel.project_dir%/public/build', | ||
'script_attributes' => [ | ||
'defer' => true, | ||
], | ||
]); | ||
|
||
$containerConfigurator->extension('framework', [ | ||
'assets' => [ | ||
'json_manifest_path' => '%kernel.project_dir%/public/build/manifest.json', | ||
], | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"devDependencies": { | ||
"@babel/core": "^7.17.0", | ||
"@babel/preset-env": "^7.16.0", | ||
"@symfony/webpack-encore": "^4.0.0", | ||
"autoprefixer": "^10.4.17", | ||
"core-js": "^3.23.0", | ||
"postcss": "^8.4.35", | ||
"postcss-loader": "^7.3.4", | ||
"regenerator-runtime": "^0.13.9", | ||
"tailwindcss": "^3.4.1", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-notifier": "^1.15.0" | ||
}, | ||
"license": "UNLICENSED", | ||
"private": true, | ||
"scripts": { | ||
"dev-server": "encore dev-server", | ||
"dev": "encore dev", | ||
"watch": "encore dev --watch", | ||
"build": "encore production --progress" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: [ | ||
"./assets/**/*.js", | ||
"./templates/**/*.html.twig", | ||
], theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}New Hydrometer{% endblock %} | ||
|
||
{% block body %} | ||
<div class="mx-[auto] my-[1em] max-w-[800px] w-[95%]"> | ||
<div class="px-4 sm:px-0"> | ||
<h1 class="text-xl font-semibold leading-7 text-gray-900">New hydrometer added ✅</h1> | ||
<p class="intro mt-4 max-w-2xl text-sm leading-6 text-gray-500"> | ||
Your new hydrometer token is: <code class="ulid bg-[#F5F5F5] px-[6px] py-[2px]">{{ hydrometer_id }}</code><br> | ||
</p> | ||
<div class="pt-6 pb-8 mt-6 mb-8 border-b border-t border-gray-100"> | ||
<a class="px-4 py-3 text-sm text-white font-light tracking-wider bg-slate-800 hover:bg-slate-600 rounded" href="{{ path('app_show_data', {hydrometerId: hydrometer_id}) }}">Show data</a> | ||
</div> | ||
</div> | ||
<h2 class="text-base font-semibold leading-5 text-gray-900">Setup instructions</h2> | ||
<div class="mt-6 border-t border-gray-100"> | ||
<div class="divide-y divide-gray-100"> | ||
<div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"> | ||
<dt class="text-sm font-medium leading-6 text-gray-900">{% trans %}Token{% endtrans %}</dt> | ||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">{{ hydrometer_id }}</dd> | ||
</div> | ||
<div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"> | ||
<dt class="text-sm font-medium leading-6 text-gray-900">{% trans %}Service type{% endtrans %}</dt> | ||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">{% trans %}TCP{% endtrans %}</dd> | ||
</div> | ||
<div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"> | ||
<dt class="text-sm font-medium leading-6 text-gray-900">{% trans %}Server address{% endtrans %}</dt> | ||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">{{ app.request.getHttpHost() }}</dd> | ||
</div> | ||
<div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"> | ||
<dt class="text-sm font-medium leading-6 text-gray-900">{% trans %}Server port{% endtrans %}</dt> | ||
<dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">{{ app.request.server.get('TCP_API_PORT') }}</dd> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.