commit 70fa4525b3a4ee74c1e7e174944521a2e89965a3 Author: Nolwenn LAVIELLE Date: Thu Nov 7 14:35:45 2019 +0100 Ajout de site statique sous middleman diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0dcc3ec --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.bundle +.cache +.DS_Store +.sass-cache +build/ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..1241fc5 --- /dev/null +++ b/Gemfile @@ -0,0 +1,13 @@ +source 'https://rubygems.org' + +gem 'middleman', '~> 4.2' +gem 'middleman-sprockets' +gem 'middleman-autoprefixer', '~> 2.7' +gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby, :x64_mingw] +gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw, :x64_mingw] + +gem 'bootstrap-sass' + +source 'https://rails-assets.org' do + gem 'rails-assets-jquery' +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..1c7b872 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,122 @@ +GEM + remote: https://rubygems.org/ + remote: https://rails-assets.org/ + specs: + activesupport (5.0.7.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + autoprefixer-rails (9.7.1) + execjs + backports (3.15.0) + bootstrap-sass (3.4.1) + autoprefixer-rails (>= 5.2.1) + sassc (>= 2.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.1.5) + contracts (0.13.0) + dotenv (2.7.5) + erubis (2.7.0) + execjs (2.7.0) + fast_blank (1.0.0) + fastimage (2.1.7) + ffi (1.11.1) + haml (5.1.2) + temple (>= 0.8.0) + tilt + hamster (3.0.0) + concurrent-ruby (~> 1.0) + hashie (3.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + kramdown (1.17.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + memoist (0.16.0) + middleman (4.3.5) + coffee-script (~> 2.2) + haml (>= 4.0.5) + kramdown (~> 1.2) + middleman-cli (= 4.3.5) + middleman-core (= 4.3.5) + middleman-autoprefixer (2.10.1) + autoprefixer-rails (~> 9.1) + middleman-core (>= 3.3.3) + middleman-cli (4.3.5) + thor (>= 0.17.0, < 2.0) + middleman-core (4.3.5) + activesupport (>= 4.2, < 5.1) + addressable (~> 2.3) + backports (~> 3.6) + bundler + contracts (~> 0.13.0) + dotenv + erubis + execjs (~> 2.0) + fast_blank + fastimage (~> 2.0) + hamster (~> 3.0) + hashie (~> 3.4) + i18n (~> 0.9.0) + listen (~> 3.0.0) + memoist (~> 0.14) + padrino-helpers (~> 0.13.0) + parallel + rack (>= 1.4.5, < 3) + sassc (~> 2.0) + servolux + tilt (~> 2.0.9) + uglifier (~> 3.0) + middleman-sprockets (4.1.1) + middleman-core (~> 4.0) + sprockets (>= 3.0) + minitest (5.13.0) + padrino-helpers (0.13.3.4) + i18n (~> 0.6, >= 0.6.7) + padrino-support (= 0.13.3.4) + tilt (>= 1.4.1, < 3) + padrino-support (0.13.3.4) + activesupport (>= 3.1) + parallel (1.18.0) + public_suffix (4.0.1) + rack (2.0.7) + rails-assets-jquery (3.4.1) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + sassc (2.2.1) + ffi (~> 1.9) + servolux (0.13.0) + sprockets (4.0.0) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + temple (0.8.2) + thor (0.20.3) + thread_safe (0.3.6) + tilt (2.0.10) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + +PLATFORMS + ruby + +DEPENDENCIES + bootstrap-sass + middleman (~> 4.2) + middleman-autoprefixer (~> 2.7) + middleman-sprockets + rails-assets-jquery! + tzinfo-data + wdm (~> 0.1) + +BUNDLED WITH + 1.17.2 diff --git a/config.rb b/config.rb new file mode 100644 index 0000000..71ec870 --- /dev/null +++ b/config.rb @@ -0,0 +1,46 @@ +# Activate and configure extensions +# https://middlemanapp.com/advanced/configuration/#configuring-extensions + +activate :autoprefixer do |prefix| + prefix.browsers = "last 2 versions" +end + +# Layouts +# https://middlemanapp.com/basics/layouts/ + +# Per-page layout changes +page '/*.xml', layout: false +page '/*.json', layout: false +page '/*.txt', layout: false + +# With alternative layout +# page '/path/to/file.html', layout: 'other_layout' + +# Proxy pages +# https://middlemanapp.com/advanced/dynamic-pages/ + +# proxy( +# '/this-page-has-no-template.html', +# '/template-file.html', +# locals: { +# which_fake_page: 'Rendering a fake page with a local variable' +# }, +# ) + +# Helpers +# Methods defined in the helpers block are available in templates +# https://middlemanapp.com/basics/helper-methods/ + +# helpers do +# def some_helper +# 'Helping' +# end +# end + +# Build-specific configuration +# https://middlemanapp.com/advanced/configuration/#environment-specific-settings + +# configure :build do +# activate :minify_css +# activate :minify_javascript +# end diff --git a/data/navigation.yml b/data/navigation.yml new file mode 100644 index 0000000..039fc31 --- /dev/null +++ b/data/navigation.yml @@ -0,0 +1,6 @@ +- name: Accueil + link: / + goto: home +- name: À propos + link: /about.html + goto: about diff --git a/data/partenaires.yml b/data/partenaires.yml new file mode 100644 index 0000000..6ee77f6 --- /dev/null +++ b/data/partenaires.yml @@ -0,0 +1,3 @@ +- name: Codeurs en liberté + link: https://www.xn--codeursenlibert-pnb.fr/ + logo: /images/codeurs-en-liberte.svg diff --git a/source/images/.keep b/source/images/.keep new file mode 100644 index 0000000..e69de29 diff --git a/source/images/codeurs-en-liberte.svg b/source/images/codeurs-en-liberte.svg new file mode 100644 index 0000000..4246f48 --- /dev/null +++ b/source/images/codeurs-en-liberte.svg @@ -0,0 +1,200 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/index.html.erb b/source/index.html.erb new file mode 100644 index 0000000..8bc9082 --- /dev/null +++ b/source/index.html.erb @@ -0,0 +1,7 @@ +--- +title: Pas Sage En Seine +--- + +

Bienvenue sur le site du festival

+ +

Mais au fait, c’est quoi Pas Sage En Seine ?

diff --git a/source/javascripts/site.js b/source/javascripts/site.js new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/source/javascripts/site.js @@ -0,0 +1 @@ + diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb new file mode 100644 index 0000000..af6d84a --- /dev/null +++ b/source/layouts/layout.erb @@ -0,0 +1,21 @@ + + + + + + + + <%= current_page.data.title || "Middleman" %> + <%= stylesheet_link_tag "site" %> + <%= javascript_include_tag "site" %> + + +
+ <%= partial "partials/navigation" %> +
+ <%= yield %> + + + diff --git a/source/partials/_navigation.erb b/source/partials/_navigation.erb new file mode 100644 index 0000000..3a4f831 --- /dev/null +++ b/source/partials/_navigation.erb @@ -0,0 +1,7 @@ + diff --git a/source/partials/_partenaires.erb b/source/partials/_partenaires.erb new file mode 100644 index 0000000..b6fc53f --- /dev/null +++ b/source/partials/_partenaires.erb @@ -0,0 +1,3 @@ +<% data.partenaires.each do |item| %> + <%= item.name %> +<% end %> diff --git a/source/stylesheets/_bootstrap-custom.scss b/source/stylesheets/_bootstrap-custom.scss new file mode 100644 index 0000000..2abc609 --- /dev/null +++ b/source/stylesheets/_bootstrap-custom.scss @@ -0,0 +1,54 @@ +/*! + * Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com) + * Copyright 2011-2017 The Bootstrap Authors + * Copyright 2011-2017 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +// Core variables and mixins +@import "bootstrap/variables"; +@import "bootstrap/mixins"; +@import "bootstrap/custom"; + +// Reset and dependencies +@import "bootstrap/normalize"; +@import "bootstrap/print"; + +// Core CSS +@import "bootstrap/reboot"; +@import "bootstrap/type"; +@import "bootstrap/images"; +@import "bootstrap/code"; +@import "bootstrap/grid"; +@import "bootstrap/tables"; +@import "bootstrap/forms"; +@import "bootstrap/buttons"; + +// Components +@import "bootstrap/transitions"; +@import "bootstrap/dropdown"; +@import "bootstrap/button-group"; +@import "bootstrap/input-group"; +@import "bootstrap/custom-forms"; +@import "bootstrap/nav"; +@import "bootstrap/navbar"; +@import "bootstrap/card"; +@import "bootstrap/breadcrumb"; +@import "bootstrap/pagination"; +@import "bootstrap/badge"; +@import "bootstrap/jumbotron"; +@import "bootstrap/alert"; +@import "bootstrap/progress"; +@import "bootstrap/media"; +@import "bootstrap/list-group"; +@import "bootstrap/responsive-embed"; +@import "bootstrap/close"; + +// Components w/ JavaScript +@import "bootstrap/modal"; +@import "bootstrap/tooltip"; +@import "bootstrap/popover"; +@import "bootstrap/carousel"; + +// Utility classes +@import "bootstrap/utilities"; diff --git a/source/stylesheets/_variables.scss b/source/stylesheets/_variables.scss new file mode 100644 index 0000000..4eee57d --- /dev/null +++ b/source/stylesheets/_variables.scss @@ -0,0 +1,16 @@ +// Variables + +// Scaffolding +$body-bg: #fff; +$text-color: #333; +$link-color: #337ab7; +$link-hover-color: darken($link-color, 15%); +$link-hover-decoration: underline; + +// Typography +$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif; +$font-family-serif: Georgia, "Times New Roman", Times, serif; +$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace; +$font-family-base: $font-family-sans-serif; +$font-size-base: 14px; +$line-height-base: 1.428571429; diff --git a/source/stylesheets/site.css.scss b/source/stylesheets/site.css.scss new file mode 100644 index 0000000..cfdc4b8 --- /dev/null +++ b/source/stylesheets/site.css.scss @@ -0,0 +1,2 @@ +@import "variables"; +@import "bootstrap";