juxscript 1.0.113 → 1.0.115

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.
package/create/index.jux CHANGED
@@ -7,41 +7,44 @@ LandingLayout();
7
7
  // 2. Header: Logo & Nav
8
8
  Element('logo', { tag: 'h2' })
9
9
  .text('JUX STUDIO')
10
- .style('margin: 0; padding: 25px 40px; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; height: 100%; box-sizing: border-box;')
10
+ .className('jux-typo-brand')
11
11
  .render('landing-layout-0-0');
12
12
 
13
13
  // 3. Hero Section
14
14
  const hero = Element('hero-content', { tag: 'div' })
15
- .style('display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; text-align: center; background: #f8f9fa;')
15
+ .className('jux-section-center')
16
16
  .render('landing-layout-1-0');
17
17
 
18
18
  Element('hero-h1', { tag: 'h1' })
19
19
  .text('Build Web Apps. Simply.')
20
- .style('font-size: 4rem; margin: 0 0 20px 0; font-weight: 900; background: linear-gradient(45deg, #111, #555); -webkit-background-clip: text; -webkit-text-fill-color: transparent;')
20
+ .className('jux-typo-display')
21
21
  .render('hero-content');
22
22
 
23
23
  Element('hero-p', { tag: 'p' })
24
24
  .text('No complex build steps. No magic. Just standard JavaScript components.')
25
- .style('font-size: 1.5rem; color: #666; max-width: 600px; line-height: 1.5;')
25
+ .className('jux-typo-lead')
26
26
  .render('hero-content');
27
27
 
28
28
  Element('cta-btn', { tag: 'button' })
29
29
  .text('Get Started')
30
- .style('margin-top: 30px; padding: 15px 40px; font-size: 1.2rem; background: #000; color: #fff; border: none; border-radius: 50px; cursor: pointer; transition: transform 0.2s;')
30
+ .className('jux-btn-primary')
31
31
  .render('hero-content');
32
32
 
33
33
  // 4. Features Section (Nested Content)
34
34
  const featuresWrapper = Element('features-wrapper', { tag: 'div' })
35
- .style('max-width: 1000px; margin: 60px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding: 0 20px;')
35
+ .className('jux-grid-responsive')
36
36
  .render('landing-layout-2-0');
37
37
 
38
38
  // Component Showcase within Landing Page
39
39
  const listDemo = Element('list-demo-card', { tag: 'div' })
40
- .style('background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;')
40
+ .className('jux-card')
41
41
  .render('features-wrapper');
42
42
 
43
43
  Element('list-label', { tag: 'h3' }).text('Interactive Components').render('list-demo-card');
44
- Element('list-desc', { tag: 'p' }).text('Try dragging or sorting this list:').style('color:#666; margin-bottom:20px;').render('list-demo-card');
44
+ Element('list-desc', { tag: 'p' })
45
+ .text('Try dragging or sorting this list:')
46
+ .style('color: var(--color-text-secondary); margin-bottom: 20px;')
47
+ .render('list-demo-card');
45
48
 
46
49
  List('feature-list', { items: ['Zero Config', 'Standard Web APIs', 'Hot Reloading', 'TypeScript Ready'] })
47
50
  .listType('unordered')
@@ -57,15 +60,18 @@ const cardData = [
57
60
 
58
61
  cardData.forEach((f, i) => {
59
62
  const card = Element(`card-${i}`, { tag: 'div' })
60
- .style('background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;')
63
+ .className('jux-card')
61
64
  .render('features-wrapper');
62
65
 
63
66
  Element(`ct-${i}`, { tag: 'h3' }).text(f.title).render(`card-${i}`);
64
- Element(`cd-${i}`, { tag: 'p' }).text(f.desc).style('color: #666; line-height: 1.6;').render(`card-${i}`);
67
+ Element(`cd-${i}`, { tag: 'p' })
68
+ .text(f.desc)
69
+ .style('color: var(--color-text-secondary); line-height: var(--line-height-normal);')
70
+ .render(`card-${i}`);
65
71
  });
66
72
 
67
73
  // 5. Footer
68
74
  const footer = Element('footer-content', { tag: 'div' })
69
75
  .html('© 2025 Jux Project. Open Source.')
70
- .style('display:flex; align-items:center; justify-content:center; height:100%; background:#111; color:#666;')
76
+ .className('jux-layout-footer')
71
77
  .render('landing-layout-3-0');