Skip to content

Commit 6323d35

Browse files
committed
try to style the jekyll landing page
1 parent cd0f007 commit 6323d35

17 files changed

+103
-1
lines changed

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
theme: jekyll-theme-cayman
2+
title: php-vips
3+
description: PHP binding for libvips
4+
google_analytics: UA-48550036-2

_layouts/default.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>{{ page.title | default: site.title }}</title>
6+
<meta name="description" content="{{ site.description }}"/>
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<meta name="theme-color" content="#157878">
9+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
10+
<link href='https://fonts.googleapis.com/css?family=Cabin:400,700' rel='stylesheet' type='text/css'>
11+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
12+
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
13+
</head>
14+
<body>
15+
<section class="page-header">
16+
<h1 class="project-name"><a href="{{ site.baseurl }}">{{ site.title }}</a></h1>
17+
<h2 class="project-tagline">{{ site.description }}</h2>
18+
19+
<a href="{{ site.github.repository_url }}" class="btn">Project on GitHub</a>
20+
<a href="{{ site.github.releases_url }}" class="btn">Download</a>
21+
<a href="{{ site.baseurl }}/docs/classes/Jcupitt.Vips.Image.html" class="btn">Documentation</a>
22+
<a href="{{ site.github.issues_url }}" class="btn">Issues</a>
23+
24+
</section>
25+
26+
<section class="main-content">
27+
{{ content }}
28+
29+
<footer class="site-footer">
30+
<span class="site-footer-credits">
31+
<a href="{{ site.github.repository_url }}">View on GitHub</a>
32+
</span>
33+
</footer>
34+
</section>
35+
36+
{% if site.google_analytics %}
37+
<script type="text/javascript">
38+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
39+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
40+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
41+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
42+
43+
ga('create', '{{ site.google_analytics }}', 'auto');
44+
ga('send', 'pageview');
45+
</script>
46+
{% endif %}
47+
</body>
48+
</html>

assets/css/style.scss

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
---
3+
4+
$body-text-color: #2f444c;
5+
6+
@import "{{ site.theme }}";
7+
8+
// strange, you'd think setting $body-text-color would do this, but it doesn't
9+
// you also can't use a variable here
10+
body {
11+
color: #2f444c;
12+
}
13+
14+
.page-header {
15+
padding: 0.5rem 1rem;
16+
line-height: 1.1;
17+
}
18+
19+
.project-name {
20+
a {
21+
text-decoration: none;
22+
color: white;
23+
font-family: 'Cabin', sans-serif;
24+
}
25+
}
26+
27+
.navigation {
28+
img {
29+
max-width: 16px;
30+
}
31+
}
32+
33+
.main-content .navigation td {
34+
border: 0;
35+
}
36+
37+
.main-content .refnamediv td {
38+
border: 0;
39+
}
40+
41+
.blog-index {
42+
list-style: none;
43+
.date {
44+
float: right;
45+
font-size: small;
46+
}
47+
li {
48+
}
49+
}

assets/images/canny.png

410 KB
Loading

assets/images/clahe.jpg

218 KB
Loading

assets/images/composite.png

379 KB
Loading

assets/images/cramps.png

81.2 KB
Loading

assets/images/fill-nearest.png

728 KB
Loading

assets/images/png_demo1.png

175 KB
Loading

assets/images/pngtiff.png

403 KB
Loading

0 commit comments

Comments
 (0)