@sei-js/create-sei 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +16 -25
  3. package/biome.json +8 -0
  4. package/dist/main.js +12 -11
  5. package/dist/templates/next-cosmos-template/.eslintrc.json +1 -1
  6. package/dist/templates/next-cosmos-template/next.config.mjs +9 -9
  7. package/dist/templates/next-cosmos-template/package.json +29 -29
  8. package/dist/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +162 -171
  9. package/dist/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +92 -94
  10. package/dist/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +22 -49
  11. package/dist/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +11 -19
  12. package/dist/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +13 -17
  13. package/dist/templates/next-cosmos-template/src/app/components/index.ts +3 -3
  14. package/dist/templates/next-cosmos-template/src/app/constants/chain.ts +9 -9
  15. package/dist/templates/next-cosmos-template/src/app/constants/index.ts +1 -1
  16. package/dist/templates/next-cosmos-template/src/app/index.css +99 -86
  17. package/dist/templates/next-cosmos-template/src/app/layout.tsx +12 -12
  18. package/dist/templates/next-cosmos-template/src/app/page.tsx +13 -13
  19. package/dist/templates/next-cosmos-template/tsconfig.json +24 -24
  20. package/dist/templates/next-wagmi-template/.eslintrc.json +1 -1
  21. package/dist/templates/next-wagmi-template/package.json +28 -28
  22. package/dist/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +223 -237
  23. package/dist/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +92 -94
  24. package/dist/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +10 -36
  25. package/dist/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +29 -28
  26. package/dist/templates/next-wagmi-template/src/app/components/index.ts +2 -2
  27. package/dist/templates/next-wagmi-template/src/app/constants/chain.ts +2 -2
  28. package/dist/templates/next-wagmi-template/src/app/constants/index.ts +1 -1
  29. package/dist/templates/next-wagmi-template/src/app/index.css +99 -86
  30. package/dist/templates/next-wagmi-template/src/app/layout.tsx +12 -12
  31. package/dist/templates/next-wagmi-template/src/app/page.tsx +17 -17
  32. package/dist/templates/next-wagmi-template/tsconfig.json +24 -24
  33. package/dist/templates/vite-cosmos-template/.eslintrc.cjs +10 -17
  34. package/dist/templates/vite-cosmos-template/package.json +33 -33
  35. package/dist/templates/vite-cosmos-template/src/App.tsx +11 -12
  36. package/dist/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +162 -171
  37. package/dist/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +92 -94
  38. package/dist/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +20 -45
  39. package/dist/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +11 -19
  40. package/dist/templates/vite-cosmos-template/src/components/Web3Provider.tsx +14 -18
  41. package/dist/templates/vite-cosmos-template/src/components/index.ts +4 -4
  42. package/dist/templates/vite-cosmos-template/src/constants/chain.ts +9 -9
  43. package/dist/templates/vite-cosmos-template/src/constants/index.ts +1 -1
  44. package/dist/templates/vite-cosmos-template/src/index.css +99 -86
  45. package/dist/templates/vite-cosmos-template/src/main.tsx +10 -10
  46. package/dist/templates/vite-cosmos-template/tsconfig.app.json +21 -23
  47. package/dist/templates/vite-cosmos-template/tsconfig.json +9 -9
  48. package/dist/templates/vite-cosmos-template/tsconfig.node.json +11 -11
  49. package/dist/templates/vite-cosmos-template/vite.config.ts +4 -4
  50. package/dist/templates/vite-wagmi-template/.eslintrc.cjs +10 -17
  51. package/dist/templates/vite-wagmi-template/package.json +31 -31
  52. package/dist/templates/vite-wagmi-template/src/App.tsx +12 -13
  53. package/dist/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +225 -239
  54. package/dist/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +92 -94
  55. package/dist/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +28 -53
  56. package/dist/templates/vite-wagmi-template/src/components/Web3Provider.tsx +29 -28
  57. package/dist/templates/vite-wagmi-template/src/constants/chain.ts +1 -1
  58. package/dist/templates/vite-wagmi-template/src/constants/index.ts +1 -1
  59. package/dist/templates/vite-wagmi-template/src/index.css +98 -85
  60. package/dist/templates/vite-wagmi-template/src/main.tsx +10 -10
  61. package/dist/templates/vite-wagmi-template/tsconfig.app.json +21 -23
  62. package/dist/templates/vite-wagmi-template/tsconfig.json +9 -9
  63. package/dist/templates/vite-wagmi-template/tsconfig.node.json +11 -11
  64. package/dist/templates/vite-wagmi-template/vite.config.ts +7 -7
  65. package/package.json +3 -2
  66. package/src/main.ts +31 -33
  67. package/templates/next-cosmos-template/.eslintrc.json +1 -1
  68. package/templates/next-cosmos-template/next.config.mjs +9 -9
  69. package/templates/next-cosmos-template/package.json +29 -29
  70. package/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +162 -171
  71. package/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +92 -94
  72. package/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +22 -49
  73. package/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +11 -19
  74. package/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +13 -17
  75. package/templates/next-cosmos-template/src/app/components/index.ts +3 -3
  76. package/templates/next-cosmos-template/src/app/constants/chain.ts +9 -9
  77. package/templates/next-cosmos-template/src/app/constants/index.ts +1 -1
  78. package/templates/next-cosmos-template/src/app/index.css +99 -86
  79. package/templates/next-cosmos-template/src/app/layout.tsx +12 -12
  80. package/templates/next-cosmos-template/src/app/page.tsx +13 -13
  81. package/templates/next-cosmos-template/tsconfig.json +24 -24
  82. package/templates/next-wagmi-template/.eslintrc.json +1 -1
  83. package/templates/next-wagmi-template/package.json +28 -28
  84. package/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +223 -237
  85. package/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +92 -94
  86. package/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +10 -36
  87. package/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +29 -28
  88. package/templates/next-wagmi-template/src/app/components/index.ts +2 -2
  89. package/templates/next-wagmi-template/src/app/constants/chain.ts +2 -2
  90. package/templates/next-wagmi-template/src/app/constants/index.ts +1 -1
  91. package/templates/next-wagmi-template/src/app/index.css +99 -86
  92. package/templates/next-wagmi-template/src/app/layout.tsx +12 -12
  93. package/templates/next-wagmi-template/src/app/page.tsx +17 -17
  94. package/templates/next-wagmi-template/tsconfig.json +24 -24
  95. package/templates/vite-cosmos-template/.eslintrc.cjs +10 -17
  96. package/templates/vite-cosmos-template/package.json +33 -33
  97. package/templates/vite-cosmos-template/src/App.tsx +11 -12
  98. package/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +162 -171
  99. package/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +92 -94
  100. package/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +20 -45
  101. package/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +11 -19
  102. package/templates/vite-cosmos-template/src/components/Web3Provider.tsx +14 -18
  103. package/templates/vite-cosmos-template/src/components/index.ts +4 -4
  104. package/templates/vite-cosmos-template/src/constants/chain.ts +9 -9
  105. package/templates/vite-cosmos-template/src/constants/index.ts +1 -1
  106. package/templates/vite-cosmos-template/src/index.css +99 -86
  107. package/templates/vite-cosmos-template/src/main.tsx +10 -10
  108. package/templates/vite-cosmos-template/tsconfig.app.json +21 -23
  109. package/templates/vite-cosmos-template/tsconfig.json +9 -9
  110. package/templates/vite-cosmos-template/tsconfig.node.json +11 -11
  111. package/templates/vite-cosmos-template/vite.config.ts +4 -4
  112. package/templates/vite-wagmi-template/.eslintrc.cjs +10 -17
  113. package/templates/vite-wagmi-template/package.json +31 -31
  114. package/templates/vite-wagmi-template/src/App.tsx +12 -13
  115. package/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +225 -239
  116. package/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +92 -94
  117. package/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +28 -53
  118. package/templates/vite-wagmi-template/src/components/Web3Provider.tsx +29 -28
  119. package/templates/vite-wagmi-template/src/constants/chain.ts +1 -1
  120. package/templates/vite-wagmi-template/src/constants/index.ts +1 -1
  121. package/templates/vite-wagmi-template/src/index.css +98 -85
  122. package/templates/vite-wagmi-template/src/main.tsx +10 -10
  123. package/templates/vite-wagmi-template/tsconfig.app.json +21 -23
  124. package/templates/vite-wagmi-template/tsconfig.json +9 -9
  125. package/templates/vite-wagmi-template/tsconfig.node.json +11 -11
  126. package/templates/vite-wagmi-template/vite.config.ts +7 -7
  127. package/tsconfig.json +24 -28
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import './Homepage.css'
3
+ import './Homepage.css';
4
4
  import Examples from './Examples';
5
5
  import { selectedChain } from '../../constants';
6
6
  import { WalletConnectButton } from '..';
@@ -15,13 +15,11 @@ const renderHelpItem = ({ title, description, link }: HelpItem) => (
15
15
  <div className="card secondary">
16
16
  <div className="card-header">
17
17
  <p className="card__title">
18
- <a href={link} target='_blank' rel='noopener noreferrer' className="external-link">
18
+ <a href={link} target="_blank" rel="noopener noreferrer" className="external-link">
19
19
  {title} {externalIcon}
20
20
  </a>
21
21
  </p>
22
- <small className="card__description">
23
- {description}
24
- </small>
22
+ <small className="card__description">{description}</small>
25
23
  </div>
26
24
  </div>
27
25
  );
@@ -35,7 +33,7 @@ const helpItems: HelpItem[] = [
35
33
  {
36
34
  title: 'CosmosKit',
37
35
  description: "Learn about CosmosKit and it's hooks for chain interaction.",
38
- link: 'https://docs.cosmology.zone/cosmos-kit/get-started'
36
+ link: 'https://hyperweb.io/stack/cosmos-kit'
39
37
  },
40
38
  {
41
39
  title: 'sei-js',
@@ -45,63 +43,38 @@ const helpItems: HelpItem[] = [
45
43
  ];
46
44
 
47
45
  const externalIcon = (
48
- <svg
49
- width="16"
50
- height="16"
51
- viewBox="0 0 16 16"
52
- fill="none"
53
- xmlns="http://www.w3.org/2000/svg"
54
- >
55
- <path
56
- d="M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333"
57
- stroke="#9F1239"
58
- strokeWidth="1.33333"
59
- strokeLinecap="round"
60
- strokeLinejoin="round"
61
- />
62
- <path
63
- d="M10 2H14V6"
64
- stroke="#9F1239"
65
- strokeWidth="1.33333"
66
- strokeLinecap="round"
67
- strokeLinejoin="round"
68
- />
69
- <path
70
- d="M6.66663 9.33333L14 2"
71
- stroke="#9F1239"
72
- strokeWidth="1.33333"
73
- strokeLinecap="round"
74
- strokeLinejoin="round"
75
- />
46
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
47
+ <path
48
+ d="M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333"
49
+ stroke="#9F1239"
50
+ strokeWidth="1.33333"
51
+ strokeLinecap="round"
52
+ strokeLinejoin="round"
53
+ />
54
+ <path d="M10 2H14V6" stroke="#9F1239" strokeWidth="1.33333" strokeLinecap="round" strokeLinejoin="round" />
55
+ <path d="M6.66663 9.33333L14 2" stroke="#9F1239" strokeWidth="1.33333" strokeLinecap="round" strokeLinejoin="round" />
76
56
  </svg>
77
- );
57
+ );
78
58
 
79
59
  export function Homepage() {
80
-
81
60
  return (
82
61
  <div className="container">
83
62
  <img src="sei-logotype.svg" className="logo" alt="SEI logotype" />
84
63
  <div className="card intro">
85
64
  <div className="card-header">
86
- <p className="card__title">Wallet address</p>
87
- <small className="card__description">
88
- Connect wallet to see your address and balance
89
- </small>
65
+ <p className="card__title">Wallet address</p>
66
+ <small className="card__description">Connect wallet to see your address and balance</small>
90
67
  </div>
91
- <WalletConnectButton/>
68
+ <WalletConnectButton />
92
69
  </div>
93
- <Examples chainId={selectedChain.chain_id}/>
70
+ <Examples chainId={selectedChain.chain_id} />
94
71
  <div className="get-started">
95
72
  Get started by editing <code>src/app/page.tsx</code>
96
73
  </div>
97
74
  <div className="grid docs">
98
- {
99
- helpItems.map((item, _) => (
100
- <div key={item.title}>
101
- {renderHelpItem(item)}
102
- </div>
103
- ))
104
- }
75
+ {helpItems.map((item, _) => (
76
+ <div key={item.title}>{renderHelpItem(item)}</div>
77
+ ))}
105
78
  </div>
106
79
  </div>
107
80
  );
@@ -1,26 +1,18 @@
1
- import { useChain } from "@cosmos-kit/react";
1
+ import { useChain } from '@cosmos-kit/react';
2
2
 
3
- import "@interchain-ui/react/styles";
3
+ import '@interchain-ui/react/styles';
4
4
 
5
- import { truncateSeiAddress } from "@sei-js/cosmjs";
6
- import { selectedChain } from "../../constants";
5
+ import { truncateSeiAddress } from '@sei-js/cosmjs';
6
+ import { selectedChain } from '../../constants';
7
7
 
8
8
  export function WalletConnectButton() {
9
- const {
10
- isWalletConnected,
11
- address,
12
- connect,
13
- openView,
14
- } = useChain(selectedChain.chain_name);
9
+ const { isWalletConnected, address, connect, openView } = useChain(selectedChain.chain_name);
15
10
 
16
- const truncatedSeiAddr = address ? truncateSeiAddress(address) : ""
11
+ const truncatedSeiAddr = address ? truncateSeiAddress(address) : '';
17
12
 
18
- return (
19
- <button
20
- className="primary"
21
- onClick={isWalletConnected ? openView : connect}
22
- >
23
- {isWalletConnected ? truncateSeiAddress(truncatedSeiAddr) : "Connect"}
24
- </button>
25
- );
13
+ return (
14
+ <button className="primary" onClick={isWalletConnected ? openView : connect}>
15
+ {isWalletConnected ? truncateSeiAddress(truncatedSeiAddr) : 'Connect'}
16
+ </button>
17
+ );
26
18
  }
@@ -4,12 +4,9 @@ import { ReactNode } from 'react';
4
4
 
5
5
  import { ChainProvider } from '@cosmos-kit/react';
6
6
  import { COSMOS_KIT_ASSET_LIST } from '@sei-js/cosmjs';
7
- import { wallets as finWallets } from '@cosmos-kit/fin'
8
- import { wallets as keplrWallets } from '@cosmos-kit/keplr'
9
- import {
10
- CompassExtensionWallet,
11
- compassExtensionInfo,
12
- } from '@cosmos-kit/compass-extension'
7
+ import { wallets as finWallets } from '@cosmos-kit/fin';
8
+ import { wallets as keplrWallets } from '@cosmos-kit/keplr';
9
+ import { CompassExtensionWallet, compassExtensionInfo } from '@cosmos-kit/compass-extension';
13
10
  import { selectedChain } from '../constants';
14
11
 
15
12
  interface Web3ProviderProps {
@@ -17,22 +14,21 @@ interface Web3ProviderProps {
17
14
  }
18
15
 
19
16
  const compassWallet = new CompassExtensionWallet({
20
- ...compassExtensionInfo,
21
- mobileDisabled: false,
22
- })
17
+ ...compassExtensionInfo,
18
+ mobileDisabled: false
19
+ });
23
20
 
24
21
  function Web3Provider({ children }: Web3ProviderProps) {
22
+ // Define your supported wallets here
23
+ const wallets = [compassWallet, ...finWallets, ...keplrWallets];
25
24
 
26
- // Define your supported wallets here
27
- const wallets = [compassWallet, ...finWallets, ...keplrWallets];
28
-
29
- // Define the list of sei chain you would like to connect to here.
30
- const chains = [selectedChain]
25
+ // Define the list of sei chain you would like to connect to here.
26
+ const chains = [selectedChain];
31
27
 
32
28
  return (
33
- <ChainProvider chains={chains} assetLists={[COSMOS_KIT_ASSET_LIST]} wallets={wallets}>
34
- {children}
35
- </ChainProvider>
29
+ <ChainProvider chains={chains} assetLists={[COSMOS_KIT_ASSET_LIST]} wallets={wallets}>
30
+ {children}
31
+ </ChainProvider>
36
32
  );
37
33
  }
38
34
 
@@ -1,3 +1,3 @@
1
- export * from './Homepage/Homepage'
2
- export * from './WalletConnectButton/WalletConnectButton'
3
- export * from './Web3Provider'
1
+ export * from './Homepage/Homepage';
2
+ export * from './WalletConnectButton/WalletConnectButton';
3
+ export * from './Web3Provider';
@@ -1,16 +1,16 @@
1
1
  import { ARCTIC_1_SEI_COSMOS_KIT_CHAIN, ATLANTIC_2_SEI_COSMOS_KIT_CHAIN, PACIFIC_1_SEI_COSMOS_KIT_CHAIN } from '@sei-js/cosmjs';
2
2
 
3
3
  export type Urls = {
4
- rpc: string,
5
- rest: string,
6
- }
4
+ rpc: string;
5
+ rest: string;
6
+ };
7
7
 
8
- export const defaultUrls: {[chainName: string]: Urls} = {
9
- [PACIFIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: {rpc: "https://rpc.sei-apis.com", rest: 'https://rest-arctic-1.sei-apis.com'},
10
- [ATLANTIC_2_SEI_COSMOS_KIT_CHAIN.chain_id]: {rpc: "https://rpc-testnet.sei-apis.com", rest: "https://rest-testnet.sei-apis.com"},
11
- [ARCTIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: {rpc: "https://rpc-arctic-1.sei-apis.com", rest: "https://rest-arctic-1.sei-apis.com"}
12
- }
8
+ export const defaultUrls: { [chainName: string]: Urls } = {
9
+ [PACIFIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc.sei-apis.com', rest: 'https://rest-arctic-1.sei-apis.com' },
10
+ [ATLANTIC_2_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc-testnet.sei-apis.com', rest: 'https://rest-testnet.sei-apis.com' },
11
+ [ARCTIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: { rpc: 'https://rpc-arctic-1.sei-apis.com', rest: 'https://rest-arctic-1.sei-apis.com' }
12
+ };
13
13
 
14
14
  // Set your selected chain here
15
15
  // To point to mainnet, use PACIFIC_1_SEI_COSMOS_KIT_CHAIN
16
- export const selectedChain = ARCTIC_1_SEI_COSMOS_KIT_CHAIN
16
+ export const selectedChain = ARCTIC_1_SEI_COSMOS_KIT_CHAIN;
@@ -1 +1 @@
1
- export * from './chain';
1
+ export * from './chain';
@@ -1,14 +1,16 @@
1
1
  /*
2
2
  1. Use a more-intuitive box-sizing model.
3
3
  */
4
- *, *::before, *::after {
5
- box-sizing: border-box;
4
+ *,
5
+ *::before,
6
+ *::after {
7
+ box-sizing: border-box;
6
8
  }
7
9
  /*
8
10
  2. Remove default margin
9
11
  */
10
12
  * {
11
- margin: 0;
13
+ margin: 0;
12
14
  }
13
15
  /*
14
16
  Typographic tweaks!
@@ -16,156 +18,167 @@
16
18
  4. Improve text rendering
17
19
  */
18
20
  body {
19
- line-height: 1.5;
20
- -webkit-font-smoothing: antialiased;
21
+ line-height: 1.5;
22
+ -webkit-font-smoothing: antialiased;
21
23
  }
22
24
  /*
23
25
  5. Improve media defaults
24
26
  */
25
- img, picture, video, canvas, svg {
26
- display: block;
27
- max-width: 100%;
27
+ img,
28
+ picture,
29
+ video,
30
+ canvas,
31
+ svg {
32
+ display: block;
33
+ max-width: 100%;
28
34
  }
29
35
  /*
30
36
  6. Remove built-in form typography styles
31
37
  */
32
- input, button, textarea, select {
33
- font: inherit;
38
+ input,
39
+ button,
40
+ textarea,
41
+ select {
42
+ font: inherit;
34
43
  }
35
44
  /*
36
45
  7. Avoid text overflows
37
46
  */
38
- p, h1, h2, h3, h4, h5, h6 {
39
- overflow-wrap: break-word;
40
- line-height: 1;
47
+ p,
48
+ h1,
49
+ h2,
50
+ h3,
51
+ h4,
52
+ h5,
53
+ h6 {
54
+ overflow-wrap: break-word;
55
+ line-height: 1;
41
56
  }
42
57
  /*
43
58
  8. Create a root stacking context
44
59
  */
45
- #root, #__next {
46
- isolation: isolate;
60
+ #root,
61
+ #__next {
62
+ isolation: isolate;
47
63
  }
48
64
 
49
-
50
65
  :root {
51
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
52
- line-height: 1.5;
53
- font-weight: 400;
66
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
67
+ line-height: 1.5;
68
+ font-weight: 400;
54
69
 
55
- color-scheme: light dark;
56
- color:#000;
57
- background: var(--background);
70
+ color-scheme: light dark;
71
+ color: #000;
72
+ background: var(--background);
58
73
 
59
- font-synthesis: none;
60
- text-rendering: optimizeLegibility;
61
- -webkit-font-smoothing: antialiased;
62
- -moz-osx-font-smoothing: grayscale;
74
+ font-synthesis: none;
75
+ text-rendering: optimizeLegibility;
76
+ -webkit-font-smoothing: antialiased;
77
+ -moz-osx-font-smoothing: grayscale;
63
78
 
64
- --primary-color: #9F1239;
65
- --primary-color-hover: #7F0A2E;
66
- --background: linear-gradient(180deg, #F5F5F4 0%, #FFF 100%);
67
- --border: #D6D3D1;
68
- --card: #FFF;
69
- --card-foreground: #242424;
79
+ --primary-color: #9f1239;
80
+ --primary-color-hover: #7f0a2e;
81
+ --background: linear-gradient(180deg, #f5f5f4 0%, #fff 100%);
82
+ --border: #d6d3d1;
83
+ --card: #fff;
84
+ --card-foreground: #242424;
70
85
  }
71
86
 
72
87
  a {
73
- font-weight: 500;
74
- color: var(--primary-color);
75
- text-decoration: inherit;
88
+ font-weight: 500;
89
+ color: var(--primary-color);
90
+ text-decoration: inherit;
76
91
  }
77
92
  a:hover {
78
- color: var(--primary-color-hover)
93
+ color: var(--primary-color-hover);
79
94
  }
80
95
 
81
96
  body {
82
- margin: 0;
83
- padding: 0;
97
+ margin: 0;
98
+ padding: 0;
84
99
  }
85
100
 
86
101
  h1 {
87
- font-size: 3.2em;
88
- line-height: 1;
102
+ font-size: 3.2em;
103
+ line-height: 1;
89
104
  }
90
105
  code {
91
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
92
- monospace;
93
- display: inline-flex;
94
- border-radius: 4px;
95
- padding: 0.1rem 0.4rem;
96
- background-color: #d7cccc;
97
- color: var(--card-foreground);
106
+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
107
+ display: inline-flex;
108
+ border-radius: 4px;
109
+ padding: 0.1rem 0.4rem;
110
+ background-color: #d7cccc;
111
+ color: var(--card-foreground);
98
112
  }
99
113
 
100
114
  button {
101
- border-radius: 4rem;
102
- border: 1px solid transparent;
103
- padding: 0.6em 1.2em;
104
- font-size: 1em;
105
- font-weight: 500;
106
- font-family: inherit;
107
- background-color: #cec9c1;
108
- cursor: pointer;
109
- transition: all 0.25s ease;
110
- color: black;
115
+ border-radius: 4rem;
116
+ border: 1px solid transparent;
117
+ padding: 0.6em 1.2em;
118
+ font-size: 1em;
119
+ font-weight: 500;
120
+ font-family: inherit;
121
+ background-color: #cec9c1;
122
+ cursor: pointer;
123
+ transition: all 0.25s ease;
124
+ color: black;
111
125
  }
112
126
  button:hover {
113
- background-color: #b5afa7;
127
+ background-color: #b5afa7;
114
128
  }
115
129
 
116
130
  button:disabled {
117
- filter:grayscale(1) opacity(0.5);
118
- color: rgb(56, 55, 55);
119
- pointer-events: none;
131
+ filter: grayscale(1) opacity(0.5);
132
+ color: rgb(56, 55, 55);
133
+ pointer-events: none;
120
134
  }
121
135
 
122
136
  button.primary {
123
- background-color: var(--primary-color);
124
- color: #fff;
137
+ background-color: var(--primary-color);
138
+ color: #fff;
125
139
  }
126
140
  button.outline {
127
- background-color: transparent;
128
- border: 1px solid var(--border);
141
+ background-color: transparent;
142
+ border: 1px solid var(--border);
129
143
  }
130
144
 
131
145
  button.primary:hover {
132
- background-color: var(--primary-color-hover);
146
+ background-color: var(--primary-color-hover);
133
147
  }
134
148
 
135
149
  button.secondary {
136
- background-color: #000;
137
- color: #fff;
150
+ background-color: #000;
151
+ color: #fff;
138
152
  }
139
153
 
140
154
  button.secondary:hover {
141
- background-color: #2b2b2b;
155
+ background-color: #2b2b2b;
142
156
  }
143
157
 
144
158
  button:active {
145
- transform: translateY(1px);
159
+ transform: translateY(1px);
146
160
  }
147
161
 
148
162
  button.small {
149
- padding: 0.4em 0.8em;
150
- font-size: 0.8em;
163
+ padding: 0.4em 0.8em;
164
+ font-size: 0.8em;
151
165
  }
152
166
 
153
-
154
167
  button:focus-visible {
155
- outline: 4px auto -webkit-focus-ring-color;
156
- outline-offset: 4px;
168
+ outline: 4px auto -webkit-focus-ring-color;
169
+ outline-offset: 4px;
157
170
  }
158
171
 
159
172
  .header {
160
- width: 100%;
161
- height: 4rem;
162
- padding: 0 1%;
163
- display: flex;
164
- align-items: center;
165
- justify-content: right;
166
- background-color: transparent;
167
- border-bottom: 1px solid var(--border);
168
- position: sticky;
169
- top: 0;
170
- background: #F5F5F4;
173
+ width: 100%;
174
+ height: 4rem;
175
+ padding: 0 1%;
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: right;
179
+ background-color: transparent;
180
+ border-bottom: 1px solid var(--border);
181
+ position: sticky;
182
+ top: 0;
183
+ background: #f5f5f4;
171
184
  }
@@ -1,21 +1,21 @@
1
- import type { Metadata } from "next";
2
- import { Inter } from "next/font/google";
1
+ import type { Metadata } from 'next';
2
+ import { Inter } from 'next/font/google';
3
3
 
4
- const inter = Inter({ subsets: ["latin"] });
4
+ const inter = Inter({ subsets: ['latin'] });
5
5
 
6
6
  export const metadata: Metadata = {
7
- title: "Sei Next App (Cosmos)",
8
- description: "Generated by create sei app",
7
+ title: 'Sei Next App (Cosmos)',
8
+ description: 'Generated by create sei app'
9
9
  };
10
10
 
11
11
  export default function RootLayout({
12
- children,
12
+ children
13
13
  }: Readonly<{
14
- children: React.ReactNode;
14
+ children: React.ReactNode;
15
15
  }>) {
16
- return (
17
- <html lang="en">
18
- <body className={inter.className}>{children}</body>
19
- </html>
20
- );
16
+ return (
17
+ <html lang="en">
18
+ <body className={inter.className}>{children}</body>
19
+ </html>
20
+ );
21
21
  }
@@ -1,17 +1,17 @@
1
1
  'use client';
2
2
 
3
- import './index.css'
4
- import Homepage from "./components/Homepage/Homepage";
5
- import Web3Provider from "./components/Web3Provider";
6
- import { WalletConnectButton } from "./components/WalletConnectButton/WalletConnectButton";
3
+ import './index.css';
4
+ import Homepage from './components/Homepage/Homepage';
5
+ import Web3Provider from './components/Web3Provider';
6
+ import { WalletConnectButton } from './components/WalletConnectButton/WalletConnectButton';
7
7
 
8
- export default function Home() {
9
- return (
10
- <Web3Provider>
11
- <div className="header">
12
- <WalletConnectButton/>
13
- </div>
14
- <Homepage/>
15
- </Web3Provider>
16
- );
8
+ export default function Home() {
9
+ return (
10
+ <Web3Provider>
11
+ <div className="header">
12
+ <WalletConnectButton />
13
+ </div>
14
+ <Homepage />
15
+ </Web3Provider>
16
+ );
17
17
  }
@@ -1,26 +1,26 @@
1
1
  {
2
- "compilerOptions": {
3
- "lib": ["dom", "dom.iterable", "esnext"],
4
- "allowJs": true,
5
- "skipLibCheck": true,
6
- "strict": true,
7
- "noEmit": true,
8
- "esModuleInterop": true,
9
- "module": "esnext",
10
- "moduleResolution": "bundler",
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
- "jsx": "preserve",
14
- "incremental": true,
15
- "plugins": [
16
- {
17
- "name": "next"
18
- }
19
- ],
20
- "paths": {
21
- "@/*": ["./src/*"]
22
- }
23
- },
24
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25
- "exclude": ["node_modules"]
2
+ "compilerOptions": {
3
+ "lib": ["dom", "dom.iterable", "esnext"],
4
+ "allowJs": true,
5
+ "skipLibCheck": true,
6
+ "strict": true,
7
+ "noEmit": true,
8
+ "esModuleInterop": true,
9
+ "module": "esnext",
10
+ "moduleResolution": "bundler",
11
+ "resolveJsonModule": true,
12
+ "isolatedModules": true,
13
+ "jsx": "preserve",
14
+ "incremental": true,
15
+ "plugins": [
16
+ {
17
+ "name": "next"
18
+ }
19
+ ],
20
+ "paths": {
21
+ "@/*": ["./src/*"]
22
+ }
23
+ },
24
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25
+ "exclude": ["node_modules"]
26
26
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "extends": "next/core-web-vitals"
2
+ "extends": "next/core-web-vitals"
3
3
  }