Skip to content

Commit 1b3e456

Browse files
committed
Update index.html
1 parent f8fe6a3 commit 1b3e456

File tree

1 file changed

+104
-88
lines changed

1 file changed

+104
-88
lines changed

index.html

Lines changed: 104 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -3,138 +3,162 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>tinystruct framework</title>
6+
<title>tinystruct Framework</title>
77
<style>
8+
/* General Styles */
89
body {
9-
font-family: Arial, sans-serif;
10-
line-height: 1.6;
10+
font-family: 'Roboto', Arial, sans-serif;
1111
margin: 0;
1212
padding: 0;
13-
background-color: #f4f4f4;
13+
background-color: #f5f5f5;
14+
color: #333;
1415
}
15-
header {
16-
background: #333;
16+
17+
/* Navigation Bar */
18+
nav {
19+
background-color: #986ce8; /* Inspired by the purple in the logo */
1720
color: #fff;
18-
padding: 1rem 0;
19-
text-align: center;
21+
padding: 1rem;
22+
display: flex;
23+
justify-content: space-between;
24+
align-items: center;
25+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
26+
}
27+
28+
nav h1 {
29+
margin: 0;
30+
font-size: 1.5rem;
31+
display: flex;
32+
align-items: center;
33+
color: #f5f5f5;
34+
}
35+
36+
nav img {
37+
margin-right: 0.5rem;
38+
height: 40px;
39+
width: 40px;
2040
}
41+
42+
nav a {
43+
color: #fff;
44+
text-decoration: none;
45+
margin-left: 1.5rem;
46+
font-size: 1rem;
47+
}
48+
49+
nav a:hover {
50+
text-decoration: underline;
51+
}
52+
53+
/* Container Styles */
2154
.container {
22-
max-width: 800px;
55+
max-width: 1000px;
2356
margin: 2rem auto;
24-
background: #fff;
57+
background: #ffffff;
2558
padding: 2rem;
26-
border-radius: 5px;
27-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
59+
border-radius: 10px;
60+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
2861
}
29-
h1 {
30-
color: #FFF;
31-
}
32-
h2, h3 {
33-
color: #333;
62+
63+
h1, h2 {
64+
color: #4b3c6e;
3465
}
66+
3567
ul {
3668
margin: 1rem 0;
3769
padding: 0;
3870
list-style: none;
3971
}
72+
4073
ul li {
4174
margin: 0.5rem 0;
42-
padding: 0.5rem;
75+
padding: 1rem;
4376
background: #f9f9f9;
4477
border: 1px solid #ddd;
4578
border-radius: 5px;
4679
}
80+
4781
pre {
48-
background: #f4f4f4;
82+
background: #ececec;
4983
padding: 1rem;
5084
border: 1px solid #ddd;
5185
border-radius: 5px;
5286
overflow-x: auto;
5387
}
88+
5489
a {
55-
color: #007BFF;
90+
color: #4b3c6e;
5691
text-decoration: none;
5792
}
93+
5894
a:hover {
5995
text-decoration: underline;
6096
}
97+
6198
footer {
6299
text-align: center;
63-
margin: 2rem 0 1rem;
100+
padding: 1rem 0;
101+
background: #4b3c6e;
102+
color: #fff;
103+
}
104+
105+
footer p {
106+
margin: 0;
107+
}
108+
109+
.btn {
110+
display: inline-block;
111+
background: #4b3c6e;
112+
color: #fff;
113+
padding: 0.5rem 1rem;
114+
border-radius: 5px;
115+
text-decoration: none;
116+
font-size: 1rem;
117+
margin-top: 1rem;
118+
}
119+
120+
.btn:hover {
121+
background: #3a2d58;
64122
}
65123
</style>
66124
</head>
67125
<body>
68-
<header>
69-
<h1>tinystruct framework</h1>
70-
<p>A Lightweight Java Framework for Modern Applications</p>
71-
</header>
72-
<div class="container">
126+
<nav>
127+
<h1>
128+
<img src="https://avatars.githubusercontent.com/u/3723144?s=48&v=4" alt="tinystruct logo">
129+
tinystruct
130+
</h1>
131+
<div>
132+
<a href="#about">What is tinystruct?</a>
133+
<a href="#features">Features</a>
134+
<a href="#use-cases">Use Cases</a>
135+
<a href="#resources">Resources</a>
136+
</div>
137+
</nav>
138+
139+
<div class="container" id="about">
73140
<h2>What is tinystruct?</h2>
74141
<p>
75142
tinystruct is a lightweight Java framework designed to simplify application development by emphasizing simplicity and performance.
76143
Its core philosophy is encapsulated in the motto:
77144
<em>"Simplicity is difficult, while complexity is easy. Better thinking leads to better design."</em>
78145
</p>
79146

80-
<h2>Key Features</h2>
147+
<h2 id="features">Key Features</h2>
81148
<ul>
82149
<li><strong>Modular Design:</strong> Include only the components you need for efficiency.</li>
83150
<li><strong>Command-Line Interface (CLI) Support:</strong> Simplifies tasks like executing commands and managing packages.</li>
84151
<li><strong>Netty Integration:</strong> Operates as an HTTP server for high-performance web applications.</li>
85152
<li><strong>Annotation-Based Actions:</strong> Streamlines application logic with improved readability.</li>
86153
</ul>
87154

88-
<h2>Best Use Cases and Their Benefits</h2>
89-
<ul>
90-
<li>
91-
<strong>Lightweight Web Applications:</strong>
92-
Ideal for small-scale websites and web tools where simplicity and speed are critical. tinystruct’s minimal dependencies ensure fast load times and easier deployment.
93-
</li>
94-
<li>
95-
<strong>Command-Line Tools or Scripts:</strong>
96-
Use tinystruct’s built-in CLI support for developing robust command-line utilities that can handle complex tasks with minimal overhead.
97-
</li>
98-
<li>
99-
<strong>Microservices Architecture:</strong>
100-
tinystruct’s modular design and lightweight nature make it perfect for building microservices that focus on specific tasks without unnecessary bloat.
101-
</li>
102-
<li>
103-
<strong>Embedded Systems or IoT Backends:</strong>
104-
tinystruct’s small memory footprint makes it an excellent choice for resource-constrained environments like IoT devices and embedded systems.
105-
</li>
106-
<li>
107-
<strong>Rapid Prototyping:</strong>
108-
With its easy setup and straightforward structure, tinystruct helps developers quickly prototype and iterate on new ideas.
109-
</li>
110-
<li>
111-
<strong>High-Performance Applications:</strong>
112-
Leverage tinystruct’s Netty integration for building applications requiring high throughput and low latency.
113-
</li>
114-
<li>
115-
<strong>Educational Projects:</strong>
116-
tinystruct is simple enough for students and educators, providing a great tool to teach Java and web application principles.
117-
</li>
118-
<li>
119-
<strong>Small Business Applications:</strong>
120-
Small businesses can use tinystruct to build cost-effective, easy-to-maintain applications tailored to their specific needs.
121-
</li>
122-
<li>
123-
<strong>Replacement for Legacy Applications:</strong>
124-
Upgrade aging systems with a modern, lightweight framework that improves performance and maintainability.
125-
</li>
126-
<li>
127-
<strong>API Gateways:</strong>
128-
Build fast, lightweight API gateways that integrate seamlessly with existing systems using tinystruct’s HTTP server capabilities.
129-
</li>
130-
</ul>
131-
132-
<h2>Advantages</h2>
155+
<h2 id="use-cases">Best Use Cases and Their Benefits</h2>
133156
<ul>
134-
<li>Minimal setup and learning curve</li>
135-
<li>Highly modular and customizable</li>
136-
<li>Lightweight and suitable for resource-constrained environments</li>
137-
<li>Built-in tools for CLI and Netty support</li>
157+
<li><strong>Lightweight Web Applications:</strong> Perfect for small-scale websites needing speed and simplicity.</li>
158+
<li><strong>Command-Line Tools:</strong> Develop robust utilities with minimal overhead.</li>
159+
<li><strong>Microservices:</strong> Modular design makes it ideal for specific, lightweight services.</li>
160+
<li><strong>Embedded Systems:</strong> Small memory footprint fits resource-constrained devices.</li>
161+
<li><strong>Rapid Prototyping:</strong> Quickly iterate ideas with its simple setup.</li>
138162
</ul>
139163

140164
<h2>How to Get Started</h2>
@@ -143,23 +167,15 @@ <h2>How to Get Started</h2>
143167
&lt;dependency&gt;
144168
&lt;groupId&gt;org.tinystruct&lt;/groupId&gt;
145169
&lt;artifactId&gt;tinystruct&lt;/artifactId&gt;
146-
&lt;version&gt;1.4.2&lt;/version&gt;
170+
&lt;version&gt;1.4.4&lt;/version&gt;
147171
&lt;classifier&gt;jar-with-dependencies&lt;/classifier&gt;
148172
&lt;/dependency&gt;
149173
</pre>
150174

151-
<h2>Additional Resources</h2>
152-
<ul>
153-
<li><a href="https://github.com/tinystruct/tinystruct" target="_blank">tinystruct GitHub Repository</a></li>
154-
<li><a href="https://mvnrepository.com/artifact/org.tinystruct/tinystruct" target="_blank">Maven Repository</a></li>
155-
</ul>
156-
157-
<h2>Why Choose tinystruct?</h2>
158-
<p>
159-
tinystruct focuses on reducing unnecessary complexity in application development.
160-
Its lightweight, modular nature makes it an excellent choice for developers looking for a straightforward, efficient framework for various Java-based projects.
161-
</p>
175+
<a href="https://github.com/tinystruct/tinystruct" class="btn" target="_blank">GitHub Repository</a>
176+
<a href="https://mvnrepository.com/artifact/org.tinystruct/tinystruct" class="btn" target="_blank">Maven Repository</a>
162177
</div>
178+
163179
<footer>
164180
<p>Created with ❤️ by James ZHOU</p>
165181
</footer>

0 commit comments

Comments
 (0)