({ children }: { children: ReactElement })
| 101 | } |
| 102 | |
| 103 | export function OGLayout({ children }: { children: ReactElement }) { |
| 104 | return ( |
| 105 | <div |
| 106 | style={{ |
| 107 | width: OG.width, |
| 108 | height: OG.height, |
| 109 | display: "flex", |
| 110 | flexDirection: "column", |
| 111 | backgroundColor: OG.bg, |
| 112 | fontFamily: "CursorGothic, sans-serif", |
| 113 | }} |
| 114 | > |
| 115 | <div |
| 116 | style={{ |
| 117 | flex: 1, |
| 118 | display: "flex", |
| 119 | flexDirection: "column", |
| 120 | justifyContent: "center", |
| 121 | padding: "60px 80px 0", |
| 122 | }} |
| 123 | > |
| 124 | {children} |
| 125 | </div> |
| 126 | |
| 127 | <div |
| 128 | style={{ |
| 129 | display: "flex", |
| 130 | alignItems: "center", |
| 131 | justifyContent: "space-between", |
| 132 | padding: "0 48px", |
| 133 | height: 80, |
| 134 | borderTop: `1px solid ${OG.border}`, |
| 135 | }} |
| 136 | > |
| 137 | <LogoLockup height={22} /> |
| 138 | <span |
| 139 | style={{ |
| 140 | color: OG.textTertiary, |
| 141 | fontSize: 18, |
| 142 | letterSpacing: "0.01em", |
| 143 | }} |
| 144 | > |
| 145 | cursor.directory |
| 146 | </span> |
| 147 | </div> |
| 148 | </div> |
| 149 | ); |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Renders an OG element tree to PNG bytes. |
nothing calls this directly
no outgoing calls
no test coverage detected