Skip to content

Commit dd04847

Browse files
committed
Fix issue Codeception#72
Prettify ‘thanks’ download pages.
1 parent 0b491ff commit dd04847

File tree

4 files changed

+35
-98
lines changed

4 files changed

+35
-98
lines changed

_layouts/bootstrap.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<meta name="viewport" content="width=device-width, initial-scale=1">
1212
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
1313

14+
{% if page.meta %}
15+
{{ page.meta }}
16+
{% endif %}
17+
1418
<!-- CSS -->
1519
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
1620
<link rel="stylesheet" href="/css/codeception.css">

css/codeception.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,8 @@ ul.navbar-nav {
315315
right: 40px;
316316
}
317317

318+
.fill-thanks {
319+
padding-top: 200px;
320+
padding-bottom: 200px;
321+
}
318322

thanks.html

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,19 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3-
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5-
<meta name="title" content="Codeception - BDD-style PHP testing framework" />
6-
<title>Thanks for choosing Codeception!</title>
7-
<link rel="shortcut icon" href="/images/favicon.png" />
8-
<link href='http://fonts.googleapis.com/css?family=Philosopher&subset=latin' rel='stylesheet' type='text/css'>
9-
<link rel="stylesheet" type="text/css" media="screen" href="http://codeception.com/css/screen.css" />
10-
11-
<link title="Codeception Blog" type="application/rss+xml" rel="alternate" href="/rss.xml"/>
12-
13-
<script type="text/javascript">
14-
15-
var _gaq = _gaq || [];
16-
_gaq.push(['_setAccount', 'UA-1899308-9']);
17-
_gaq.push(['_trackPageview']);
18-
19-
(function() {
20-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
21-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
22-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23-
})();
24-
25-
</script>
26-
27-
28-
<meta http-equiv="REFRESH" content="3;url=http://codeception.com/codecept.phar">
29-
30-
</head>
31-
<body>
32-
33-
<div id="root">
34-
35-
<div class="layout">
36-
<div class="content">
37-
38-
<h2>Installation</h2>
1+
---
2+
layout: bootstrap
3+
title: Thanks for choosing Codeception!
4+
meta: <meta http-equiv="REFRESH" content="3;url=http://codeception.com/codecept.phar">
5+
---
6+
<div class="container">
7+
<div class="row">
8+
<div class="col-xs-12 fill-thanks">
9+
<h2>Installation</h2>
3910
<p><strong>1.</strong> Save this file into the root of desired PHP project</p>
40-
4111
<p><strong>2.</strong> Initialize test classes inside the root of your project</p>
4212
<p><code>php codecept.phar bootstrap</code></p>
43-
4413
<p><strong>3.</strong> Write your tests!</p>
4514
<p>Follow <a href="http://codeception.com/docs/02-GettingStarted">Getting Started Guide</a> to perform configuration and write the first test.</p>
15+
<p class="small">Your download is on the way. <a href="http://codeception.com/codecept.phar">Click here</a> if you don't want to wait any longer</p>
16+
</div> <!-- /col -->
17+
</div> <!-- /row -->
18+
</div> <!-- /.container -->
4619

47-
<p class="small">Your download is on the way. <a href="http://codeception.com/codecept.phar">Click here</a> if you don't want to wait any longer</p>
48-
49-
50-
</div>
51-
</div>
52-
</div>
53-
54-
55-
</body>
56-
</html>

thanks_php54.html

Lines changed: 14 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,13 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3-
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5-
<meta name="title" content="Codeception - BDD-style PHP testing framework" />
6-
<title>Thanks for choosing Codeception!</title>
7-
<link rel="shortcut icon" href="/images/favicon.png" />
8-
<link href='http://fonts.googleapis.com/css?family=Philosopher&subset=latin' rel='stylesheet' type='text/css'>
9-
<link rel="stylesheet" type="text/css" media="screen" href="http://codeception.com/css/screen.css" />
10-
11-
<link title="Codeception Blog" type="application/rss+xml" rel="alternate" href="/rss.xml"/>
12-
13-
<script type="text/javascript">
14-
15-
var _gaq = _gaq || [];
16-
_gaq.push(['_setAccount', 'UA-1899308-9']);
17-
_gaq.push(['_trackPageview']);
18-
19-
(function() {
20-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
21-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
22-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23-
})();
24-
25-
</script>
26-
27-
28-
<meta http-equiv="REFRESH" content="3;url=http://codeception.com/php54/codecept.phar">
29-
30-
</head>
31-
<body>
32-
33-
<div id="root">
34-
35-
<div class="layout">
36-
<div class="content">
37-
38-
<h2>Installation</h2>
1+
---
2+
layout: bootstrap
3+
title: Thanks for choosing Codeception!
4+
meta: <meta http-equiv="REFRESH" content="3;url=http://codeception.com/php54/codecept.phar">
5+
---
6+
<div class="container">
7+
<div class="row">
8+
<div class="col-xs-12 fill-thanks">
9+
10+
<h2>Installation - PHAR PHP54</h2>
3911
<p><strong>1.</strong> Save this file into the root of desired PHP project</p>
4012

4113
<p><strong>2.</strong> Initialize test classes inside the root of your project</p>
@@ -44,13 +16,7 @@ <h2>Installation</h2>
4416
<p><strong>3.</strong> Write your tests!</p>
4517
<p>Follow <a href="http://codeception.com/docs/02-GettingStarted">Getting Started Guide</a> to perform configuration and write the first test.</p>
4618

47-
<p class="small">Your download is on the way. <a href="http://codeception.com/codecept.phar">Click here</a> if you don't want to wait any longer</p>
48-
49-
50-
</div>
51-
</div>
52-
</div>
53-
54-
55-
</body>
56-
</html>
19+
<p class="small">Your download is on the way. <a href="http://codeception.com/codecept.phar">Click here</a> if you don't want to wait any longer</p>
20+
</div> <!-- /col -->
21+
</div> <!-- /row -->
22+
</div> <!-- /.container -->

0 commit comments

Comments
 (0)