Skip to content

Commit 307744e

Browse files
committed
added new template files to setup.py
1 parent 069fa6c commit 307744e

File tree

4 files changed

+59
-50
lines changed

4 files changed

+59
-50
lines changed

piccolo/apps/asgi/commands/__init__.py

Whitespace-only changes.

piccolo/apps/asgi/commands/templates/starlette/home/templates/base.html.jinja_raw

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,8 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>ASGI</title>
77
<link rel="icon" href="/static/favicon.ico" />
8+
<link href="/static/main.css" rel="stylesheet">
89
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
9-
10-
<style>
11-
body, html {
12-
padding: 0;
13-
margin: 0;
14-
}
15-
body {
16-
background-color: #f0f0f0;
17-
font-family: 'Open Sans', sans-serif;
18-
}
19-
div.hero {
20-
background-color: #4C89C8;
21-
box-sizing: border-box;
22-
padding: 5rem;
23-
}
24-
div.hero h1 {
25-
color: white;
26-
font-weight: normal;
27-
text-align: center;
28-
}
29-
section {
30-
padding-bottom: 2rem;
31-
}
32-
div.content {
33-
background-color: white;
34-
border-radius: 0.5rem;
35-
box-sizing: border-box;
36-
margin: 1rem auto;
37-
max-width: 50rem;
38-
padding: 2rem;
39-
transform: translateY(-4rem);
40-
}
41-
div.content h2 {
42-
font-weight: normal;
43-
border-bottom: 4px solid #f0f0f0;
44-
}
45-
p.code {
46-
background-color: #2b2b2b;
47-
color: white;
48-
font-family: monospace;
49-
padding: 1rem;
50-
margin: 0;
51-
display: block;
52-
}
53-
p.code span {
54-
display: block;
55-
padding: 0.5rem;
56-
}
57-
</style>
5810
</head>
5911

6012
<body>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
body, html {
2+
padding: 0;
3+
margin: 0;
4+
}
5+
6+
body {
7+
background-color: #f0f0f0;
8+
font-family: 'Open Sans', sans-serif;
9+
}
10+
11+
div.hero {
12+
background-color: #4C89C8;
13+
box-sizing: border-box;
14+
padding: 5rem;
15+
}
16+
17+
div.hero h1 {
18+
color: white;
19+
font-weight: normal;
20+
text-align: center;
21+
}
22+
23+
section {
24+
padding-bottom: 2rem;
25+
}
26+
27+
div.content {
28+
background-color: white;
29+
border-radius: 0.5rem;
30+
box-sizing: border-box;
31+
margin: 1rem auto;
32+
max-width: 50rem;
33+
padding: 2rem;
34+
transform: translateY(-4rem);
35+
}
36+
37+
div.content h2 {
38+
font-weight: normal;
39+
border-bottom: 4px solid #f0f0f0;
40+
}
41+
42+
p.code {
43+
background-color: #2b2b2b;
44+
color: white;
45+
font-family: monospace;
46+
padding: 1rem;
47+
margin: 0;
48+
display: block;
49+
}
50+
51+
p.code span {
52+
display: block;
53+
padding: 0.5rem;
54+
}

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
python_requires=">=3.7.0",
3131
url="https://github.com/piccolo-orm/piccolo",
3232
packages=find_packages(exclude=("tests",)),
33-
package_data={"": ["templates/*"], "piccolo": ["py.typed"]},
33+
package_data={
34+
"": ["templates/**/*", "templates/**/**/*", "templates/**/**/**/*"],
35+
"piccolo": ["py.typed"],
36+
},
3437
install_requires=REQUIREMENTS,
3538
license="MIT",
3639
classifiers=[

0 commit comments

Comments
 (0)