tangled
alpha
login
or
join now
thecoded.prof
/
CMU
0
fork
atom
CMU Coding Bootcamp
0
fork
atom
overview
issues
pulls
pipelines
feat(html): add form.html
thecoded.prof
3 months ago
997c7100
5d89fae7
verified
This commit was signed with the committer's
known signature
.
thecoded.prof
SSH Key Fingerprint:
SHA256:ePn0u8NlJyz3J4Zl9MHOYW3f4XKoi5K1I4j53bwpG0U=
+113
-5
3 changed files
expand all
collapse all
unified
split
html
css
form.css
form.html
nilla.nix
+85
html/css/form.css
···
1
1
+
.container {
2
2
+
display: flex;
3
3
+
flex-direction: column;
4
4
+
align-items: center;
5
5
+
justify-content: center;
6
6
+
}
7
7
+
8
8
+
form {
9
9
+
display: flex;
10
10
+
flex-direction: column;
11
11
+
align-items: center;
12
12
+
justify-content: center;
13
13
+
gap: 0.5rem;
14
14
+
width: 80%;
15
15
+
}
16
16
+
17
17
+
form > * {
18
18
+
width: 100%;
19
19
+
}
20
20
+
21
21
+
form :nth-child(even) {
22
22
+
margin-bottom: 1rem;
23
23
+
}
24
24
+
25
25
+
form > button {
26
26
+
width: 100%;
27
27
+
padding: 0.25rem;
28
28
+
margin: 0.5rem;
29
29
+
}
30
30
+
31
31
+
@media (min-width: 769px) {
32
32
+
form {
33
33
+
gap: 1rem;
34
34
+
width: 100%;
35
35
+
max-width: 48rem;
36
36
+
display: grid;
37
37
+
column-gap: 1rem;
38
38
+
grid-template-columns: repeat(2, minmax(0, 1fr));
39
39
+
}
40
40
+
41
41
+
form > button {
42
42
+
width: 100%;
43
43
+
grid-column: span 2;
44
44
+
padding: 0.25rem;
45
45
+
margin: 0.5rem;
46
46
+
}
47
47
+
}
48
48
+
49
49
+
nav {
50
50
+
display: flex;
51
51
+
padding: 0.5rem 0rem;
52
52
+
background-color: #8aacdf;
53
53
+
position: sticky;
54
54
+
top: 0;
55
55
+
left: 0;
56
56
+
right: 0;
57
57
+
margin-left: -0.5rem;
58
58
+
margin-top: -0.5rem;
59
59
+
justify-content: space-around;
60
60
+
align-items: center;
61
61
+
width: 100vw;
62
62
+
margin-bottom: 4rem;
63
63
+
}
64
64
+
65
65
+
.navitem {
66
66
+
padding: 0.5rem 4rem;
67
67
+
border: 1px solid #000;
68
68
+
border-radius: 0.5rem;
69
69
+
}
70
70
+
71
71
+
#footer {
72
72
+
width: 100vw;
73
73
+
height: 6rem;
74
74
+
position: absolute;
75
75
+
bottom: 0;
76
76
+
left: 0;
77
77
+
justify-content: space-around;
78
78
+
align-items: center;
79
79
+
background-color: #000;
80
80
+
color: #fff;
81
81
+
text-align: center;
82
82
+
display: flex;
83
83
+
vertical-align: center;
84
84
+
font-size: 2rem;
85
85
+
}
+28
html/form.html
···
1
1
+
<!doctype html>
2
2
+
<html lang="en">
3
3
+
<head>
4
4
+
<meta charset="UTF-8" />
5
5
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
+
<title>Form</title>
7
7
+
<link rel="stylesheet" href="css/form.css" />
8
8
+
<script src="js/form.js"></script>
9
9
+
</head>
10
10
+
<body>
11
11
+
<nav>
12
12
+
<a class="navitem" href="/">Home</a>
13
13
+
<a class="navitem" href="/dino.html">Dino</a>
14
14
+
</nav>
15
15
+
<div class="container">
16
16
+
<form>
17
17
+
<label for="name">Name:</label>
18
18
+
<input type="text" id="name" name="name" required />
19
19
+
<label for="email">Email:</label>
20
20
+
<input type="email" id="email" name="email" required />
21
21
+
<label for="message">Message:</label>
22
22
+
<textarea id="message" name="message" required></textarea>
23
23
+
<button type="submit">Submit</button>
24
24
+
</form>
25
25
+
</div>
26
26
+
<div id="footer">Totally good footer text</div>
27
27
+
</body>
28
28
+
</html>
-5
nilla.nix
···
78
78
mkShell {
79
79
shellHook = ''
80
80
[ "$(hostname)" = "shorthair" ] && export ZED_PREDICT_EDITS_URL=http://localhost:9000/predict_edits
81
81
-
unset TMPDIR
82
81
'';
83
82
packages = [
84
83
(python3.withPackages (ppkgs: [
···
108
107
mkShell,
109
108
}:
110
109
mkShell {
111
111
-
shellHook = ''
112
112
-
unset TMPDIR
113
113
-
'';
114
110
packages = [
115
111
pkgs.bun
116
112
pkgs.eslint_d
···
133
129
}:
134
130
mkShell {
135
131
shellHook = ''
136
136
-
unset TMPDIR
137
132
serve() {
138
133
live-server /home/coded/Programming/CMU/html --port 5000
139
134
}