|
1 | 1 | import type { ReactNode } from "react"; |
2 | | -import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; |
3 | 2 | import Layout from "@theme/Layout"; |
4 | 3 | import styles from "./index.module.css"; |
| 4 | +import { useColorMode } from "@docusaurus/theme-common"; |
5 | 5 |
|
6 | 6 | export default function Home(): ReactNode { |
7 | | - const { siteConfig } = useDocusaurusContext(); |
8 | 7 | return ( |
9 | 8 | <Layout title={`Home`}> |
10 | | - <main className={styles.homecontainer}> |
11 | | - <section |
| 9 | + <HomePage /> |
| 10 | + </Layout> |
| 11 | + ); |
| 12 | +} |
| 13 | + |
| 14 | +function HomePage(): ReactNode { |
| 15 | + const { colorMode } = useColorMode(); |
| 16 | + return ( |
| 17 | + <main className={styles.homecontainer}> |
| 18 | + <section |
| 19 | + style={{ |
| 20 | + alignItems: "center", |
| 21 | + justifyContent: "center", |
| 22 | + marginTop: "10rem", |
| 23 | + }} |
| 24 | + > |
| 25 | + <img |
| 26 | + src={colorMode === "dark" ? "./img/gofs-dark.svg" : "./img/gofs.svg"} |
| 27 | + alt="gofs" |
| 28 | + width="350" |
| 29 | + /> |
| 30 | + <p |
12 | 31 | style={{ |
13 | 32 | alignItems: "center", |
14 | 33 | justifyContent: "center", |
15 | | - marginTop: "10rem", |
| 34 | + paddingTop: "3rem", |
| 35 | + paddingBottom: "3rem", |
16 | 36 | }} |
17 | 37 | > |
18 | | - <img src="./img/gofs.svg" alt="gofs" width="350" /> |
19 | | - <p |
20 | | - style={{ |
21 | | - alignItems: "center", |
22 | | - justifyContent: "center", |
23 | | - paddingTop: "3rem", |
24 | | - paddingBottom: "3rem", |
25 | | - }} |
26 | | - > |
27 | | - Lightweight templates for secure full-stack go apps. |
28 | | - </p> |
29 | | - </section> |
30 | | - <section> |
31 | | - <h1 style={{ color: "#007297" }}>Backward Compatible.</h1> |
32 | | - <p> |
33 | | - No more upgrade cycles. Focus your effort on new features instead of |
34 | | - keeping up with upgrades. |
35 | | - </p> |
36 | | - <h1 style={{ color: "#007297" }}>Few Dependencies.</h1> |
37 | | - <p> |
38 | | - Minimize dependency related issues and security vulnerabilities. |
39 | | - </p> |
40 | | - <h1 style={{ color: "#007297" }}>Developer Centric.</h1> |
41 | | - <p> |
42 | | - Better developer experience means happier developers, faster time to |
43 | | - ship, and less bugs. |
44 | | - </p> |
45 | | - </section> |
46 | | - <section> |
47 | | - <p> |
48 | | - Gofs apps are built on on top of these popular alternatives to |
49 | | - heavyweight legacy frameworks. They have no dependencies of their |
50 | | - own and are being developed with a philosophy of stability and |
51 | | - backward compatibility similar to ours. |
52 | | - </p> |
53 | | - <div |
| 38 | + Lightweight templates for secure full-stack go apps. |
| 39 | + </p> |
| 40 | + </section> |
| 41 | + <section> |
| 42 | + <h1 style={{ color: "#007297" }}>Backward Compatible.</h1> |
| 43 | + <p> |
| 44 | + No more upgrade cycles. Focus your effort on new features instead of |
| 45 | + keeping up with upgrades. |
| 46 | + </p> |
| 47 | + <h1 style={{ color: "#007297" }}>Few Dependencies.</h1> |
| 48 | + <p>Minimize dependency related issues and security vulnerabilities.</p> |
| 49 | + <h1 style={{ color: "#007297" }}>Developer Centric.</h1> |
| 50 | + <p> |
| 51 | + Better developer experience means happier developers, faster time to |
| 52 | + ship, and less bugs. |
| 53 | + </p> |
| 54 | + </section> |
| 55 | + <section> |
| 56 | + <p> |
| 57 | + Gofs apps are built on on top of these popular alternatives to |
| 58 | + heavyweight legacy frameworks. They have no dependencies of their own |
| 59 | + and are being developed with a philosophy of stability and backward |
| 60 | + compatibility similar to ours. |
| 61 | + </p> |
| 62 | + <div |
| 63 | + style={{ |
| 64 | + display: "flex", |
| 65 | + flexDirection: "column", |
| 66 | + alignItems: "center", |
| 67 | + justifyContent: "center", |
| 68 | + marginTop: "60px", |
| 69 | + }} |
| 70 | + > |
| 71 | + <a href="https://alpinejs.dev"> |
| 72 | + <img height={80} src="./img/alpinejs.svg" aria-label="alpinejs" /> |
| 73 | + </a> |
| 74 | + <a |
54 | 75 | style={{ |
55 | | - display: "flex", |
56 | | - flexDirection: "column", |
57 | | - alignItems: "center", |
58 | | - justifyContent: "center", |
59 | | - marginTop: "60px", |
| 76 | + marginBottom: "90px", |
| 77 | + fontSize: "5rem", |
| 78 | + height: "80px", |
60 | 79 | }} |
| 80 | + href="https://htmx.org" |
61 | 81 | > |
62 | | - <a href="https://alpinejs.dev"> |
63 | | - <img height={80} src="./img/alpinejs.svg" aria-label="alpinejs" /> |
64 | | - </a> |
65 | | - <a |
66 | | - style={{ |
67 | | - marginBottom: "90px", |
68 | | - fontSize: "5rem", |
69 | | - height: "80px", |
70 | | - }} |
71 | | - href="https://htmx.org" |
72 | | - > |
73 | | - <span> |
74 | | - <<b style={{ color: "blue" }}>/</b>> htm |
75 | | - <b style={{ color: "blue" }}>x</b> |
76 | | - </span> |
77 | | - </a> |
78 | | - <a href="https://templ.guide"> |
79 | | - <img height={60} src="./img/templ.svg" aria-label="templ" /> |
80 | | - </a> |
81 | | - </div> |
82 | | - </section> |
83 | | - </main> |
84 | | - </Layout> |
| 82 | + <span> |
| 83 | + <<b style={{ color: "blue" }}>/</b>> htm |
| 84 | + <b style={{ color: "blue" }}>x</b> |
| 85 | + </span> |
| 86 | + </a> |
| 87 | + <a href="https://templ.guide"> |
| 88 | + <img height={60} src="./img/templ.svg" aria-label="templ" /> |
| 89 | + </a> |
| 90 | + </div> |
| 91 | + </section> |
| 92 | + </main> |
85 | 93 | ); |
86 | 94 | } |
0 commit comments