mirror of
https://git.j0bot.ch/admin_j0bot/ploxion-zlorbion.git
synced 2026-11-29 07:55:07 +00:00
synchro du labo (0bf0da65) : app.blade.php, README.md
This commit is contained in:
commit
da1be476eb
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# 🧊 Zlorbion
|
||||
|
||||
TON COMPAGNON XERION (seed = le bion Finch : cozy, un pet a choyer). Le zlorbion = le cube chill = le ploxion xerion (ton identite perso). Caline-le, il reagit + emet des MOTS DU XERBOXION (les points xerboxion d'un tsoin : quand un instant touche la vision). Xerploxion Finch+zlorbion+xerion. Cozy, mobile-first.
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| id | `zlorbion` |
|
||||
| fournit | `zlorbion` `xerion` `finch` `compagnon` `chill` `mots` |
|
||||
| bions qu'il nomme | `jOSApps` `jOSBoxion` |
|
||||
| fichiers | `app.blade.php` |
|
||||
| dans le labo | `resources/views/ploxions/zlorbion/` (dépôt `my_website2`) |
|
||||
|
||||
## Contribuer
|
||||
|
||||
- **Dans le xer** : https://labo.j0bot.ch/px/atelier?ploxion=zlorbion — prends-le, modifie-le, vois-le tourner, « ⧗ envoyer le tsoin ».
|
||||
- **Dans VS Code** : `xb prendre zlorbion` (ou l'extension xerboxion › ⇩ Prendre), puis ⧗ Envoyer.
|
||||
- Le chemin complet : https://labo.j0bot.ch/px/contribuer
|
||||
|
||||
Ce dépôt est un **miroir** du labo (synchronisé par `bin/ploxions-forge.mjs`, depuis le commit `0bf0da65`) : une modif se propose par un tsoin ou une branche du labo, pas directement ici.
|
||||
|
||||
© 2026 chill-tekk · ne pas nuire
|
||||
81
app.blade.php
Normal file
81
app.blade.php
Normal file
@ -0,0 +1,81 @@
|
||||
{{-- PL0XION zlorbion 🧊 — TON COMPAGNON XERION (seed = le bion Finch : cozy, un pet à choyer).
|
||||
Le zlorbion = le cube chill = le ploxion xerion (ton identité perso). Xerploxion qui réunit
|
||||
Finch (cozy) + zlorbion (le cube-créature) + xerion (toi). Câline-le, il réagit + phrase chill.
|
||||
Self-contained, cozy, mobile-first. Rangé selon le langage : bion Finch → cubion zlorbion → xerion. --}}
|
||||
<style>
|
||||
.zl{position:absolute;inset:0;overflow:hidden;font-family:var(--xr-font-ui,ui-sans-serif,system-ui);color:#3a2f4a;
|
||||
background:linear-gradient(180deg,#c9b6 e8 0%,#e7d7f0 42%,#f3e9dd 100%);display:flex;flex-direction:column}
|
||||
.zl{background:linear-gradient(180deg,#c9b6e8 0%,#e7d7f0 42%,#f3e9dd 100%)}
|
||||
.zl *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
|
||||
.zl__hd{flex:0 0 auto;text-align:center;padding:calc(env(safe-area-inset-top,0px) + 18px) 16px 4px}
|
||||
.zl__hd b{font-size:1.15rem;color:#5a3f7a;font-weight:800}
|
||||
.zl__hd small{display:block;font-size:.72rem;color:#8a789e;margin-top:2px}
|
||||
.zl__room{flex:1;min-height:0;position:relative;display:grid;place-items:center}
|
||||
.zl__floor{position:absolute;left:0;right:0;bottom:0;height:38%;background:linear-gradient(180deg,#e8dcc8,#dcc9a8);border-top:2px solid rgba(120,90,60,.15)}
|
||||
.zl__rug{position:absolute;bottom:9%;width:190px;height:64px;border-radius:50%;background:radial-gradient(ellipse,rgba(180,140,230,.5),rgba(180,140,230,0));filter:blur(1px)}
|
||||
.zl__z{position:relative;cursor:pointer;width:150px;height:150px;display:grid;place-items:center;animation:zbob 3.4s ease-in-out infinite;user-select:none;z-index:2}
|
||||
.zl__z.pet{animation:zwig .5s ease}
|
||||
.zl__cube{width:118px;height:118px;border-radius:26px;background:linear-gradient(150deg,#8f7bff,#6a4fd0 60%,#a88bff);
|
||||
box-shadow:0 14px 34px rgba(90,60,180,.4),inset 0 3px 10px rgba(255,255,255,.35);position:relative}
|
||||
.zl__face{position:absolute;inset:0;display:grid;place-items:center}
|
||||
.zl__eyes{display:flex;gap:22px;margin-bottom:6px}
|
||||
.zl__eye{width:13px;height:16px;border-radius:50%;background:#1a1030;animation:zblink 4.2s infinite}
|
||||
.zl__mouth{width:20px;height:10px;border-radius:0 0 20px 20px;background:#1a1030;margin:0 auto}
|
||||
.zl__spark{position:absolute;font-size:1.2rem;opacity:0;pointer-events:none}
|
||||
.zl__say{position:absolute;top:8%;left:50%;transform:translateX(-50%);max-width:80%;background:rgba(255,255,255,.9);
|
||||
color:#5a3f7a;font-size:.82rem;font-weight:600;padding:9px 14px;border-radius:16px;box-shadow:0 6px 18px rgba(90,60,180,.2);opacity:0;transition:opacity .3s;text-align:center}
|
||||
.zl__say.on{opacity:1}
|
||||
.zl__bar{flex:0 0 auto;display:flex;gap:9px;justify-content:center;padding:10px 14px calc(env(safe-area-inset-bottom,0px) + 16px)}
|
||||
.zl__b{cursor:pointer;border:0;border-radius:14px;background:rgba(255,255,255,.7);color:#5a3f7a;font:inherit;font-weight:700;font-size:.82rem;padding:11px 16px;box-shadow:0 3px 10px rgba(90,60,180,.15)}
|
||||
.zl__b:active{transform:scale(.96)}
|
||||
@keyframes zbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
|
||||
@keyframes zwig{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg) scale(1.05)}75%{transform:rotate(9deg) scale(1.05)}}
|
||||
@keyframes zblink{0%,94%,100%{transform:scaleY(1)}97%{transform:scaleY(.1)}}
|
||||
@keyframes zpop{0%{opacity:0;transform:translateY(0) scale(.5)}30%{opacity:1}100%{opacity:0;transform:translateY(-46px) scale(1.2)}}
|
||||
</style>
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
var SAY = ['chill, xerion 🌿','le tsoin d\'un instant vaut mille mots','on est tous des reality scientists','respire — le nexus veille','ce koin te va bien','un ploxion par jour éloigne l\'ennui','ton xer est en ordre','le chaos et l\'amour, maîtrisés ✨','tout est un kion','moitié réel, moitié nexus'];
|
||||
var MOODS = ['serein ☁️','curieux ✨','câlin 💜','en flow 🌊','pensif 🌙'];
|
||||
function describe() {
|
||||
var pets = 0; try { pets = +(window.jOSBoxion && jOSBoxion.get ? jOSBoxion.get('zlorbion', 'pets') : 0) || 0; } catch (e) {}
|
||||
return { v: 1, id: 'zlorbion', title: 'Zlorbion', icon: '🧊', items: [
|
||||
{ p: 1, kind: 'stat', label: 'câlins reçus', value: pets }
|
||||
] };
|
||||
}
|
||||
function mount(container) {
|
||||
var name = 'xerion';
|
||||
try { if (window.jOSBoxion && jOSBoxion.get) name = jOSBoxion.get('xerion','name') || 'xerion'; } catch(e){}
|
||||
var pets = 0; try { pets = +(window.jOSBoxion && jOSBoxion.get ? jOSBoxion.get('zlorbion','pets') : 0) || 0; } catch(e){}
|
||||
container.innerHTML = '<div class="zl"><div class="zl__hd"><b>ton zlorbion</b><small data-mood>le compagnon de ' + name + ' · ' + MOODS[0] + '</small></div>'
|
||||
+ '<div class="zl__room"><div class="zl__floor"></div><div class="zl__rug"></div>'
|
||||
+ '<div class="zl__say" data-say></div>'
|
||||
+ '<div class="zl__z" data-z><div class="zl__cube"><div class="zl__face"><div><div class="zl__eyes"><span class="zl__eye"></span><span class="zl__eye"></span></div><div class="zl__mouth"></div></div></div></div></div>'
|
||||
+ '</div>'
|
||||
+ '<div class="zl__bar"><button class="zl__b" data-pet>💜 câliner</button><button class="zl__b" data-say2>🔮 demander</button></div></div>';
|
||||
var root = container.querySelector('.zl');
|
||||
var z = root.querySelector('[data-z]'), sayEl = root.querySelector('[data-say]'), moodEl = root.querySelector('[data-mood]');
|
||||
var sayT = null, moodT = null;
|
||||
function say(txt){ sayEl.textContent = txt; sayEl.classList.add('on'); clearTimeout(sayT); sayT = setTimeout(function(){ sayEl.classList.remove('on'); }, 3200); }
|
||||
function pet(){
|
||||
z.classList.remove('pet'); void z.offsetWidth; z.classList.add('pet');
|
||||
pets++; try { if(window.jOSBoxion && jOSBoxion.set) jOSBoxion.set('zlorbion','pets',pets); } catch(e){}
|
||||
// petit cœur qui monte
|
||||
var s=document.createElement('span'); s.className='zl__spark'; s.textContent='💜';
|
||||
s.style.left=(40+Math.random()*70)+'px'; s.style.top='30px'; s.style.animation='zpop 1s ease forwards'; s.style.opacity=1;
|
||||
z.appendChild(s); setTimeout(function(){ s.remove(); }, 1000);
|
||||
moodEl.textContent = 'le compagnon de ' + name + ' · ' + MOODS[(pets)%MOODS.length];
|
||||
say(SAY[(pets)%SAY.length]);
|
||||
}
|
||||
z.addEventListener('click', pet);
|
||||
root.querySelector('[data-pet]').addEventListener('click', pet);
|
||||
root.querySelector('[data-say2]').addEventListener('click', function(){ say(SAY[(Math.random()*SAY.length)|0]); });
|
||||
// il dit bonjour au réveil
|
||||
setTimeout(function(){ say('re, ' + name + ' 💜'); }, 600);
|
||||
return { unmount: function(){ clearTimeout(sayT); clearTimeout(moodT); container.innerHTML=''; } };
|
||||
}
|
||||
window.jOSApps = window.jOSApps || {};
|
||||
window.jOSApps['zlorbion'] = { manifest: { id: 'zlorbion', name: 'Zlorbion', icon: '🧊' }, mount: mount, describe: describe };
|
||||
})();
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user