Skip to content

Commit 17347b3

Browse files
committed
First part of design saved.
1 parent 920f6ad commit 17347b3

File tree

11 files changed

+161
-31
lines changed

11 files changed

+161
-31
lines changed

src/ch8-adding_design/final/pypi_design/.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ch8-adding_design/final/pypi_design/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ch8-adding_design/final/pypi_design/.idea/pypi_design.iml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ch8-adding_design/final/pypi_design/pypi/static/css/home.css

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
body {
2+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
body {
2+
color: #222;
3+
background: #fff;
4+
margin: 0px;
5+
padding: 0px;
6+
}
7+
8+
.starter-template .content .lead .font-normal {
9+
color: #000;
10+
}
11+
12+
.starter-template .content .lead,
13+
.starter-template .content h1 .smaller {
14+
color: #2495f2;
15+
}
16+
17+
.starter-template .links ul li a, a {
18+
color: #2495f2;
19+
text-decoration: none;
20+
}
21+
22+
.starter-template .links ul li:hover .icon-muted,
23+
.starter-template .links ul li a:hover, a:hover {
24+
color: #000;
25+
}
26+
27+
.starter-template .links ul li:hover a, a:hover {
28+
text-decoration: underline;
29+
}
30+
31+
.starter-template .links ul li .icon-muted {
32+
color: #2495f2;
33+
}
34+
35+
.starter-template .copyright {
36+
color: #666;
37+
}
38+
39+
.starter-template {
40+
margin-top: 0px;
41+
}
42+
43+
.navbar {
44+
border-radius: 0px;
45+
}
46+
47+
.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
48+
border-color: #02377c;
49+
color: white;
50+
}
51+
52+
.navbar-inverse {
53+
background-color: #0073b7;
54+
border-color: #0067a3;
55+
}
56+
57+
.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
58+
color: #fff;
59+
background-color: #024bbf;
60+
}
61+
62+
.navbar-inverse .navbar-brand,
63+
.navbar-inverse .navbar-nav > li > a {
64+
color: #fff;
65+
}
66+
67+
.navbar-inverse .navbar-brand:hover {
68+
text-decoration: underline;
69+
}
70+
71+
.navbar-inverse .navbar-toggle {
72+
border-color: #eee;
73+
}
74+
75+
.navbar {
76+
margin-bottom: 0px;
77+
}
78+
79+
.starter-template .content {
80+
margin-left: 0px;
81+
}

src/ch8-adding_design/final/pypi_design/pypi/templates/home/index.pt

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,42 @@
22
<div metal:fill-slot="content">
33

44
<div class="content">
5-
<h1>Some packages</h1>
6-
<div class="package" tal:repeat="p packages">
7-
<span class="title">${p.name}</span>
8-
<span class="version" tal:condition="p.version">${p.version}</span>
9-
<span class="version" tal:condition="not p.version">0.0.0</span>
5+
6+
<div class="hero">
7+
<h1>
8+
Find, install and publish Python packages <br>
9+
with the Python Package Index
10+
</h1>
11+
12+
<input type="text" class="form-control"
13+
placeholder=" Search projects">
14+
15+
<br>
16+
<br>
17+
<br>
18+
Or <a href="#">browse projects</a>
19+
</div>
20+
21+
<div class="pypi-stats">
22+
<div class="stat">0 projects</div>
23+
<div class="stat">0 releases</div>
24+
<div class="stat">0 users</div>
1025
</div>
26+
27+
<div class="container project-list">
28+
<div class="row">
29+
<div class="col-md-3"></div>
30+
<div class="col-md-6">
31+
<div class="project" tal:repeat="p packages">
32+
<div class="title"><a href="">${p.name}</a> ${p.version}</div>
33+
<div class="desc">THE DESCRIPTION TBD</div>
34+
</div>
35+
</div>
36+
<div class="col-md-3"></div>
37+
</div>
38+
</div>
39+
40+
1141
</div>
1242

1343
</div>

src/ch8-adding_design/final/pypi_design/pypi/templates/shared/_layout.pt

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="description" content="pyramid web application">
88
<meta name="author" content="Pylons Project">
9-
<link rel="shortcut icon" href="${request.static_url('pypi:static/pyramid-16x16.png')}">
9+
<link rel="shortcut icon" href="${request.static_url('pypi:static/img/pyramid-16x16.png')}">
1010

11-
<title>Cookiecutter Starter project for the Pyramid Web Framework</title>
11+
<title>Python Package Index (demo)</title>
1212

1313
<!-- Bootstrap core CSS -->
1414
<link href="//oss.maxcdn.com/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
1515

1616
<!-- Custom styles for this scaffold -->
17-
<link href="${request.static_url('pypi:static/theme.css')}" rel="stylesheet">
17+
<link href="${request.static_url('pypi:static/css/theme.css')}" rel="stylesheet">
18+
<link href="${request.static_url('pypi:static/css/theme-overrides.css')}" rel="stylesheet">
19+
<link href="${request.static_url('pypi:static/css/site.css')}" rel="stylesheet">
1820

1921
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2022
<!--[if lt IE 9]>
@@ -28,29 +30,7 @@
2830
<body>
2931

3032
<div class="starter-template">
31-
<div class="container">
32-
<div class="row">
33-
<div class="col-md-2">
34-
<img class="logo img-responsive" src="${request.static_url('pypi:static/pyramid.png')}" alt="pyramid web framework">
35-
</div>
36-
<div class="col-md-10">
37-
<div metal:define-slot="content">No content</div>
38-
</div>
39-
</div>
40-
<div class="row">
41-
<div class="links">
42-
<ul>
43-
<li><a href="/">Home</a></li>
44-
<li><a href="/about">About</a></li>
45-
</ul>
46-
</div>
47-
</div>
48-
<div class="row">
49-
<div class="copyright">
50-
Copyright &copy; Pylons Project
51-
</div>
52-
</div>
53-
</div>
33+
<div metal:define-slot="content">No content</div>
5434
</div>
5535

5636

0 commit comments

Comments
 (0)