Skip to content

Commit 8958554

Browse files
committed
integrate with Carbon ads
1 parent 93d19ab commit 8958554

File tree

4 files changed

+85
-8
lines changed

4 files changed

+85
-8
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/vendor
22
composer.lock
3+
/docs/Gemfile.lock
4+
/docs/_site

docs/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ theme: jekyll-theme-cayman
22

33
# Setup
44
title: Laravel File Manager
5-
description: File manager/gallery with CKEditor, TinyMCE and Summernote support.
5+
description: It's like Dropbox for your Laravel app.
66
google_analytics: UA-92410814-4
77

88
# About/contact

docs/_layouts/default.html

Lines changed: 80 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,99 @@
88
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
99
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
1010
<style>
11+
h1.project-name {
12+
margin-top: 100px;
13+
}
14+
h2.project-tagline {
15+
margin-bottom: 5rem;
16+
}
1117
#nav > span > a {
1218
color: #dddddd;
1319
}
1420
#nav > span:not(:last-child)::after {
1521
content: ' |';
1622
color: #dddddd;
1723
}
24+
.button-group {
25+
display: flex;
26+
justify-content: center;
27+
margin-bottom: 30px;
28+
}
29+
@media screen and (max-width: 42em) {
30+
a.btn {
31+
width: 50%;
32+
margin: 0;
33+
}
34+
35+
a.btn + a.btn {
36+
margin-top: 0;
37+
margin-left: 15px;
38+
}
39+
}
40+
41+
.main-content {
42+
padding: 1rem !important;
43+
}
44+
45+
#carbonads {
46+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
47+
overflow: hidden;
48+
background-color: rgba(0, 0, 0, .05);
49+
font-size: 14px;
50+
padding: 15px 15px 15px 160px;
51+
}
52+
53+
#carbonads a {
54+
text-decoration: none;
55+
}
56+
57+
#carbonads a:hover {
58+
color: inherit;
59+
}
60+
61+
.carbon-img {
62+
float: left;
63+
margin-left: -145px;
64+
width: 130px;
65+
height: 100px;
66+
}
67+
68+
.carbon-img img {
69+
width: 130px;
70+
height: 100px;
71+
}
72+
73+
.carbon-text {
74+
color: #333;
75+
}
76+
77+
.carbon-poweredby {
78+
display: block;
79+
color: #777;
80+
}
81+
82+
@media only screen and (min-width: 400px) {
83+
#carbonads {
84+
max-width: 330px;
85+
}
86+
}
1887
</style>
1988
</head>
2089
<body>
2190
<section class="page-header">
2291
<h1 class="project-name">{{ site.title | default: site.github.repository_name }}</h1>
2392
<h2 class="project-tagline">{{ site.description | default: site.github.project_tagline }}</h2>
24-
<a class="btn" href="https://github.com/UniSharp/laravel-filemanager-example-5.3" target="_blank">Demo</a>
25-
{% if site.github.is_project_page %}
93+
<div class="button-group">
94+
<a class="btn" href="https://github.com/UniSharp/laravel-filemanager-example-5.3" target="_blank">Demo</a>
95+
{% if site.github.is_project_page %}
2696
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
27-
{% endif %}
28-
{% if site.show_downloads %}
29-
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
30-
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
31-
{% endif %}
97+
{% endif %}
98+
{% if site.show_downloads %}
99+
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
100+
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
101+
{% endif %}
102+
</div>
103+
32104
<nav id="nav">
33105
<span><a href="/laravel-filemanager">Home</a></span>
34106
<span><a href="installation">Installation</a></span>
@@ -42,6 +114,7 @@ <h2 class="project-tagline">{{ site.description | default: site.github.project_t
42114
</section>
43115

44116
<section class="main-content">
117+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7DE2JL&placement=unisharpgithubio" id="_carbonads_js"></script>
45118
{{ content }}
46119

47120
<footer class="site-footer">

0 commit comments

Comments
 (0)