{"id":21,"date":"2026-11-18T21:29:49","date_gmt":"2026-11-18T21:29:49","guid":{"rendered":"https:\/\/www.oneby.com\/?page_id=21"},"modified":"2026-11-18T21:30:06","modified_gmt":"2026-11-18T21:30:06","slug":"21-2","status":"publish","type":"page","link":"https:\/\/www.oneby.com\/","title":{"rendered":"Oneby"},"content":{"rendered":"\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Montserrat:wght@700&#038;display=swap\" rel=\"stylesheet\">\n\n<style>\nhtml, body {\n  margin: 0 !important;\n  padding: 0 !important;\n}\n\n#oneby-cube-wrap {\n  position: fixed !important;\n  inset: 0 !important;\n  width: 100vw !important;\n  height: 100vh !important;\n  height: 100dvh !important;\n  z-index: 999999 !important;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  overflow: hidden;\n  background: #fafaf8;\n  touch-action: none;\n  user-select: none;\n  cursor: grab;\n}\n\n#oneby-cube-wrap:active {\n  cursor: grabbing;\n}\n\n.oneby-scene {\n  width: 240px;\n  height: 240px;\n  perspective: 1200px;\n  perspective-origin: 50% 50%;\n}\n\n#oneby-cube {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  transform-style: preserve-3d;\n  will-change: transform;\n}\n\n.oneby-face {\n  position: absolute;\n  inset: 0;\n  box-sizing: border-box;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  background: #fafaf8;\n  border: 1.5px solid #161616;\n  border-radius: 24px;\n  backface-visibility: hidden;\n  -webkit-backface-visibility: hidden;\n}\n\n.oneby-wordmark {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n\n  font-family: 'Montserrat', Arial, sans-serif;\n  font-weight: 700;\n  font-size: 72px;\n  line-height: 0.87;\n  letter-spacing: -0.065em;\n  text-transform: lowercase;\n  color: #161616;\n}\n\n.oneby-wordmark span {\n  display: block;\n}\n\n\/* Cube depth *\/\n.oneby-front  { transform: translateZ(120px); }\n.oneby-back   { transform: rotateY(180deg) translateZ(120px); }\n.oneby-right  { transform: rotateY(90deg) translateZ(120px); }\n.oneby-left   { transform: rotateY(-90deg) translateZ(120px); }\n.oneby-top    { transform: rotateX(90deg) translateZ(120px); }\n.oneby-bottom { transform: rotateX(-90deg) translateZ(120px); }\n\n\/* Responsive *\/\n@media (max-width: 480px) {\n  .oneby-scene {\n    width: 210px;\n    height: 210px;\n  }\n\n  .oneby-face {\n    border-radius: 21px;\n  }\n\n  .oneby-wordmark {\n    font-size: 63px;\n  }\n\n  .oneby-front  { transform: translateZ(105px); }\n  .oneby-back   { transform: rotateY(180deg) translateZ(105px); }\n  .oneby-right  { transform: rotateY(90deg) translateZ(105px); }\n  .oneby-left   { transform: rotateY(-90deg) translateZ(105px); }\n  .oneby-top    { transform: rotateX(90deg) translateZ(105px); }\n  .oneby-bottom { transform: rotateX(-90deg) translateZ(105px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  #oneby-cube {\n    transition: none !important;\n  }\n}\n<\/style>\n\n<div id=\"oneby-cube-wrap\" aria-label=\"ONEBY cube\">\n  <div class=\"oneby-scene\">\n    <div id=\"oneby-cube\">\n\n      <div class=\"oneby-face oneby-front\">\n        <div class=\"oneby-wordmark\"><span>one<\/span><span>by<\/span><\/div>\n      <\/div>\n\n      <div class=\"oneby-face oneby-back\">\n        <div class=\"oneby-wordmark\"><span>one<\/span><span>by<\/span><\/div>\n      <\/div>\n\n      <div class=\"oneby-face oneby-right\">\n        <div class=\"oneby-wordmark\"><span>one<\/span><span>by<\/span><\/div>\n      <\/div>\n\n      <div class=\"oneby-face oneby-left\">\n        <div class=\"oneby-wordmark\"><span>one<\/span><span>by<\/span><\/div>\n      <\/div>\n\n      <div class=\"oneby-face oneby-top\">\n        <div class=\"oneby-wordmark\"><span>one<\/span><span>by<\/span><\/div>\n      <\/div>\n\n      <div class=\"oneby-face oneby-bottom\">\n        <div class=\"oneby-wordmark\"><span>one<\/span><span>by<\/span><\/div>\n      <\/div>\n\n    <\/div>\n  <\/div>\n<\/div>\n\n<script>\n(function () {\n  const wrap = document.getElementById('oneby-cube-wrap');\n  const cube = document.getElementById('oneby-cube');\n  if (!wrap || !cube) return;\n\n  \/* On commence parfaitement align\u00e9 sur la face avant *\/\n  let rotX = 0;\n  let rotY = 0;\n\n  let isDown = false;\n  let lastX = 0;\n  let lastY = 0;\n  let velocityX = 0;\n  let velocityY = 0;\n  let raf = null;\n\n  function render() {\n    cube.style.transform = `rotateX(${rotX}deg) rotateY(${rotY}deg)`;\n  }\n\n  function stopInertia() {\n    if (raf) {\n      cancelAnimationFrame(raf);\n      raf = null;\n    }\n  }\n\n  wrap.addEventListener('pointerdown', function (e) {\n    if (e.button !== 0 && e.pointerType !== 'touch') return;\n\n    isDown = true;\n    lastX = e.clientX;\n    lastY = e.clientY;\n    velocityX = 0;\n    velocityY = 0;\n\n    stopInertia();\n    wrap.setPointerCapture?.(e.pointerId);\n  });\n\n  wrap.addEventListener('pointermove', function (e) {\n    if (!isDown) return;\n\n    const dx = e.clientX - lastX;\n    const dy = e.clientY - lastY;\n\n    rotY += dx * 0.45;\n    rotX -= dy * 0.45;\n\n    velocityY = dx * 0.45;\n    velocityX = -dy * 0.45;\n\n    lastX = e.clientX;\n    lastY = e.clientY;\n\n    render();\n  });\n\n  function release() {\n    if (!isDown) return;\n    isDown = false;\n\n    let vx = velocityX;\n    let vy = velocityY;\n\n    function inertia() {\n      vx *= 0.94;\n      vy *= 0.94;\n\n      if (Math.abs(vx) + Math.abs(vy) < 0.05) {\n        raf = null;\n        return;\n      }\n\n      rotX += vx;\n      rotY += vy;\n      render();\n\n      raf = requestAnimationFrame(inertia);\n    }\n\n    raf = requestAnimationFrame(inertia);\n  }\n\n  wrap.addEventListener('pointerup', release);\n  wrap.addEventListener('pointercancel', release);\n  wrap.addEventListener('pointerleave', release);\n\n  render();\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>oneby oneby oneby oneby oneby oneby<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"oneby","meta":{"footnotes":""},"class_list":["post-21","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/pages\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":3,"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/pages\/21\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/pages\/21\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/www.oneby.com\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}