Compare commits

...

11 commits

Author SHA1 Message Date
Jesper Hess 1874ba9234
Update readme with docker-compose info 2018-01-22 16:44:22 -08:00
Jesper Hess 30a954ff4d
Add docker-compose file
Just to make it easier to do development without installing all the jekyll stuff yourself.

All you need is docker+docker-compose and run 'docker-compose up' in the root of the project.
2018-01-22 16:34:17 -08:00
Jesper Hess 70a2357283
Add jekyll-livereload support
To enable livereload, add
--livereload --reload_port 35729
to jekyll serve command. Pages will now auto-reload when changes are made during development.
2018-01-22 16:32:56 -08:00
Jeppe Ernst b3a05d12fe slant fix 2018-01-22 16:05:07 +01:00
Jeppe Ernst e122110a26 update deploy/build instructions 2018-01-22 15:57:08 +01:00
Kasper Friis Christensen 38e1fc2ddd First spring clean, use nth for odd even and removed before 2018-01-22 15:26:31 +01:00
Kasper Friis Christensen 17315befd8 Removed unused _posts folder and post 2018-01-22 10:06:43 +01:00
Kasper Friis Christensen 8d7f0db0bf Updated readme 2018-01-21 23:08:25 +01:00
Jeppe Ernst 7f90e5ec9d firefox and safari CSS fixes 2018-01-21 20:01:06 +01:00
Jeppe Ernst 952a79ddad add README 2018-01-21 01:05:45 +01:00
Jeppe Ernst 3356f60421 remove scroll magic for now
working on it on a separate branch
2018-01-21 00:59:39 +01:00
14 changed files with 76 additions and 120 deletions

View file

@ -18,6 +18,7 @@ gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here! # If you have any plugins, put them here!
group :jekyll_plugins do group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6" gem "jekyll-feed", "~> 0.6"
gem "jekyll-livereload"
end end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem # Windows does not include zoneinfo files, so bundle the tzinfo-data gem

27
README.md Normal file
View file

@ -0,0 +1,27 @@
# Jekyll site for ulovliglogning.dk
## To work on the code, either
### Use docker
You need docker-compose. Simply run
`docker-compose up` to launch the site in a docker container with livereload support.
### Or install Jekyll locally
#### Install Jekyll and Bundler gems through RubyGems
`gem install jekyll bundler`
#### Install dependencies
`bundle install`
#### Build the site local
`bundle exec jekyll serve`
You can now see the site at [localhost:4000](http://localhost:4000)
## Deploy
It's **important** that you build the site with `JEKYLL_ENV=production bundle exec jekyll build` before deploying the contents of the `_site` directory. We're doing some debugging stuff when then project is build in the development env.
## Structure
The contents of the index page is defined in the frontmatter of the file `index.md`

View file

@ -16,10 +16,5 @@
<footer> <footer>
Last generated at {{ site.time | date_to_rfc822 }} Last generated at {{ site.time | date_to_rfc822 }}
</footer> </footer>
<script src="{{ site.baseurl }}/assets/js/vendor/ScrollMagic.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/vendor/TweenMax.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/vendor/animation.gsap.js"></script>
<script src="{{ site.baseurl }}/assets/js/vendor/debug.addIndicators.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/main.js"></script>
</body> </body>
</html> </html>

View file

@ -1,25 +0,0 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2018-01-20 13:10:49 +0100
categories: jekyll update
---
Youll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Jekyll also offers powerful support for code snippets:
{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekylls GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
[jekyll-docs]: https://jekyllrb.com/docs/home
[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll-talk]: https://talk.jekyllrb.com/

View file

@ -2,6 +2,12 @@
$body-bg: #2A2A2A; $body-bg: #2A2A2A;
$alternate-bg: #ff5800; $alternate-bg: #ff5800;
$color-mine-shaft: #2A2A2A;
$color-international-orange: #ff5800;
$background-primary: $color-mine-shaft;
$background-alternative: $color-international-orange;
/* Size */ /* Size */
$screen-xs: 600px !default; $screen-xs: 600px !default;
$screen-xs-min: $screen-xs !default; $screen-xs-min: $screen-xs !default;

View file

@ -6,19 +6,21 @@
z-index: 1000; z-index: 1000;
pointer-events: none; pointer-events: none;
.redLight { .redLight {
animation: redLigth 1s ease infinite; animation: redLight 1s ease infinite;
} }
.glare { .glare {
transform-origin: 80% 80%; transform-origin: 80% 80%;
transform-box: fill-box;
animation: glare 4s linear infinite; animation: glare 4s linear infinite;
} }
.outerRing { .outerRing {
transform-origin: 50% 50%; transform-origin: 50% 50%;
transform-box: fill-box;
animation: outerRing 4s linear infinite; animation: outerRing 4s linear infinite;
} }
} }
@keyframes redLigth { @keyframes redLight {
0% { 0% {
fill-opacity: 1; fill-opacity: 1;
} }

View file

@ -1,33 +1,38 @@
section { section {
min-height: 100vh; min-height: 100vh;
width: 100%; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative;
background: $body-bg;
/*&:not(:first-child):before*/ &:before {
content: "";
width: 100%;
height: 30px;
position: absolute;
top: -30px;
background: linear-gradient(to left bottom, $alternate-bg 0%,$alternate-bg 49%,$body-bg 50%,$body-bg 100%);
background: linear-gradient(to left bottom, transparent 0%,transparent 49%,$body-bg 50%,$body-bg 100%);
}
&.even {
background: $alternate-bg;
&:before {
background: linear-gradient(to left bottom, $body-bg 0%,$body-bg 49%,$alternate-bg 50%,$alternate-bg 100%);
background: linear-gradient(to left bottom, transparent 0%,transparent 49%,$alternate-bg 50%,$alternate-bg 100%);
}
}
background-color: $background-primary;
background-image: linear-gradient(
to left bottom,
$background-primary 49%,
$background-alternative 50%
);
background-size: 100% 30px;
background-repeat: no-repeat;
background-position: bottom;
&:nth-of-type(even) {
background-color: $background-alternative;
background-image: linear-gradient(
to left bottom,
$background-alternative 49%,
$background-primary 50%
);
}
&:last-of-type {
background-image: none;
}
}
section {
.paragraphs { .paragraphs {
column-count: 2; column-count: 2;
margin-bottom: 200px; margin-bottom: 3rem;
margin: 1rem;
h3, p { h3, p {
max-width: 300px; max-width: 300px;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;

View file

@ -1,48 +0,0 @@
// var controllerPanes = new ScrollMagic.Controller({
// globalSceneOptions: {
// triggerHook: 'onLeave'
// }
// });
// var controllerAnimations = new ScrollMagic.Controller({
// globalSceneOptions: {
// //triggerHook: 'onLeave'
// }
// });
// // get all sections
// var sections = document.querySelectorAll("section");
// var sectionCount = sections.length;
// var sectionDurations = [];
// var wipeAnimation = new TimelineLite()
// for (var i = 0; i < sections.length; i++) {
// sectionDurations.push(sections[i].offsetHeight/300);
// wipeAnimation = wipeAnimation.fromTo(sections[i], sectionDurations[i], {
// y: "0",
// }, {
// y: i == sections.length - 1 ? "0" : "-100%",
// })
// }
// // create scene for every slide
// //for (var i = 0; i < sections.length - 1; i++) {
// new ScrollMagic.Scene({
// triggerElement: document.getElementsByClassName("container")[0],
// triggerHook: "onLeave",
// })
// .setPin(document.getElementsByClassName("container")[0])
// .setTween(wipeAnimation)
// .addIndicators() // add indicators (requires plugin)
// .addTo(controllerPanes);
// //}
// // for (var i = 0; i < sections.length; i++) {
// // new ScrollMagic.Scene({
// // triggerElement: sections[i]
// // })
// // .setClassToggle(sections[i], "appear")
// // .addIndicators({name: "1 - add a class"}) // add indicators (requires plugin)
// // .addTo(controllerAnimations);
// // }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

View file

File diff suppressed because one or more lines are too long

9
docker-compose.yml Normal file
View file

@ -0,0 +1,9 @@
jekyll:
image: jekyll/jekyll
command: jekyll serve --livereload --reload_port 35729
ports:
- 4000:4000
- 35729:35729
volumes:
- .:/srv/jekyll