Skip to content

Commit d9e6305

Browse files
committed
index
1 parent bf88588 commit d9e6305

5 files changed

Lines changed: 18 additions & 12 deletions

File tree

docs/assets/css/base.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -845,12 +845,6 @@ html.cs-dark .highlight {
845845
padding-top: 0.1em;
846846
}
847847

848-
.page__content h1,
849-
.page__content h2,
850-
.page__content h3 {
851-
font-family: var(--font-family-mono);
852-
}
853-
854848
.page__content h1,
855849
.page__content h2 {
856850
text-shadow: 1px 1px 0 rgb(255 255 255 / 50%);
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
.page__content h1,
2+
.page__content h2,
3+
.page__content h3 {
4+
font-family: var(--font-family-mono);
5+
}
6+
17
.page-index {
28
background-image: linear-gradient(rgba(var(--rgb-base), 0.4) 4px, transparent 4px);
39
background-size: 8px 8px;
@@ -28,7 +34,7 @@
2834
}
2935

3036
@media (min-width: 64rem) {
31-
padding: 4rem;
37+
padding: 4rem 4rem 0;
3238

3339
h1 { font-size: 3rem; }
3440
h2 { font-size: 2rem; }
@@ -102,18 +108,22 @@
102108
.btn-start {
103109
display: block;
104110
width: fit-content;
105-
margin: 5rem auto 3rem;
111+
margin: 3rem auto;
106112
text-decoration: none;
107113
font-family: monospace;
108114
font-weight: 700;
109115
background: var(--color-white);
110-
padding: 0.75rem 1.5rem;
116+
padding: 1rem 2rem;
111117
border: 2px solid var(--color-accent);
112118
border-radius: 8px;
113119
line-height: 1;
114120
text-align: center;
115121
cursor: pointer;
116122
transition: all var(--transition-slow);
123+
124+
@media (max-width: 36rem) {
125+
width: 100%;
126+
}
117127
}
118128
.btn-start:hover {
119129
background: var(--color-gray);

docs/assets/css/nested-form-demo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
border: 1px solid rgba(226, 232, 240, 0.5);
44
padding: 1.5rem;
55
line-height: 1.4;
6-
margin: 2rem auto;
6+
margin: 1rem auto;
77
width: 100%;
88
max-width: 48rem;
99
background: var(--color-base);

docs/content/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ title: Formidable
77
method="post"
88
data-controller="nested-form"
99
novalidate
10+
markdown="0"
1011
>
1112
<h2>Nested Forms</h2>
1213
@@ -38,6 +39,7 @@ title: Formidable
3839
</div>
3940
</form>
4041

42+
[Get started! »](/docs/){.btn-start}
4143

4244
## Features
4345

@@ -91,7 +93,7 @@ However, in the world of Python web frameworks there is a problem: web forms had
9193
That's why I built **Formidable**, a library that, although small, can handle all the advanced scenarios like subforms, dynamic nested forms, custom validators, translatable messages, integration with any ORM and template system, and more. I hope you enjoy it.
9294

9395

94-
[Get started!](/docs/){.btn-start}
96+
[Get started! »](/docs/){.btn-start}
9597

9698

9799
## Contributing Back

docs/views/layout.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
<script src="/assets/js/color-scheme.js"></script>
1818
<link rel="stylesheet" href="/assets/css/base.css" />
19-
<link rel="stylesheet" href="/assets/css/index.css" />
2019
<link rel="stylesheet" href="/assets/css/layout.css" />
20+
<link rel="stylesheet" href="/assets/css/custom.css" />
2121
<link rel="stylesheet" href="/assets/css/nested-form-demo.css" />
2222

2323
<Metadata />

0 commit comments

Comments
 (0)