Skip to content

Commit

Permalink
welcome screen small styling fixes & footer styling (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoF authored Oct 14, 2024
2 parents 983895d + 7202b56 commit 07b0ae6
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 37 deletions.
35 changes: 35 additions & 0 deletions spirekey/src/app/(wallet)/(center)/welcome/page.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { style } from "@kadena/kode-ui";
import { responsiveStyle, tokens } from "@kadena/kode-ui/styles";

export const bodyTextContainer = style({
...responsiveStyle({
md: {
minHeight: 200,
}
}),
});

export const title = style({
color: tokens.kda.foundation.color.text.base["@init"] + '!important',
});

export const ul = style({
paddingInlineStart: tokens.kda.foundation.spacing.lg,
});

export const li = style({
marginBottom: tokens.kda.foundation.spacing.sm,
});

export const dd = style({
lineHeight: tokens.kda.foundation.typography.lineHeight.md,
});

export const iconClass = style({
color: tokens.kda.foundation.color.icon.base["@disabled"],
':hover': {
color: tokens.kda.foundation.color.icon.base["@init"],
},
});

export const wrapperClass = style({});
92 changes: 57 additions & 35 deletions spirekey/src/app/(wallet)/(center)/welcome/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from '@kadena/kode-ui';
import { CardFixedContainer } from '@kadena/kode-ui/patterns';
import Image from 'next/image';
import { bodyTextContainer, dd, iconClass, li, title, ul, wrapperClass } from './page.css';

const textLinkStyle = {
padding: 0,
Expand All @@ -23,8 +24,8 @@ export default function Home() {
return (
<Stack
flexDirection="column"
className={wrapperClass}
justifyContent="center"
style={{ height: '100' }}
flex={1}
>
<CardFixedContainer>
Expand All @@ -40,48 +41,56 @@ export default function Home() {
<Grid columns={{ xs: 1, md: 2 }} gap="xxxl">
<GridItem>
<Stack gap="md" flexDirection="column" height="100%">
<Heading variant="h5">Developers</Heading>
<Text as="p">
Kadena SpireKey leverages WebAuthn standards to deliver a
secure backend, enabling end users to generate and store
keypairs directly on their hardware devices. Start
integrating SpireKey into your application with the SpireKey
SDK, or explore the technical documentation outlined in the
KIPs.
</Text>
<Heading variant="h6">
Resources{' '}
<Heading className={title} variant="h5">
Developers
</Heading>
<Stack gap='n2' flexDirection='column' className={bodyTextContainer}>
<Text as="p">
Kadena SpireKey leverages WebAuthn standards to deliver a
secure backend, enabling end users to generate and store
keypairs directly on their hardware devices.
</Text>
<Text as="p">
Start integrating SpireKey into your application with the SpireKey
SDK, or explore the technical documentation outlined in the
KIPs.
</Text>
</Stack>
<Heading className={title} variant="h6">
<Text color='emphasize'>Resources</Text>{' '}
<MonoLaunch
fontSize={14}
style={{ display: 'inline', verticalAlign: 'middle' }}
title="External Resource Links"
className={iconClass}
/>
</Heading>
<ul>
<li>
<ul className={ul}>
<li className={li}>
<TextLink
style={textLinkStyle}
href="https://www.npmjs.com/package/@kadena/spirekey-sdk"
>
SpireKey SDK
</TextLink>
</li>
<li>
<li className={li}>
<TextLink
style={textLinkStyle}
href="https://github.com/kadena-io/KIPs/pull/52/files?short_path=2bff507#diff-2bff5073da0885a117721a440a64c8e1da4add449227f697827ab053efc5c824"
>
KIP-0023
</TextLink>
</li>
<li>
<li className={li}>
<TextLink
style={textLinkStyle}
href="https://github.com/kadena-io/KIPs/pull/59/files?short_path=fde4d08#diff-fde4d08845090220a9283cea68e55c61b4d408fe9b18226f619f0669819a7297"
>
KIP-0030
</TextLink>
</li>
<li>
<li className={li}>
<TextLink
style={textLinkStyle}
href="https://discord.gg/kadena"
Expand Down Expand Up @@ -113,22 +122,31 @@ export default function Home() {
height="100%"
marginBlockStart={{ xs: 'md', md: 'n0' }}
>
<Heading variant="h5">Users</Heading>
<Text as="p">
Kadena SpireKey provides a more secure and convenient way to
access account information, connect to applications, and
sign transactions. All you need is your personal device to
scan, touch, and go!
</Text>
<Heading variant="h6">
Resources{' '}
<Heading className={title} variant="h5">
Users
</Heading>
<Stack gap='n2' flexDirection='column' className={bodyTextContainer}>
<Text as="p">
Kadena SpireKey provides a more secure and convenient way to
access account information, connect to applications, and
sign transactions.
</Text>
<Text as="p">
All you need is your personal device to
scan, touch, and go!
</Text>
</Stack>
<Heading className={title} variant="h6">
<Text color='emphasize'>Resources</Text>{' '}
<MonoLaunch
fontSize={14}
style={{ display: 'inline', verticalAlign: 'middle' }}
title="External Resource Links"
className={iconClass}
/>
</Heading>
<ul>
<li>
<ul className={ul}>
<li className={li}>
<dl>
<dt>
<TextLink
Expand All @@ -138,13 +156,15 @@ export default function Home() {
SpireKey Info
</TextLink>
</dt>
<dd>
Experience SpireKey authentication showcased with
wallet functionality.
<dd className={dd}>
<Text as="span" size='small'>
Experience SpireKey authentication showcased with
wallet functionality.
</Text>
</dd>
</dl>
</li>
<li>
<li className={li}>
<dl>
<dt>
<TextLink
Expand All @@ -154,12 +174,14 @@ export default function Home() {
Proof of Attendance
</TextLink>
</dt>
<dd>
Mint your own NFT using SpireKey authentication.
<dd className={dd}>
<Text as="span" size='small'>
Mint your own NFT using SpireKey authentication.
</Text>
</dd>
</dl>
</li>
<li>
<li className={li}>
<TextLink
style={textLinkStyle}
href="https://discord.gg/kadena"
Expand Down
1 change: 0 additions & 1 deletion spirekey/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const Footer: FC = () => {
gap="md"
justifyContent="flex-end"
width="100%"
marginBlock="xxl"
className={footerClass}
>
<TextLink
Expand Down
4 changes: 3 additions & 1 deletion spirekey/src/components/Footer/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { globalStyle } from '@vanilla-extract/css';

export const footerClass = style({
paddingInline: token('spacing.md'),
marginBlockStart: token('spacing.sm'),
paddingInlineEnd: token('spacing.md'),
...responsiveStyle({
md: {
paddingInline: 0,
// paddingInline: 0,
},
}),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { mapVariantToIntent } from './utils';
export const NotificationContainer = () => {
const { notifications } = useNotifications();

if (notifications.length === 0) {
return null
}

return (
<div className={styles.wrapper}>
<AnimatePresence>
Expand Down

0 comments on commit 07b0ae6

Please sign in to comment.