minor changes

This commit is contained in:
2024-12-04 22:23:28 +01:00
parent e70c6db10f
commit 2123b5464f
22 changed files with 1045 additions and 27 deletions

View File

@ -1,3 +1,4 @@
import './bootstrap.js';
/*
* Welcome to your app's main JavaScript file!
*

5
assets/bootstrap.js vendored Normal file
View File

@ -0,0 +1,5 @@
import { startStimulusApp } from '@symfony/stimulus-bundle';
const app = startStimulusApp();
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);

4
assets/controllers.json Normal file
View File

@ -0,0 +1,4 @@
{
"controllers": [],
"entrypoints": []
}

View File

@ -0,0 +1,10 @@
import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
connect() {
console.log(this.element);
this.element.querySelector('input').addEventListener('change', () => {
this.element.querySelector('button[type="submit"]').click();
});
}
}

View File

@ -0,0 +1,3 @@
<svg class="w-8 h-8 mb-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 16">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"/>
</svg>

After

Width:  |  Height:  |  Size: 400 B

View File

@ -1,3 +1,8 @@
body {
background-color: transparent;
}
.upload-btn:hover {
color: darkblue;
cursor: pointer;
}