diff --git a/home.html b/home.html index 06984516..29befc30 100644 --- a/home.html +++ b/home.html @@ -28,15 +28,19 @@ .hero form button { padding: 13px 20px; border-radius: 999px; border: none; background: var(--blue); color: #fff; font-size: 15px; cursor: pointer; } .hero .hint { color: var(--dim); font-size: 12.5px; margin-top: .8rem; } - /* Two-column desktop under the hero: narrow LEFT column of stackable icon - slots, wider RIGHT column with a 3-column grid of Silent Mode cards. */ - .homepage { display: grid; grid-template-columns: minmax(96px, 110px) minmax(380px, 1fr); - gap: 36px; max-width: 1180px; margin: 2.4rem auto 0; padding: 0 32px 48px; align-items: start; } - @media (max-width: 760px) { .homepage { grid-template-columns: 1fr; gap: 20px; padding: 0 14px 32px; } } + /* Two-column desktop under the hero: wide LEFT area for a 3-column grid + of icon slots, wider RIGHT area with a 3-column grid of Silent Mode + cards. Both expand together on wider screens. */ + .homepage { display: grid; grid-template-columns: minmax(300px, 340px) minmax(380px, 1fr); + gap: 36px; max-width: 1400px; margin: 2.4rem auto 0; padding: 0 32px 48px; align-items: start; } + @media (max-width: 900px) { .homepage { grid-template-columns: 1fr; gap: 20px; padding: 0 14px 32px; } } - /* LEFT COLUMN — vertical stack of slots + an "add" button underneath */ - .left-column { display: flex; flex-direction: column; align-items: center; gap: 14px; } - .slots-list { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; } + /* LEFT AREA — 3-column grid of slots, with the "add" button flowing in + the grid alongside them. Icons fill left-to-right, top-to-bottom; the + container is wide enough that a few icons still read as a tidy row. */ + .left-column { display: flex; flex-direction: column; gap: 14px; } + .slots-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; } + @media (max-width: 900px) { .slots-list { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); } } .slot { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; user-select: none; text-decoration: none; color: inherit; @@ -58,18 +62,21 @@ .slot.size-large .tile { width: 88px; height: 88px; font-size: 34px; border-radius: 18px; } .slot.size-small .label { font-size: 10.5px; max-width: 72px; } .slot.dragging { opacity: .6; } - .slot.drag-above::before, .slot.drag-below::after { - content: ""; position: absolute; left: 50%; transform: translateX(-50%); - width: 60%; height: 2px; background: var(--acid); border-radius: 2px; - box-shadow: 0 0 8px var(--acid); + .slot.drag-before::before, .slot.drag-after::after { + content: ""; position: absolute; top: 10%; bottom: 10%; width: 3px; + background: var(--acid); border-radius: 2px; box-shadow: 0 0 8px var(--acid); } - .slot.drag-above::before { top: -8px; } - .slot.drag-below::after { bottom: -8px; } + .slot.drag-before::before { left: -8px; } + .slot.drag-after::after { right: -8px; } + /* Slot-add sits in the grid alongside the slot icons so it's always on + the next free cell, not pinned under the whole column. */ .slot-add { display: flex; align-items: center; justify-content: center; - width: 56px; height: 56px; border-radius: 12px; border: 2px dashed var(--line2); + min-height: 72px; border-radius: 12px; border: 2px dashed var(--line2); background: transparent; color: var(--mut); font-size: 22px; cursor: pointer; - transition: color .12s, border-color .12s, background .12s; } + transition: color .12s, border-color .12s, background .12s; + margin-top: 15px; /* visually below the label of the icon above */ } + .slots-list .slot-add { margin-top: 0; } /* in-grid, no extra top gap */ .slot-add:hover { color: var(--acid); border-color: var(--acid); background: rgb(from var(--acid) r g b / .04); } /* RIGHT COLUMN — just the 3-column grid of Silent Mode cards; search @@ -190,7 +197,6 @@