Skip to content

Commit 94b82bf

Browse files
devin-ai-integration[bot]enesozturkarein
authored
feat(ui): APKT-2592 make wui-ux-by-reown clickable (#4198)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Derek <[email protected]>
1 parent 6404dc4 commit 94b82bf

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

packages/ui/src/composites/wui-ux-by-reown/index.ts

+12-9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { LitElement, html } from 'lit'
33
import '../../components/wui-icon/index.js'
44
import '../../components/wui-text/index.js'
55
import '../../layout/wui-flex/index.js'
6+
import { REOWN_URL } from '../../utils/ConstantsUtil.js'
67
import { elementStyles, resetStyles } from '../../utils/ThemeUtil.js'
78
import { customElement } from '../../utils/WebComponentsUtil.js'
89
import styles from './styles.js'
@@ -14,15 +15,17 @@ export class WuiUxByReown extends LitElement {
1415
// -- Render -------------------------------------------- //
1516
public override render() {
1617
return html`
17-
<wui-flex
18-
justifyContent="center"
19-
alignItems="center"
20-
gap="xs"
21-
.padding=${['0', '0', 'l', '0']}
22-
>
23-
<wui-text variant="small-500" color="fg-100"> UX by </wui-text>
24-
<wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>
25-
</wui-flex>
18+
<a href=${REOWN_URL} rel="noreferrer" target="_blank" style="text-decoration: none;">
19+
<wui-flex
20+
justifyContent="center"
21+
alignItems="center"
22+
gap="xs"
23+
.padding=${['0', '0', 'l', '0']}
24+
>
25+
<wui-text variant="small-500" color="fg-100"> UX by </wui-text>
26+
<wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>
27+
</wui-flex>
28+
</a>
2629
`
2730
}
2831
}

packages/ui/src/composites/wui-ux-by-reown/styles.ts

+9
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@ export default css`
44
.reown-logo {
55
height: var(--wui-spacing-xxl);
66
}
7+
8+
a {
9+
text-decoration: none;
10+
cursor: pointer;
11+
}
12+
13+
a:hover {
14+
opacity: 0.9;
15+
}
716
`
+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export const specialCharactersRegex = /[.*+?^${}()|[\]\\]/gu
22
export const numbersRegex = /[0-9,.]/u
3+
export const REOWN_URL = 'https://reown.com'

0 commit comments

Comments
 (0)