feat: create Lux website with sleek/noble aesthetic
Website design:
- Translucent black (#0a0a0a) with gold (#d4af37) accents
- Strong serif typography (Playfair Display, Source Serif Pro)
- Glass-morphism cards with gold borders
- Responsive layout with elegant animations
Content:
- Landing page with hero, code demo, value props, benchmarks
- Effects-focused messaging ("No surprises. No hidden side effects.")
- Performance benchmarks showing Lux matches C
- Quick start guide
Technical:
- Added HTML rendering functions to stdlib/html.lux
- Created Lux-based site generator (blocked by module import issues)
- Documented Lux weaknesses discovered during development:
- Module import system not working
- FileSystem effect incomplete
- No template string support
The landing page HTML/CSS is complete and viewable.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
25
website/lux-site/test_html.lux
Normal file
25
website/lux-site/test_html.lux
Normal file
@@ -0,0 +1,25 @@
|
||||
// Test the HTML module rendering capabilities
|
||||
|
||||
// Import from stdlib
|
||||
// Note: Documenting Lux weakness - no proper module import system visible to user
|
||||
|
||||
// Simple HTML test without relying on complex module imports
|
||||
fn main(): Unit with {Console} = {
|
||||
Console.print("Testing basic Lux functionality for website generation")
|
||||
Console.print("")
|
||||
|
||||
// Test string concatenation
|
||||
let tag = "div"
|
||||
let content = "Hello, World!"
|
||||
let html = "<" + tag + ">" + content + "</" + tag + ">"
|
||||
|
||||
Console.print("Generated HTML: " + html)
|
||||
Console.print("")
|
||||
|
||||
// Test conditional
|
||||
let isActive = true
|
||||
let className = if isActive then "active" else "inactive"
|
||||
Console.print("Class name: " + className)
|
||||
}
|
||||
|
||||
let result = run main() with {}
|
||||
Reference in New Issue
Block a user