Skip to content

Commit

Permalink
feat: use pico
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Oct 10, 2024
1 parent 456e399 commit 33855cc
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 17 deletions.
4 changes: 3 additions & 1 deletion assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/

import './bootstrap.js';
import './vendor/barecss/css/bare.min.css';
//import './vendor/barecss/css/bare.min.css';
import './vendor/@picocss/pico/pico.index.js';
import './vendor/@picocss/pico/css/pico.min.css';
import './styles/app.css';

// "optin" - No turbo forms unless you insist. Use data-turbo="true" to enable turbo on individual forms.
Expand Down
16 changes: 6 additions & 10 deletions assets/vendor/@hotwired/turbo/turbo.index.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions assets/vendor/@picocss/pico/css/pico.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/vendor/@picocss/pico/pico.index.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/vendor/barecss/css/bare.min.css

This file was deleted.

32 changes: 31 additions & 1 deletion assets/vendor/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,37 @@
),
'barecss/css/bare.min.css' =>
array (
'version' => '1.1.1',
'version' => '1.1.0',
'dependencies' =>
array (
),
'extraFiles' =>
array (
),
),
'@hotwired/turbo' =>
array (
'version' => '7.3.0',
'dependencies' =>
array (
),
'extraFiles' =>
array (
),
),
'@picocss/pico' =>
array (
'version' => '2.0.6',
'dependencies' =>
array (
),
'extraFiles' =>
array (
),
),
'@picocss/pico/css/pico.min.css' =>
array (
'version' => '2.0.6',
'dependencies' =>
array (
),
Expand Down
11 changes: 7 additions & 4 deletions importmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@
'@symfony/stimulus-bundle' => [
'path' => '@symfony/stimulus-bundle/loader.js',
],
'barecss/css/bare.min.css' => [
'version' => '1.1.0',
'type' => 'css',
],
'@hotwired/turbo' => [
'version' => '7.3.0',
],
'@picocss/pico' => [
'version' => '2.0.6',
],
'@picocss/pico/css/pico.min.css' => [
'version' => '2.0.6',
'type' => 'css',
],
];
4 changes: 4 additions & 0 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset=utf-8>
<meta name="description" content="{{ brand }}">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<meta name="color-scheme" content="light dark" />

<title>{% block title %}{{ brand }}{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>{% block icon %}🎶️{% endblock %}️</text></svg>">
Expand All @@ -19,6 +20,8 @@
</head>

<body id="{% block id %}base{% endblock %}">
<main class="container">

<nav>
<label>
<input type="checkbox">
Expand Down Expand Up @@ -52,6 +55,7 @@
{% block body %}{% endblock %}
</section>

</main>
<footer>
<h5>{{ brand|raw }} v{{ sf_version }} ({{ 'frankenphp' in php_sapi ? php_sapi : 'PHP '~php_sapi }} {{ php_version }})</h5>

Expand Down

0 comments on commit 33855cc

Please sign in to comment.