Skip to content

Commit

Permalink
cursor (#25)
Browse files Browse the repository at this point in the history
* refactor: use figmar svg cursor

* fix: ws url logic error
  • Loading branch information
cs50victor authored Feb 21, 2024
1 parent 6dde474 commit 0d19f70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions demo/app/global.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
cursor: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='26'%20height='31'%20fill='none'%20viewBox='0%200%2026%2031'%3E%3Cpath%20fill='%23fff'%20fill-rule='evenodd'%20stroke='%23010101'%20stroke-linecap='square'%20stroke-width='2.5'%20d='M21.993%2014.425%202.549%202.935l4.444%2023.108%204.653-10.002%2010.347-1.616Z'%20clip-rule='evenodd'/%3E%3C/svg%3E"), grab;
}
2 changes: 1 addition & 1 deletion demo/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
return (
<html
lang="en"
className={tw('font-display h-full min-h-dvh antialiased', inter.variable, display.variable)}
className={tw("font-display h-full min-h-dvh antialiased", inter.variable, display.variable)}
>
<body>
{children}
Expand Down
2 changes: 1 addition & 1 deletion demo/components/WebSocketExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ServerWSResponse {
}

export default function WebSocketExample({port = 8080}:{port?:number}){
const server_ws_url = process.env.NODE_ENV === "production" ? `ws://localhost:${port}` : "ws://new-media.fly.dev"
const server_ws_url = process.env.NODE_ENV != "production" ? `ws://localhost:${port}` : "wss://new-media.fly.dev"
const [imgMetadata, setImageMetadata] = useState<ServerWSResponse>();
const [socket, setSocket] = useState<WebSocket>()

Expand Down

0 comments on commit 0d19f70

Please sign in to comment.