diff --git a/b2-cwd/integration/live/session3/formulaire-contact/desktop.scss b/b2-cwd/integration/live/session3/formulaire-contact/desktop.scss new file mode 100644 index 0000000..b7a1808 --- /dev/null +++ b/b2-cwd/integration/live/session3/formulaire-contact/desktop.scss @@ -0,0 +1,23 @@ + + #main-menu + { + .menu-label + { + display:none; + } + ul + { + display:block; + margin-block-start: 1em; + margin-block-end: 1em; + margin-inline-start: 0px; + margin-inline-end: 0px; + padding-inline-start: 0px; + margin:0px; + li + { + display:inline-block; + width:24%; + } + } + } diff --git a/b2-cwd/integration/live/session3/formulaire-contact/espresso-neg.jpg b/b2-cwd/integration/live/session3/formulaire-contact/espresso-neg.jpg new file mode 100644 index 0000000..cea6e0c Binary files /dev/null and b/b2-cwd/integration/live/session3/formulaire-contact/espresso-neg.jpg differ diff --git a/b2-cwd/integration/live/session3/formulaire-contact/espresso-opt.jpg b/b2-cwd/integration/live/session3/formulaire-contact/espresso-opt.jpg new file mode 100644 index 0000000..cfe8fdb Binary files /dev/null and b/b2-cwd/integration/live/session3/formulaire-contact/espresso-opt.jpg differ diff --git a/b2-cwd/integration/live/session3/formulaire-contact/espresso-vert.jpg b/b2-cwd/integration/live/session3/formulaire-contact/espresso-vert.jpg new file mode 100644 index 0000000..94924d5 Binary files /dev/null and b/b2-cwd/integration/live/session3/formulaire-contact/espresso-vert.jpg differ diff --git a/b2-cwd/integration/live/session3/formulaire-contact/espresso.jpg b/b2-cwd/integration/live/session3/formulaire-contact/espresso.jpg new file mode 100644 index 0000000..7514c96 Binary files /dev/null and b/b2-cwd/integration/live/session3/formulaire-contact/espresso.jpg differ diff --git a/b2-cwd/integration/live/session3/formulaire-contact/form.css b/b2-cwd/integration/live/session3/formulaire-contact/form.css new file mode 100644 index 0000000..b8e9450 --- /dev/null +++ b/b2-cwd/integration/live/session3/formulaire-contact/form.css @@ -0,0 +1,103 @@ + +/* + +.contact-form-wrap +{ + position: fixed; + top:0; + left:0; + bottom:0; + right:0; + background-color: black; +} + +.cf +{ + &-form + { + position: relative; + display:table; + border-radius:20px; + padding:20px; + width:auto; + margin:0 auto; + background-color: white; + top:50%; + transform:translateY(-50%); + } + &-input + { + border: solid 1px #666; + border-radius: 4px; + padding:4px; + } + &-label + { + line-height: 30px; + box-sizing: border-box; + } + &-label + { + float:left; + clear:left; + padding-right:20px; + } + &-input + { + min-height: 20px; + line-height: 20px; + float:right; + clear:right; + box-sizing: border-box; + + } + &-textarea + { + margin:8px 0; + display:block; + width:100%; + clear: both; + } + &-input-group + { + &:after + { + content:""; + display: table; + clear:both; + overflow: auto; + } + padding:4px; + margin:4px; + } + &-btn + { + background-color: black; + color:white; + padding-left:10px; + padding-right:10px; + } +} +*/ + +/*
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+ */ \ No newline at end of file diff --git a/b2-cwd/integration/live/session3/formulaire-contact/print.css b/b2-cwd/integration/live/session3/formulaire-contact/print.css new file mode 100644 index 0000000..39a403f --- /dev/null +++ b/b2-cwd/integration/live/session3/formulaire-contact/print.css @@ -0,0 +1,4 @@ +#main-menu +{ + display: none!important; +} \ No newline at end of file diff --git a/b2-cwd/integration/live/session3/formulaire-contact/skeleton-full.html b/b2-cwd/integration/live/session3/formulaire-contact/skeleton-full.html new file mode 100644 index 0000000..f064dcf --- /dev/null +++ b/b2-cwd/integration/live/session3/formulaire-contact/skeleton-full.html @@ -0,0 +1,71 @@ + + + + + A hompage + + + + + +
+ +
+ + + + + + + +
+

A hompage

+
+
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. +
+

Lorem Ipsum has been the industry's standard dummy text

+

ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

+
+

ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

+
+ + + +
+

Contact us

+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+
+ + \ No newline at end of file diff --git a/b2-cwd/integration/live/session3/formulaire-contact/style-main.scss b/b2-cwd/integration/live/session3/formulaire-contact/style-main.scss new file mode 100644 index 0000000..d423874 --- /dev/null +++ b/b2-cwd/integration/live/session3/formulaire-contact/style-main.scss @@ -0,0 +1,212 @@ +/////// SESSIONS 1 et 2 + +$font : Arial, Helvetica, sans-serif; +$normalfontsize : 12px; +$marge : 8px; + +body +{ + font-family: $font; + font-size:$normalfontsize; +} + +h4 +{ + font-size:$normalfontsize + 2px; +} + +body,figure,img +{ + padding:0; + border:none; + margin:0; +} + +#switch:checked ~ p +{ + background-color:green; +} + +img +{ + // avec interpolation + width:calc(100% - (#{$marge}*2)); + height:auto; + margin:$marge; + top:50%; + transform: translateY(-25%); +} + +picture +{ + position:relative; + display:block; + max-height:40vh; + overflow:hidden; +} + +#main-menu +{ + text-align:center; + ul + { + list-style:none; + } + + li + { + text-align: left; + } + + li a, + li span, + li label + { + color:black; + text-decoration:none; + font-size:1.1rem; + } + + li span + { + color:#666; + } + + .menu-label + { + font-size:1.5rem; + color:black; + text-decoration:none; + font-weight:bold; + display:inline-block; + line-height:2rem; + } +} +.burger +{ + float:left; + margin: 3px 8px; + b,i + { + display: block; + width: 20px; + } + b + { + height: 2px; + margin-bottom: 5px; + position: relative; + background: #000; + border-radius: 2px; + z-index: 1; + &:first-of-type + { + margin-top:5px; + } + } + i + { + color:blue; + } +} + +//switch pour afficher le menu +#main-menu ul +{ + display:none; +} + +main, h1 +{ + margin:1rem; + padding:1rem; +} + +#main-menu #switch:checked ~ ul +{ + display:block; +} + +////////// FORMULAIRE DE CONTACT + +// switch por afficher le conteneur du formulaire +.contact-form-wrap +{ + display:none; +} + +#show-contact:checked ~ .contact-form-wrap +{ + display:block; +} + +// je positionne le fond en fixed pour lui faire occuper toute la page +.contact-form-wrap +{ + position:fixed; + //fond noir à 25% ce qui donne la transparence + background-color:rgba(0,0,0,0.25); + top:0; + bottom:0; + left:0; + right:0; + .h3 + { + color:white; + text-align: center; + margin-top:120px; + } +} + +//je préfixe les éléments du formulaire pour les regrouper dans mon sas +.cf +{ + //je centre le formulaire dans son conteneur (.contact-form-wrap) + &-form + { + background-color: white; + position: absolute; + top:50%; + left:50%; + transform: translate(-50%,-50%); + padding: 20px; + border-radius: 20px; + } + //je normalise tous les inputs / labels + &-input, &-label + { + min-height: 20px; + line-height: 20px; + box-sizing: border-box; + width:100%; + min-width:30vh; + } + &-input + { + border: solid 1px #666; + border-radius: 4px; + padding:4px; + } + &-label + { + line-height: 30px; + box-sizing: border-box; + } + &-btn + { + min-width: auto; + width:auto; + float: right; + background-color: black; + color:white; + padding-left:10px; + padding-right:10px; + margin-top:4px; + &:hover + { + background-color: white; + color:black; + transition: color 0.5s; + } + } +} diff --git a/b2-cwd/integration/live/session3/index-form.html b/b2-cwd/integration/live/session3/index-form.html new file mode 100644 index 0000000..55c3e77 --- /dev/null +++ b/b2-cwd/integration/live/session3/index-form.html @@ -0,0 +1,20 @@ + + + + + Exemple formulaire + + + + + +
+ + + + +
+ + \ No newline at end of file