Fix partner logo asset loading
Browse files- src/app/page.module.css +3 -0
- src/app/signup-panel.tsx +20 -13
src/app/page.module.css
CHANGED
|
@@ -52,6 +52,7 @@
|
|
| 52 |
.openaiWordmark {
|
| 53 |
width: min(198px, 100%);
|
| 54 |
height: auto;
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
.hfPirateLogo {
|
|
@@ -63,11 +64,13 @@
|
|
| 63 |
.gpuModeLogo {
|
| 64 |
width: min(168px, 100%);
|
| 65 |
height: auto;
|
|
|
|
| 66 |
}
|
| 67 |
|
| 68 |
.executorchLogo {
|
| 69 |
width: min(72px, 100%);
|
| 70 |
height: auto;
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
.title {
|
|
|
|
| 52 |
.openaiWordmark {
|
| 53 |
width: min(198px, 100%);
|
| 54 |
height: auto;
|
| 55 |
+
display: block;
|
| 56 |
}
|
| 57 |
|
| 58 |
.hfPirateLogo {
|
|
|
|
| 64 |
.gpuModeLogo {
|
| 65 |
width: min(168px, 100%);
|
| 66 |
height: auto;
|
| 67 |
+
display: block;
|
| 68 |
}
|
| 69 |
|
| 70 |
.executorchLogo {
|
| 71 |
width: min(72px, 100%);
|
| 72 |
height: auto;
|
| 73 |
+
display: block;
|
| 74 |
}
|
| 75 |
|
| 76 |
.title {
|
src/app/signup-panel.tsx
CHANGED
|
@@ -19,6 +19,11 @@ interface StatusState {
|
|
| 19 |
|
| 20 |
const HACKATHON_SIGNUP_URL =
|
| 21 |
"https://huggingface.co/organizations/humanitys-last-hackathon/share/ItCCmUCGldPpHioCeqQcymUPTDXuwEepwV";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
function getQueryStatus(params: URLSearchParams, session: SignupSession | null): StatusState | null {
|
| 24 |
const error = params.get("error");
|
|
@@ -127,49 +132,51 @@ export default function SignupPanel({ session }: SignupPanelProps) {
|
|
| 127 |
<div className={styles.partnerGrid}>
|
| 128 |
<div className={styles.partnerCard}>
|
| 129 |
<div className={styles.partnerMarkSurface}>
|
| 130 |
-
|
|
|
|
| 131 |
alt="OpenAI white wordmark"
|
| 132 |
className={styles.openaiWordmark}
|
| 133 |
height={719}
|
| 134 |
-
|
| 135 |
-
src="/brand/openai-white-wordmark.svg"
|
| 136 |
-
unoptimized
|
| 137 |
width={1604}
|
| 138 |
/>
|
| 139 |
</div>
|
| 140 |
</div>
|
| 141 |
<div className={styles.partnerCard}>
|
| 142 |
<div className={styles.partnerMarkSurface}>
|
| 143 |
-
|
|
|
|
| 144 |
alt="Hugging Face pirate logo"
|
| 145 |
className={styles.hfPirateLogo}
|
| 146 |
height={463}
|
| 147 |
-
|
| 148 |
-
|
| 149 |
width={500}
|
| 150 |
/>
|
| 151 |
</div>
|
| 152 |
</div>
|
| 153 |
<div className={styles.partnerCard}>
|
| 154 |
<div className={styles.partnerMarkSurface}>
|
| 155 |
-
|
|
|
|
| 156 |
alt="GPU Mode white logo"
|
| 157 |
className={styles.gpuModeLogo}
|
| 158 |
height={1700}
|
| 159 |
-
|
| 160 |
-
|
| 161 |
width={3141}
|
| 162 |
/>
|
| 163 |
</div>
|
| 164 |
</div>
|
| 165 |
<div className={styles.partnerCard}>
|
| 166 |
<div className={styles.partnerMarkSurface}>
|
| 167 |
-
|
|
|
|
| 168 |
alt="ExecuTorch chip logo"
|
| 169 |
className={styles.executorchLogo}
|
| 170 |
height={170}
|
| 171 |
-
|
| 172 |
-
|
| 173 |
width={170}
|
| 174 |
/>
|
| 175 |
</div>
|
|
|
|
| 19 |
|
| 20 |
const HACKATHON_SIGNUP_URL =
|
| 21 |
"https://huggingface.co/organizations/humanitys-last-hackathon/share/ItCCmUCGldPpHioCeqQcymUPTDXuwEepwV";
|
| 22 |
+
const BRAND_ASSET_VERSION = "20260427-1";
|
| 23 |
+
|
| 24 |
+
function brandAsset(path: string) {
|
| 25 |
+
return `${path}?v=${BRAND_ASSET_VERSION}`;
|
| 26 |
+
}
|
| 27 |
|
| 28 |
function getQueryStatus(params: URLSearchParams, session: SignupSession | null): StatusState | null {
|
| 29 |
const error = params.get("error");
|
|
|
|
| 132 |
<div className={styles.partnerGrid}>
|
| 133 |
<div className={styles.partnerCard}>
|
| 134 |
<div className={styles.partnerMarkSurface}>
|
| 135 |
+
{/* eslint-disable-next-line @next/next/no-img-element */}
|
| 136 |
+
<img
|
| 137 |
alt="OpenAI white wordmark"
|
| 138 |
className={styles.openaiWordmark}
|
| 139 |
height={719}
|
| 140 |
+
src={brandAsset("/brand/openai-white-wordmark.svg")}
|
|
|
|
|
|
|
| 141 |
width={1604}
|
| 142 |
/>
|
| 143 |
</div>
|
| 144 |
</div>
|
| 145 |
<div className={styles.partnerCard}>
|
| 146 |
<div className={styles.partnerMarkSurface}>
|
| 147 |
+
{/* eslint-disable-next-line @next/next/no-img-element */}
|
| 148 |
+
<img
|
| 149 |
alt="Hugging Face pirate logo"
|
| 150 |
className={styles.hfPirateLogo}
|
| 151 |
height={463}
|
| 152 |
+
loading="lazy"
|
| 153 |
+
src={brandAsset("/brand/hugging-face-logo-pirate.svg")}
|
| 154 |
width={500}
|
| 155 |
/>
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
<div className={styles.partnerCard}>
|
| 159 |
<div className={styles.partnerMarkSurface}>
|
| 160 |
+
{/* eslint-disable-next-line @next/next/no-img-element */}
|
| 161 |
+
<img
|
| 162 |
alt="GPU Mode white logo"
|
| 163 |
className={styles.gpuModeLogo}
|
| 164 |
height={1700}
|
| 165 |
+
loading="lazy"
|
| 166 |
+
src={brandAsset("/brand/gpu-mode-white-cropped.svg")}
|
| 167 |
width={3141}
|
| 168 |
/>
|
| 169 |
</div>
|
| 170 |
</div>
|
| 171 |
<div className={styles.partnerCard}>
|
| 172 |
<div className={styles.partnerMarkSurface}>
|
| 173 |
+
{/* eslint-disable-next-line @next/next/no-img-element */}
|
| 174 |
+
<img
|
| 175 |
alt="ExecuTorch chip logo"
|
| 176 |
className={styles.executorchLogo}
|
| 177 |
height={170}
|
| 178 |
+
loading="lazy"
|
| 179 |
+
src={brandAsset("/brand/executorch-chip-logo.svg")}
|
| 180 |
width={170}
|
| 181 |
/>
|
| 182 |
</div>
|