chadstthomas commited on
Commit
cd03dba
路
verified 路
1 Parent(s): e17c1e9

Fit live search results within the group page

Browse files
Files changed (3) hide show
  1. group.css +21 -21
  2. group.js +9 -0
  3. index.html +1 -0
group.css CHANGED
@@ -1,21 +1,21 @@
1
- .rack-header .brand img {border-radius:50%}
2
- .rack-header nav {display:flex;justify-content:flex-end;gap:8px 20px;flex-wrap:wrap}
3
- .lineup h1 {font-size:clamp(46px,8vw,105px);letter-spacing:-.075em;line-height:.96;margin:25px 0 10px}
4
- .lineup p,.launch p {color:var(--muted);line-height:1.55}
5
- .lineup img {display:block;width:100%;height:auto;border-radius:20px}
6
- .launch {margin-top:30px;border:1px solid #4e6052;border-radius:19px;background:#221b26;overflow:hidden}
7
- .launch-copy {display:flex;justify-content:space-between;align-items:end;gap:14px 25px;flex-wrap:wrap;padding:clamp(16px,3vw,28px) 24px 15px}
8
- .launch-copy h2,.model-roster h2 {font-size:clamp(27px,4vw,46px);letter-spacing:-.05em;margin:0}
9
- .launch p {max-width:59ch;margin:5px 0}
10
- .launch .label {color:var(--mint);font-weight:700}
11
- .actions {display:flex;gap:10px 17px;flex-wrap:wrap}
12
- .actions a,.model-roster a {color:var(--mint);text-decoration:underline;text-underline-offset:4px}
13
- .launch iframe {display:block;width:100%;min-height:575px;border:0}
14
- .model-roster {margin:26px 0 20px}
15
- .model-roster>div {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px}
16
- .model-roster article {background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px}
17
- .model-roster h3 {margin:0;display:flex;align-items:center;gap:6px}
18
- .model-roster h3 span {display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;font-size:11px;color:#14271c;background:var(--mint)}
19
- .model-roster p {color:var(--muted)}
20
- .rack-footer {padding:16px 0 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted)}
21
- @media(max-width:720px){.rack-header .brand{white-space:nowrap}.rack-header nav{gap:6px 10px}.launch iframe{min-height:805px}}
 
1
+ .rack-header .brand img {border-radius:50%}
2
+ .rack-header nav {display:flex;justify-content:flex-end;gap:8px 20px;flex-wrap:wrap}
3
+ .lineup h1 {font-size:clamp(46px,8vw,105px);letter-spacing:-.075em;line-height:.96;margin:25px 0 10px}
4
+ .lineup p,.launch p {color:var(--muted);line-height:1.55}
5
+ .lineup img {display:block;width:100%;height:auto;border-radius:20px}
6
+ .launch {margin-top:30px;border:1px solid #4e6052;border-radius:19px;background:#221b26;overflow:hidden}
7
+ .launch-copy {display:flex;justify-content:space-between;align-items:end;gap:14px 25px;flex-wrap:wrap;padding:clamp(16px,3vw,28px) 24px 15px}
8
+ .launch-copy h2,.model-roster h2 {font-size:clamp(27px,4vw,46px);letter-spacing:-.05em;margin:0}
9
+ .launch p {max-width:59ch;margin:5px 0}
10
+ .launch .label {color:var(--mint);font-weight:700}
11
+ .actions {display:flex;gap:10px 17px;flex-wrap:wrap}
12
+ .actions a,.model-roster a {color:var(--mint);text-decoration:underline;text-underline-offset:4px}
13
+ .launch iframe {display:block;width:100%;height:575px;border:0}
14
+ .model-roster {margin:26px 0 20px}
15
+ .model-roster>div {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px}
16
+ .model-roster article {background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px}
17
+ .model-roster h3 {margin:0;display:flex;align-items:center;gap:6px}
18
+ .model-roster h3 span {display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;font-size:11px;color:#14271c;background:var(--mint)}
19
+ .model-roster p {color:var(--muted)}
20
+ .rack-footer {padding:16px 0 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted)}
21
+ @media(max-width:720px){.rack-header .brand{white-space:nowrap}.rack-header nav{gap:6px 10px}.launch iframe{height:805px}}
group.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ (() => {
2
+ const demo = document.querySelector(".launch iframe");
3
+ const origin = new URL(demo.src).origin;
4
+ window.addEventListener("message", (event) => {
5
+ if (event.origin !== origin || event.source !== demo.contentWindow ||
6
+ event.data?.type !== "racklab:bankshot-height" || !Number.isFinite(event.data.height)) return;
7
+ demo.style.height = Math.min(1800, Math.max(350, event.data.height)) + "px";
8
+ });
9
+ })();
index.html CHANGED
@@ -7,6 +7,7 @@
7
  <title>The Break Room 路 Rack Lab</title>
8
  <link rel="stylesheet" href="./style.css">
9
  <link rel="stylesheet" href="./group.css">
 
10
  </head>
11
  <body>
12
  <header class="wrap masthead rack-header">
 
7
  <title>The Break Room 路 Rack Lab</title>
8
  <link rel="stylesheet" href="./style.css">
9
  <link rel="stylesheet" href="./group.css">
10
+ <script defer src="./group.js"></script>
11
  </head>
12
  <body>
13
  <header class="wrap masthead rack-header">