|
6 | 6 | <title>C++ Mode for Processing 4</title> |
7 | 7 | <style> |
8 | 8 | * { margin: 0; padding: 0; box-sizing: border-box; } |
9 | | - body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #111; background: #fff; } |
| 9 | + body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #111; background: #fff; height: 100vh; overflow: hidden; } |
10 | 10 | a { color: #111; text-decoration: none; } |
11 | 11 |
|
12 | 12 | nav { |
|
15 | 15 | display: flex; align-items: center; justify-content: space-between; |
16 | 16 | height: 60px; |
17 | 17 | } |
18 | | - .nav-logo { display: flex; align-items: center; gap: 12px; } |
19 | | - .nav-logo img { width: 32px; height: 32px; } |
| 18 | + .nav-logo { display: flex; align-items: center; gap: 10px; } |
| 19 | + .nav-logo img { width: 28px; height: 28px; } |
20 | 20 | .nav-logo span { font-size: 15px; font-weight: 500; } |
21 | 21 | .nav-links { display: flex; gap: 2.5rem; } |
22 | 22 | .nav-links a { font-size: 14px; color: #555; } |
23 | 23 | .nav-links a:hover { color: #111; } |
24 | 24 |
|
25 | | - .hero { |
26 | | - max-width: 720px; margin: 0 auto; |
27 | | - padding: 6rem 2rem 5rem; text-align: center; |
| 25 | + .main { |
| 26 | + height: calc(100vh - 60px); |
| 27 | + display: flex; align-items: center; |
| 28 | + padding: 0 6rem; |
| 29 | + gap: 4rem; |
28 | 30 | } |
29 | | - .hero img { width: 100px; height: 100px; margin-bottom: 2rem; } |
30 | | - .hero h1 { font-size: 2.8rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.25rem; } |
31 | | - .hero p { font-size: 1.1rem; color: #555; max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.8; } |
32 | | - .hero-buttons { display: flex; gap: 1rem; justify-content: center; } |
33 | | - .btn { padding: 0.6rem 1.4rem; border-radius: 6px; font-size: 14px; font-weight: 500; border: 1px solid #ddd; cursor: pointer; } |
34 | | - .btn-primary { background: #111; color: #fff; border-color: #111; } |
35 | | - .btn-primary:hover { background: #333; } |
36 | | - .btn-secondary:hover { background: #f5f5f5; } |
37 | 31 |
|
38 | | - section { max-width: 860px; margin: 0 auto; padding: 5rem 2rem; border-top: 1px solid #e0e0e0; } |
39 | | - section h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; } |
40 | | - section p { color: #555; line-height: 1.8; max-width: 600px; } |
| 32 | + .left { flex: 1; } |
| 33 | + .left h1 { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 2.5rem; line-height: 1.2; } |
| 34 | + .left nav-links { display: flex; flex-direction: column; gap: 1rem; } |
| 35 | + .page-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 0; } |
| 36 | + .page-links a { font-size: 1.1rem; color: #555; display: flex; align-items: center; gap: 8px; } |
| 37 | + .page-links a:hover { color: #111; } |
| 38 | + .page-links a::before { content: ''; width: 20px; height: 1px; background: #ccc; display: inline-block; } |
41 | 39 |
|
42 | | - .reference-note { color: #aaa; font-size: 14px; margin-top: 1rem; } |
| 40 | + .right { flex: 1; display: flex; justify-content: flex-end; align-items: center; } |
| 41 | + .right img { width: 380px; height: 380px; object-fit: contain; } |
43 | 42 |
|
44 | | - footer { border-top: 1px solid #e0e0e0; padding: 2rem; text-align: center; font-size: 13px; color: #888; } |
45 | | - footer a { color: #888; } |
46 | | - footer a:hover { color: #111; } |
| 43 | + @media (max-width: 768px) { |
| 44 | + .main { flex-direction: column; padding: 3rem 2rem; } |
| 45 | + .right img { width: 200px; height: 200px; } |
| 46 | + body { overflow: auto; } |
| 47 | + } |
47 | 48 | </style> |
48 | 49 | </head> |
49 | 50 | <body> |
50 | 51 |
|
51 | 52 | <nav> |
52 | 53 | <div class="nav-logo"> |
53 | | - <img src="cpp-logo.png" alt="C++ Mode logo"> |
| 54 | + <img src="assets/cpp-logo.png" alt="C++ Mode"> |
54 | 55 | <span>C++ Mode</span> |
55 | 56 | </div> |
56 | 57 | <div class="nav-links"> |
57 | | - <a href="#reference">Reference</a> |
58 | | - <a href="#examples">Examples</a> |
59 | | - <a href="#about">About</a> |
60 | | - <a href="https://github.com/processing-cpp/processing.cpp">GitHub</a> |
| 58 | + <a href="reference.html">Reference</a> |
61 | 59 | </div> |
62 | 60 | </nav> |
63 | 61 |
|
64 | | -<div class="hero"> |
65 | | - <img src="cpp-logo.png" alt="C++ Mode"> |
66 | | - <h1>C++ Mode for Processing 4</h1> |
67 | | - <p>Write and run Processing sketches in C++. Same API you already know, compiled to a native binary.</p> |
68 | | - <div class="hero-buttons"> |
69 | | - <a href="https://github.com/processing-cpp/processing.cpp/releases/latest" class="btn btn-primary">Download</a> |
70 | | - <a href="https://github.com/processing-cpp/processing.cpp" class="btn btn-secondary">GitHub</a> |
| 62 | +<div class="main"> |
| 63 | + <div class="left"> |
| 64 | + <h1>C++ Mode for<br>Processing 4</h1> |
| 65 | + <div class="page-links"> |
| 66 | + <a href="reference.html">Reference</a> |
| 67 | + <a href="examples.html">Examples</a> |
| 68 | + <a href="about.html">About</a> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + <div class="right"> |
| 72 | + <img src="assets/cpp-logo.png" alt="C++ Mode"> |
71 | 73 | </div> |
72 | 74 | </div> |
73 | 75 |
|
74 | | -<section id="reference"> |
75 | | - <h2>Reference</h2> |
76 | | - <p>Full API reference coming soon.</p> |
77 | | - <p class="reference-note">In the meantime, C++ Mode supports the standard Processing API — any sketch that runs in Processing Java will run in C++ Mode with minimal changes.</p> |
78 | | -</section> |
79 | | - |
80 | | -<section id="examples"> |
81 | | - <h2>Examples</h2> |
82 | | - <p>Examples coming soon.</p> |
83 | | -</section> |
84 | | - |
85 | | -<section id="about"> |
86 | | - <h2>About</h2> |
87 | | - <p>C++ Mode is a plugin for the Processing 4 IDE that brings C++ to the Processing creative coding environment. It lets you write sketches using the same familiar API — setup(), draw(), ellipse(), mouseX — but your code is compiled to a native binary via g++ and runs at full speed without a JVM or interpreter.</p> |
88 | | - <br> |
89 | | - <p>It supports Linux and Windows out of the box, handles all the OpenGL setup internally, and fits right into the Processing workflow you are already used to. Missing dependencies like g++, GLFW, or GLEW are detected automatically with a one-click installer.</p> |
90 | | - <br> |
91 | | - <p>Made by <a href="https://github.com/pepc84">Jose Gonzalez Llamas</a>.</p> |
92 | | -</section> |
93 | | - |
94 | | -<footer> |
95 | | - <p>C++ Mode for Processing 4 — <a href="https://github.com/processing-cpp/processing.cpp">GitHub</a></p> |
96 | | -</footer> |
97 | | - |
98 | 76 | </body> |
99 | 77 | </html> |
0 commit comments