Skip to content

Commit

Permalink
feat: copy shadcn fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed May 28, 2024
1 parent 1e21ffe commit 9c30209
Show file tree
Hide file tree
Showing 19 changed files with 55 additions and 81 deletions.
2 changes: 1 addition & 1 deletion app/app.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
packages = {
app = unstablePkgs.buildNpmPackage {
npmDepsHash = "sha256-zFdqEtIDPQZzvaX1B14oG88foKK9nDU9q/TjsFW1itM=";
npmDepsHash = "sha256-6wpFPjk7dsLt5Ssu2i3fx3C0+URQIG/skJnQDPKsBbo=";
src = ./.;
sourceRoot = "app";
npmFlags = [ "--legacy-peer-deps" ];
Expand Down
16 changes: 8 additions & 8 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"uint8array-extras": "^1.1.0",
"valibot": "^0.30.0",
"vaul-svelte": "^0.3.1",
"viem": "^2.12.5"
"viem": "^2.13.1"
},
"devDependencies": {
"@0no-co/graphqlsp": "^1.12.5",
Expand Down Expand Up @@ -96,7 +96,7 @@
"typescript": "^5.4.5",
"unplugin-icons": "^0.19.0",
"unplugin-turbo-console": "^1.8.6",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vite-plugin-inspect": "^0.8.4",
"vite-plugin-tailwind-purgecss": "^0.3.3",
"vitest": "^1.6.0"
Expand Down
2 changes: 1 addition & 1 deletion app/src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" data-theme="dark" class="dark font-mono scroll-smooth max-h-screen">
<html lang="en" data-theme="dark" class="dark scroll-smooth max-h-screen">

<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/lib/components/connect/connect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let collapsibleOpen = true
builders={[builder]}
on:click={() => (sheetOpen = !sheetOpen)}
class={cn(
'truncate space-x-2 px-4 text-lg w-full min-w-[165px] hover:bg-cyan-300/80',
'truncate space-x-2 px-2.5 text-lg w-full min-w-[165px] hover:bg-cyan-300/80',
($sepoliaStore.connectionStatus === 'connected' ||
$cosmosStore.connectionStatus === 'connected') &&
'border-cyan-300/50',
Expand Down
5 changes: 2 additions & 3 deletions app/src/lib/queries/block.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createQuery } from "@tanstack/svelte-query"

export function blockHeightQuery() {
return createQuery({
export const blockHeightQuery = () =>
createQuery({
queryKey: ["block-height", "union"],
queryFn: async () => {
const response = await fetch("https://rpc.testnet.bonlulu.uno/block")
Expand All @@ -18,4 +18,3 @@ export function blockHeightQuery() {
refetchInterval: 6_000,
refetchOnWindowFocus: false
})
}
26 changes: 0 additions & 26 deletions app/src/lib/queries/ibc.ts

This file was deleted.

29 changes: 22 additions & 7 deletions app/src/lib/queries/union-uno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,30 @@ export const unionToUnionTransfersQuery = graphql(/* GraphQL */ `
query UnionToUnionTransfers($address: String!, $limit: Int! = 5) {
v0_transfers(
limit: $limit,
where: { _or: [{ sender: { _eq: $address }}, { recipient: { _eq: $address }}]}
where: { _or: [{ sender: { _eq: $address }}, { receiver: { _eq: $address }}]}
) {
sender
recipient
amount
denom
height
chain_id
transaction_hash
receiver
source_port
source_time
source_height
source_channel
source_sequence
source_chain_id
source_block_hash
source_transaction_hash
source_transaction_index
source_timeout_timestamp
destination_port
destination_time
destination_height
destination_channel
destination_sequence
destination_chain_id
destination_block_hash
destination_transaction_hash
destination_transaction_index
destination_timeout_timestamp
}
}
`)
2 changes: 1 addition & 1 deletion app/src/routes/faucet/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ $: newTransfers =
class={cn(
'peer',
submissionStatus === 'submitting' && 'animate-pulse',
'sm:text-md text-xs w-full h-10 sm:h-11 disabled:opacity-90 disabled:bg-stone-950',
'font-mono sm:text-md text-xs w-full h-10 sm:h-11 disabled:opacity-90 disabled:bg-stone-950',
'rounded-md border border-slate-800 bg-neutral-950 p-3.5 text-slate-100 transition-colors placeholder:select-none placeholder:text-neutral-600 focus:border-[#8678F9]',
'focus:outline-none outline-transparent focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0',
)}
Expand Down
16 changes: 8 additions & 8 deletions app/src/styles/fonts.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
@font-face {
font-family: 'Inter var';
font-family: 'geist-sans';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/inter/InterVariable.woff2') format('woff2');
src: url('/fonts/geist/GeistVF.woff2') format('woff2');
}

@font-face {
font-family: 'Inter var';
font-family: 'geist-sans';
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/inter/InterVariable-Italic.woff2') format('woff2');
src: url('/fonts/geist/GeistVF.woff2') format('woff2');
}

@font-face {
font-family: 'JetBrains Mono';
font-family: 'geist-mono';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/jetbrains-mono/JetBrainsMono.woff2') format('woff2');
src: url('/fonts/geist-mono/GeistMonoVF.woff2') format('woff2');
}

@font-face {
font-family: 'JetBrains Mono';
font-family: 'geist-mono';
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/jetbrains-mono/JetBrainsMono-Italic.woff2') format('woff2');
src: url('/fonts/geist-mono/GeistMonoVF.woff2') format('woff2');
}
3 changes: 3 additions & 0 deletions app/static/fonts/geist-mono/GeistMonoVF.woff2
Git LFS file not shown
3 changes: 3 additions & 0 deletions app/static/fonts/geist/GeistVF.woff2
Git LFS file not shown
3 changes: 0 additions & 3 deletions app/static/fonts/inter/InterVariable-Italic.woff2

This file was deleted.

3 changes: 0 additions & 3 deletions app/static/fonts/inter/InterVariable.woff2

This file was deleted.

3 changes: 0 additions & 3 deletions app/static/fonts/jetbrains-mono/JetBrainsMono-Italic.woff2

This file was deleted.

3 changes: 0 additions & 3 deletions app/static/fonts/jetbrains-mono/JetBrainsMono.woff2

This file was deleted.

12 changes: 2 additions & 10 deletions app/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,8 @@ export default (<Config>{
"9xl": "96rem"
}),
fontFamily: _ => ({
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
display: [
"Inter var",
{
fontFeatureSettings: '"ss01", "cv09", "ss08" "zero"',
fontVariationSettings: '"opsz" 32'
}
],
mono: ["JetBrains Mono", ...defaultTheme.fontFamily.mono],
jetbrains: ["JetBrains Mono", ...defaultTheme.fontFamily.mono]
sans: ["geist-sans", ...defaultTheme.fontFamily.sans],
mono: ["geist-mono", ...defaultTheme.fontFamily.mono]
}),
animation: _ => ({
wiggle: "wiggle 1s ease-in-out infinite",
Expand Down
Binary file modified typescript-sdk/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion typescript-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@cosmjs/encoding": "^0.32.3",
"@cosmjs/stargate": "0.32.3",
"@cosmjs/tendermint-rpc": "0.32.3",
"viem": "^2.12.5"
"viem": "^2.13.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
Expand Down

0 comments on commit 9c30209

Please sign in to comment.