Skip to content

Commit 1e268b7

Browse files
committed
update next
1 parent 3fc66b0 commit 1e268b7

File tree

7 files changed

+83
-76
lines changed

7 files changed

+83
-76
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.next
22
node_modules
33
dist
4+
.DS_Store
5+

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"type": "module",
55
"exports": {
66
".": "./dist/index.js",
7-
"./gl": "./dist/gl.js",
7+
"./gl": {
8+
"types": "./dist/gl.d.ts",
9+
"default": "./dist/gl.js"
10+
},
811
"./package.json": "./package.json"
912
},
1013
"license": "MIT",
@@ -35,9 +38,9 @@
3538
"bunchee": "^6.3.3",
3639
"codice": "^1.5.4",
3740
"devjar": "link:",
38-
"next": "^16.0.3",
39-
"react": "^19.2.0",
40-
"react-dom": "^19.2.0",
41+
"next": "^16.0.7",
42+
"react": "^19.2.1",
43+
"react-dom": "^19.2.1",
4144
"typescript": "^5.7.3"
4245
},
4346
"packageManager": "[email protected]"

pnpm-lock.yaml

Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/app/gl/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void main() {
3939
}
4040
`
4141

42-
const glRuntimeExample = `import { useGL } from 'devjar'
42+
const glRuntimeExample = `import { useGL } from 'devjar/gl'
4343
import { useRef } from 'react'
4444
4545
function Shader() {
@@ -79,7 +79,7 @@ export default function GlPage() {
7979
<div className="usage-example">
8080
<h3>GL Runtime</h3>
8181
<p>
82-
Import <code>useGL</code> from <code>devjar</code> and call it with your fragment shader code,
82+
Import <code>useGL</code> from <code>devjar/gl</code> and call it with your fragment shader code,
8383
a canvas ref, and an optional error callback. The hook handles WebGL setup, shader compilation,
8484
and provides automatic uniforms for time, resolution, and mouse position.
8585
</p>

site/styles.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,21 @@ footer > p {
120120
}
121121

122122
.examples-section {
123+
position: sticky;
124+
top: 0;
125+
z-index: 100;
123126
display: flex;
124127
flex-direction: column;
125128
align-items: center;
126129
gap: 0.75rem;
127130
margin-bottom: 1.5rem;
131+
padding: 1rem 0;
132+
background-color: #fff;
133+
border-bottom: 1px solid #e5e7eb;
128134
}
129135

130136
.examples-label {
131-
font-size: 12px;
137+
font-size: 11px;
132138
font-weight: 500;
133139
color: #9ca3af;
134140
text-transform: uppercase;
@@ -143,11 +149,11 @@ footer > p {
143149
}
144150

145151
.example-tab {
146-
padding: 8px 20px;
152+
padding: 10px 24px;
147153
border: none;
148154
background: none;
149155
cursor: pointer;
150-
font-size: 15px;
156+
font-size: 17px;
151157
font-weight: 400;
152158
font-family: inherit;
153159
color: #374151;
@@ -160,7 +166,7 @@ footer > p {
160166
.example-tab:link,
161167
.example-tab:visited {
162168
font-family: inherit;
163-
font-size: 15px;
169+
font-size: 17px;
164170
font-weight: 400;
165171
}
166172

site/ui/glsl-sandbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { Editor } from 'codice'
44
import { useRef, useState } from 'react'
5-
import { useGL } from 'devjar'
5+
import { useGL } from 'devjar/gl'
66
import './codesandbox.css'
77
import './glsl-sandbox.css'
88

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
export { useLiveCode } from './core'
22
export { DevJar } from './render'
3-
export {
4-
useGL,
5-
type UseGlslRendererOptions
6-
} from './gl'

0 commit comments

Comments
 (0)