Init application
This commit is contained in:
parent
e24b29aa6f
commit
28ddfa2f57
8 changed files with 73 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_22" project-jdk-name="rbenv: 3.1.2" project-jdk-type="RUBY_SDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,2 +1,17 @@
|
|||
@import 'bootstrap/scss/bootstrap';
|
||||
@import 'bootstrap-icons/font/bootstrap-icons';
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 15px solid $primary;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
border-top: 5px solid $primary;
|
||||
}
|
|
@ -1,2 +1,7 @@
|
|||
class ApplicationController < ActionController::Base
|
||||
def home; end
|
||||
|
||||
def apropos; end
|
||||
|
||||
def legal; end
|
||||
end
|
||||
|
|
8
app/views/application/apropos.html.erb
Normal file
8
app/views/application/apropos.html.erb
Normal file
|
@ -0,0 +1,8 @@
|
|||
<nav aria-label="Fil d’ariane">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item active"><%= link_to 'Accueil', root_path %></li>
|
||||
<li class="breadcrumb-item active" aria-current="page" aria-label="Page actuelle">À propos</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<h1>À propos</h1>
|
7
app/views/application/home.html.erb
Normal file
7
app/views/application/home.html.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<nav aria-label="Fil d’ariane">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item active" aria-current="page" aria-label="Page actuelle">Accueil</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<p>Découvrez nos dernières démarches en cours !</p>
|
8
app/views/application/legal.html.erb
Normal file
8
app/views/application/legal.html.erb
Normal file
|
@ -0,0 +1,8 @@
|
|||
<nav aria-label="Fil d’ariane">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item active"><%= link_to 'Accueil', root_path %></li>
|
||||
<li class="breadcrumb-item active" aria-current="page" aria-label="Page actuelle">Mentions légales</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<h1>Mentions légales</h1>
|
|
@ -1,16 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Demarches</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<title>Association PURR :: Nos démarches</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
||||
<%= javascript_importmap_tags %>
|
||||
</head>
|
||||
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
||||
<%= javascript_importmap_tags %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
<body>
|
||||
<header class="mb-4">
|
||||
<h1>
|
||||
<%= link_to 'Nos démarches', root_path, class: %i[nav-link] %>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<%= yield %>
|
||||
</main>
|
||||
|
||||
<footer class="mb-0 px-2 py-3 small text-center">
|
||||
<%= link_to 'À propos', apropos_path, class: %i[link-primary] %> |
|
||||
<%= link_to 'Mentions légales', legal_path, class: %i[link-primary] %>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
Rails.application.routes.draw do
|
||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||
root "application#home"
|
||||
get 'apropos', to: 'application#apropos'
|
||||
get 'legal', to: 'application#legal'
|
||||
|
||||
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
||||
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
||||
get "up" => "rails/health#show", as: :rails_health_check
|
||||
|
||||
# Defines the root path route ("/")
|
||||
# root "posts#index"
|
||||
resources :letters
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue