Skip to content

Commit 982c135

Browse files
fix CSS styling and add source code link to React sample
1 parent 7558d8f commit 982c135

File tree

4 files changed

+44
-14
lines changed

4 files changed

+44
-14
lines changed

web-integrations/javascript-sdk/client-server/public/stylesheets/app.css

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@ a:hover {
200200
margin-top: 2rem;
201201
}
202202

203-
.form-inline {
203+
.form.top-form {
204+
margin-top: 0;
205+
margin-bottom: 2rem;
206+
}
207+
208+
.email_prompt {
204209
display: flex;
205210
gap: 0;
206211
max-width: 600px;
@@ -209,7 +214,7 @@ a:hover {
209214
overflow: hidden;
210215
}
211216

212-
.email-input {
217+
#email {
213218
flex: 1;
214219
padding: 0.875rem 1.25rem;
215220
border: 2px solid var(--border-color);
@@ -220,11 +225,11 @@ a:hover {
220225
transition: border-color 0.2s ease;
221226
}
222227

223-
.email-input:focus {
228+
#email:focus {
224229
border-color: var(--primary-orange);
225230
}
226231

227-
.email-input::placeholder {
232+
#email::placeholder {
228233
color: var(--text-gray);
229234
}
230235

@@ -260,6 +265,11 @@ a:hover {
260265
border-radius: 8px;
261266
}
262267

268+
/* Rounded corners for login button in form */
269+
#login_form .button {
270+
border-radius: 0 8px 8px 0;
271+
}
272+
263273
/* Tooltip Styles - Matching Self-Serve Portal */
264274
.tooltip-wrapper {
265275
display: inline-flex;
@@ -353,11 +363,11 @@ a:hover {
353363
padding: 1.5rem;
354364
}
355365

356-
.form-inline {
366+
.email_prompt {
357367
flex-direction: column;
358368
}
359369

360-
.email-input {
370+
#email {
361371
border-right: 2px solid var(--border-color);
362372
border-bottom: none;
363373
}

web-integrations/javascript-sdk/react-client-side/src/ClientSideApp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const ClientSideApp = () => {
110110
This example demonstrates how a content publisher can integrate {IDENTITY_NAME} using client-side token generation with React, where the SDK generates tokens directly in the browser using public credentials. For documentation, see the{' '}
111111
<a href={`${DOCS_BASE_URL}/guides/integration-javascript-client-side`}>
112112
Client-Side Integration Guide for JavaScript
113-
</a>.
113+
</a>. [<a href="https://github.com/IABTechLab/uid2-examples/tree/main/web-integrations/javascript-sdk/react-client-side">Source Code</a>]
114114
</p>
115115

116116
{/* Generate/Clear buttons at the top for easy access */}

web-integrations/javascript-sdk/react-client-side/src/styles/app.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ a:hover {
213213
margin-top: 2rem;
214214
}
215215

216+
.form.top-form {
217+
margin-top: 0;
218+
margin-bottom: 2rem;
219+
}
220+
216221
.email_prompt {
217222
display: flex;
218223
gap: 0;
@@ -272,6 +277,11 @@ a:hover {
272277
border-radius: 8px;
273278
}
274279

280+
/* Rounded corners for login button in form */
281+
#login_form .button {
282+
border-radius: 0 8px 8px 0;
283+
}
284+
275285
/* Success Message */
276286
.message {
277287
background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);

web-integrations/server-side/public/stylesheets/app.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,12 @@ a:hover {
207207
margin-top: 2rem;
208208
}
209209

210-
.form-inline {
210+
.form.top-form {
211+
margin-top: 0;
212+
margin-bottom: 2rem;
213+
}
214+
215+
.email_prompt {
211216
display: flex;
212217
gap: 0;
213218
max-width: 600px;
@@ -216,7 +221,7 @@ a:hover {
216221
overflow: hidden;
217222
}
218223

219-
.email-input {
224+
#email {
220225
flex: 1;
221226
padding: 0.875rem 1.25rem;
222227
border: 2px solid var(--border-color);
@@ -227,11 +232,11 @@ a:hover {
227232
transition: border-color 0.2s ease;
228233
}
229234

230-
.email-input:focus {
235+
#email:focus {
231236
border-color: var(--primary-orange);
232237
}
233238

234-
.email-input::placeholder {
239+
#email::placeholder {
235240
color: var(--text-gray);
236241
}
237242

@@ -267,6 +272,11 @@ a:hover {
267272
border-radius: 8px;
268273
}
269274

275+
/* Rounded corners for login button in form */
276+
#login_form .button {
277+
border-radius: 0 8px 8px 0;
278+
}
279+
270280
/* Tooltip Styles - Matching Self-Serve Portal */
271281
.tooltip-wrapper {
272282
display: inline-flex;
@@ -345,7 +355,7 @@ a:hover {
345355
@media (max-width: 1024px) {
346356
.page-wrapper {
347357
flex-direction: column;
348-
}
358+
}
349359

350360
.sidebar {
351361
position: static;
@@ -360,11 +370,11 @@ a:hover {
360370
padding: 1.5rem;
361371
}
362372

363-
.form-inline {
373+
.email_prompt {
364374
flex-direction: column;
365375
}
366376

367-
.email-input {
377+
#email {
368378
border-right: 2px solid var(--border-color);
369379
border-bottom: none;
370380
}

0 commit comments

Comments
 (0)