|
18 | 18 | - name: Copy SVG assets to deploy directory |
19 | 19 | run: mkdir -p _site/svg && cp -r _svg_assets/* _site/svg/ || true |
20 | 20 |
|
21 | | - - name: Create simple index.html |
22 | | - run: echo '<html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="description" content="The House that Code Built"><meta name="author" content="TortoiseWolfe"><title>SVG Assets</title></head><body><h1>SVG Assets</h1><p>This is a simple index page for the SVG assets.</p></body></html>' > _site/index.html |
| 21 | + - name: Create proper index.html with 3-column layout |
| 22 | + run: | |
| 23 | + # Write HTML file parts separately to avoid YAML issues |
| 24 | + cat > _site/index.html << ENDHTML |
| 25 | +<!DOCTYPE html> |
| 26 | +<html lang="en"> |
| 27 | +<head> |
| 28 | + <meta charset="UTF-8"> |
| 29 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 30 | + <meta name="description" content="The House that Code Built - Interactive Learning Tool"> |
| 31 | + <meta name="author" content="TortoiseWolfe"> |
| 32 | + <meta name="keywords" content="web development, HTML, CSS, JavaScript, visualization"> |
| 33 | + <title>The House that Code Built</title> |
| 34 | + <style> |
| 35 | + body { |
| 36 | + margin: 0; |
| 37 | + padding: 0; |
| 38 | + font-family: Arial, sans-serif; |
| 39 | + } |
| 40 | + .container { |
| 41 | + display: flex; |
| 42 | + width: 100%; |
| 43 | + } |
| 44 | + .left-column { |
| 45 | + width: 25%; |
| 46 | + flex: 0 0 25%; |
| 47 | + background: #f0f0f0; |
| 48 | + padding: 15px; |
| 49 | + box-sizing: border-box; |
| 50 | + } |
| 51 | + .center-column { |
| 52 | + width: 55%; |
| 53 | + flex: 0 0 55%; |
| 54 | + padding: 15px; |
| 55 | + box-sizing: border-box; |
| 56 | + } |
| 57 | + .right-column { |
| 58 | + width: 20%; |
| 59 | + flex: 0 0 20%; |
| 60 | + background: #f0f0f0; |
| 61 | + padding: 15px; |
| 62 | + box-sizing: border-box; |
| 63 | + } |
| 64 | + </style> |
| 65 | +</head> |
| 66 | +<body> |
| 67 | + <div class="container"> |
| 68 | + <div class="left-column"> |
| 69 | + <h2>Presets</h2> |
| 70 | + <p>Left column (25%)</p> |
| 71 | + </div> |
| 72 | + <div class="center-column"> |
| 73 | + <h2>Visualization</h2> |
| 74 | + <img src="svg/house-structure.svg" alt="House Structure" width="100%"> |
| 75 | + <img src="svg/environment-layer.svg" alt="Environment Layer" width="100%"> |
| 76 | + </div> |
| 77 | + <div class="right-column"> |
| 78 | + <h2>Layer Controls</h2> |
| 79 | + <p>Right column (20%)</p> |
| 80 | + </div> |
| 81 | + </div> |
| 82 | +</body> |
| 83 | +</html> |
| 84 | +ENDHTML |
23 | 85 |
|
24 | 86 | - name: Deploy |
25 | 87 | uses: peaceiris/actions-gh-pages@v3 |
|
0 commit comments