diff --git a/cgi-bin/conn.conn b/cgi-bin/conn.conn new file mode 100755 index 0000000..6571aa4 --- /dev/null +++ b/cgi-bin/conn.conn @@ -0,0 +1,9 @@ + diff --git a/cgi-bin/functions.inc b/cgi-bin/functions.inc new file mode 100755 index 0000000..f297f2f --- /dev/null +++ b/cgi-bin/functions.inc @@ -0,0 +1,162 @@ +
+ + + + +"; +$bottom.="
+Ordine dei Farmacisti di Salerno

$SM_subject$send_date
+ttop; + +$bottom="

". +"Questa e-mail contiene informazioni di proprietà e di natura confidenziale. Se non siete il destinatario corretto di questo messaggio, vi ricordiamo che ogni diffusione, distribuzione o copia di questo messaggio è severamente proibita. Se avete ricevuto questo messaggio per errore, siete pregati di cancellarlo immediatamente. Quanto precede ai fini del rispetto del D.L. n. 196/03 sulla tutela dei dati personali.
-
". +"This e-mail (and any attachments) is strictly confidential and for use only by intendend recipients. If you are not an intended recipients, we point you that any diffusion, distribution or copy of this message is severely forbidden. If you have received t his message by mistake please destroy it immediately (under the observance of D.L. n. 196/03 which protects personal data).". +"
Rispetta l'ambiente. Non stampare questa mail se non è necessaria."; + +$bottom.="
"; + +$headers = "From: \"Ordine dei Farmacisti di Salerno\" \n"; +$headers .= "MIME-Version: 1.0\n"; + +$msg=""; + + if($SM_append){ + + $append_name = basename($SM_append); + $append_type = mime_content_type($SM_append); + + $data = chunk_split(base64_encode(file_get_contents($SM_append))); + + $semi_rand = md5(time()); + $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; + + $headers .= "Content-Type: multipart/mixed;\n"; + $headers .= " boundary=\"{$mime_boundary}\"\n"; + $headers .= "X-Mailer: PHP " . phpversion(); + + $msg .= "This is a multi-part message in MIME format.\n\n"; + $msg .= "--{$mime_boundary}\n"; + $msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; + $msg .= "Content-Transfer-Encoding: 7bit\n\n"; + $msg .= $top.$SM_message.$bottom."\n\n"; + $msg .= "--{$mime_boundary}\n"; + $msg .= "Content-Type: {$append_type}; name=\"{$append_name}\"\n"; + $msg .= "Content-Transfer-Encoding: base64\n"; + $msg .= "Content-Disposition: attachment; filename=\"{$append_name}\"\n\n"; + $msg .= $data."\n\n"; + + $msg .= "--{$mime_boundary}--\n"; + + }else{ + $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; + $msg = $top.$SM_message.$bottom."\n\n"; + } + + + if(@mail(trim($SM_email),$SM_subject,$msg, $headers)){ + + if(@$SM_email2){ + if($SM_email_CC){ + $headers = "Bcc: $SM_email_CC \n".$headers; + } + @mail(trim($SM_email2),$SM_subject,$msg, $headers)or die("errore invio mail"); + } + + if($SM_showalert){ + echo "

E-mail inviata correttamente


"; + } + + }else{ + + if($SM_showalert){ + echo "


ERRORE:


". + "Si è verificato un errore nell'invio della mail.
". + "Si prega contattare l'amministratore del sistema.
"; + } + } + + + $of=fopen("../mailoutput.html","w"); + fwrite($of, "Email:".$SM_email."\n
Email:".$SM_email2."\n
Email CC:".$SM_email_CC."\n
Subject:".$SM_subject."\n

CONTENT:\n".$msg); + fclose($of); + +} +*/ + + + + + + +?> diff --git a/cgi-bin/params.inc b/cgi-bin/params.inc new file mode 100755 index 0000000..a9143b4 --- /dev/null +++ b/cgi-bin/params.inc @@ -0,0 +1,4 @@ + diff --git a/components/breadcrumb/breadcrumb.html b/components/breadcrumb/breadcrumb.html index 1ed4672..063dcd5 100644 --- a/components/breadcrumb/breadcrumb.html +++ b/components/breadcrumb/breadcrumb.html @@ -1,6 +1,8 @@ '.$level[0].''; } diff --git a/components/buy/buy.html b/components/buy/buy.html index ac76340..2a95580 100644 --- a/components/buy/buy.html +++ b/components/buy/buy.html @@ -1,8 +1,88 @@
-
+ + + +
+
+
+
+
+ +
+
+
+ + + +
+
+ Format + +
+
+ Biologico + +
+
+ Annata + +
+
+ + +
+
+ + + +
+ + +
+
+
+
+
+ + +
+
+
+ + +
+
+ + + + + + +
+
+ + +
+
diff --git a/components/buy/buy.js b/components/buy/buy.js index af5a4a7..450c1f8 100644 --- a/components/buy/buy.js +++ b/components/buy/buy.js @@ -2,4 +2,31 @@ $(document).ready( () => { console.log('Load component - buy') -}) \ No newline at end of file + const component = $('.component-buy') + + if(component.length) { + + const details = component.find('.details') + + if(details.length) { + const qty = details.find('.qty') + const plus = details.find('.plus') + const minus = details.find('.minus') + + qty.on('input', (e) => { $(e.currentTarget).val($(e.currentTarget).val().replace(/[^0-9]/g, '') || 1) }) + + plus.off('.click').on('click.click', () => { + const value = parseInt(qty.val()) + qty.val(value + 1) + }) + + minus.off('.click').on('click.click', () => { + const value = parseInt(qty.val()) + if(value > 1) { + qty.val(value - 1) + } + }) + } + } + +}) diff --git a/components/buy/buy.scss b/components/buy/buy.scss index 008676f..ad4ec70 100644 --- a/components/buy/buy.scss +++ b/components/buy/buy.scss @@ -2,6 +2,202 @@ @import "../../src/scss/mixins.scss"; .component-buy { - padding-top: $header-height-mobile+60px; + padding: 30px 0; + .content { + width: 100%; + + .box { + display: block; + width: 100%; + height: 100%; + background: $white; + padding: 30px 0; + + .image { + display: block; + height: 150px; + margin: auto; + padding: 0 0 20px 0; + } + + .type { + display: block; + text-align: center; + @include font-style($font-serif, 'regular', $font-16); + color: $brown; + line-height: $font-22; + } + + .name { + display: block; + text-align: center; + @include font-style($font-serif, 'regular', $font-24); + color: $olive-dark; + line-height: $font-32; + } + + .price { + display: block; + text-align: center; + @include font-style($font-serif, 'regular', $font-20); + color: $brown; + line-height: $font-38; + } + } + + .details { + padding: 0 0 40px 0; + + .image-container{ + display: block; + width: 100%; + margin: auto; + padding: 40px; + background: $white; + + .image { + display: block; + width: 30%; + margin: auto; + } + } + + .type { + display: block; + text-align: left; + @include font-style($font-serif, 'regular', $font-16); + color: $brown; + line-height: $font-22; + padding-top: 30px; + } + + .name { + display: block; + text-align: left; + @include font-style($font-serif, 'regular', $font-44); + color: $olive-dark; + line-height: $font-60; + padding-bottom: 24px; + } + + .description { + display: block; + text-align: left; + @include font-style($font-sans, 'regular', $font-18); + color: $gray; + line-height: $font-24; + } + + .price { + display: block; + text-align: left; + @include font-style($font-serif, 'regular', $font-28); + color: $brown; + line-height: $font-38; + padding-top: 28px; + } + + .items { + display: block; + width: 100%; + padding-top: 28px; + + .item { + display: block; + width: 50%; + padding: 3px 0; + + .label, + .value { + @include font-style($font-sans, 'regular', $font-18); + color: $gray; + line-height: $font-24; + text-transform: uppercase; + } + + .value { + text-transform: none; + float: right; + } + } + } + + .price { + display: block; + text-align: left; + @include font-style($font-serif, 'regular', $font-28); + color: $brown; + line-height: $font-38; + padding-top: 28px; + } + + .add-container { + display: block; + padding-top: 28px; + + .qty-container { + position: relative; + display: inline-block; + float: left; + width: calc(50% - 4px); + + .qty { + appearance: none; + -moz-appearance: textfield; + &:-webkit-inner-spin-button { + appearance: none; + } + + text-align: center; + } + + .plus, + .minus { + position: absolute; + appearance: none; + background: none; + padding: 0; + margin: 0; + border: 0; + top: 10px; + left: 10px; + font-size: $font-20; + color: $gray; + } + + .plus { + left: initial; + right: 10px; + } + } + + .add-to-cart { + position: relative; + display: inline-flex; + float: right; + height: 48px; + padding: 0; + @include font-style($font-serif, 'regular', $font-28); + width: calc(50% - 4px); + } + } + } + + &.has-detail { + background: $white; + } + } +} + +@media (min-width: map-get($grid-breakpoints, 'md')) { + .component-buy { + .content { + .details { + .image-container{ + width: calc(100% - 40px); + } + } + } + } } diff --git a/components/header/header.html b/components/header/header.html index 37259de..494bccc 100644 --- a/components/header/header.html +++ b/components/header/header.html @@ -17,16 +17,16 @@
    -
  • "> +
  • "> conoscere
  • -
  • "> +
  • "> produrre
  • -
  • "> +
  • "> acquistare
  • -
  • "> +
  • "> raccontare
diff --git a/components/sectionHeader/sectionHeader.html b/components/sectionHeader/sectionHeader.html index 2a3ef52..a309698 100644 --- a/components/sectionHeader/sectionHeader.html +++ b/components/sectionHeader/sectionHeader.html @@ -1,3 +1,25 @@ + +

diff --git a/images/products/1.png b/images/products/1.png new file mode 100644 index 0000000..1a5bb76 Binary files /dev/null and b/images/products/1.png differ diff --git a/images/products/2.png b/images/products/2.png new file mode 100644 index 0000000..b6c7a07 Binary files /dev/null and b/images/products/2.png differ diff --git a/images/products/3.png b/images/products/3.png new file mode 100644 index 0000000..afdccf5 Binary files /dev/null and b/images/products/3.png differ diff --git a/pages/index.ejs b/pages/index.ejs index 7114cc8..f4036fc 100644 --- a/pages/index.ejs +++ b/pages/index.ejs @@ -1,21 +1,22 @@ @@ -34,8 +35,7 @@
diff --git a/src/fonts/066ce24dae3730ed6c648b09efaea93a.eot b/src/fonts/066ce24dae3730ed6c648b09efaea93a.eot deleted file mode 100644 index 231fba0..0000000 Binary files a/src/fonts/066ce24dae3730ed6c648b09efaea93a.eot and /dev/null differ diff --git a/src/fonts/066ce24dae3730ed6c648b09efaea93a.ttf b/src/fonts/066ce24dae3730ed6c648b09efaea93a.ttf deleted file mode 100644 index 0ca9a90..0000000 Binary files a/src/fonts/066ce24dae3730ed6c648b09efaea93a.ttf and /dev/null differ diff --git a/src/fonts/066ce24dae3730ed6c648b09efaea93a.woff2 b/src/fonts/066ce24dae3730ed6c648b09efaea93a.woff2 deleted file mode 100644 index f5319ad..0000000 Binary files a/src/fonts/066ce24dae3730ed6c648b09efaea93a.woff2 and /dev/null differ diff --git a/src/fonts/icomoon.eot b/src/fonts/icomoon.eot index 9af123c..ac73c6c 100644 Binary files a/src/fonts/icomoon.eot and b/src/fonts/icomoon.eot differ diff --git a/src/fonts/icomoon.svg b/src/fonts/icomoon.svg index f8a03fe..414e9a2 100644 --- a/src/fonts/icomoon.svg +++ b/src/fonts/icomoon.svg @@ -7,9 +7,8 @@ - - - - - + + + + \ No newline at end of file diff --git a/src/fonts/icomoon.ttf b/src/fonts/icomoon.ttf index e70ccd6..e6b2c95 100644 Binary files a/src/fonts/icomoon.ttf and b/src/fonts/icomoon.ttf differ diff --git a/src/fonts/icomoon.woff b/src/fonts/icomoon.woff index 28d9002..e7cd8a6 100644 Binary files a/src/fonts/icomoon.woff and b/src/fonts/icomoon.woff differ diff --git a/src/fonts/selection.json b/src/fonts/selection.json index da89864..dbcf73f 100644 --- a/src/fonts/selection.json +++ b/src/fonts/selection.json @@ -1 +1 @@ -{"IcoMoonType":"selection","icons":[{"icon":{"paths":["M90.467 231.356c-10.031 0.021-19.188 3.748-26.178 9.883l0.045-0.039c-8.36 7.337-13.608 18.044-13.608 29.977 0 10.064 3.734 19.257 9.891 26.268l-0.039-0.045 421.444 481.644c7.338 8.359 18.045 13.607 29.978 13.607s22.64-5.248 29.939-13.562l0.039-0.045 421.444-481.644c6.119-6.966 9.853-16.158 9.853-26.223 0-11.933-5.249-22.64-13.563-29.938l-0.045-0.039c-6.964-6.112-16.152-9.842-26.21-9.842-11.928 0-22.631 5.244-29.929 13.552l-0.039 0.045-391.489 447.378-391.489-447.378c-7.337-8.355-18.041-13.6-29.97-13.6-0.026 0-0.052 0-0.078 0l0.004-0z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["arrow-down"]},"attrs":[{}],"properties":{"order":281,"id":4,"name":"arrow-down","prevSize":32,"code":59648},"setIdx":0,"setId":0,"iconIdx":0},{"icon":{"paths":["M231.352 933.537c0.021 10.031 3.748 19.188 9.883 26.178l-0.039-0.045c7.337 8.36 18.044 13.608 29.977 13.608 10.064 0 19.257-3.734 26.268-9.891l-0.045 0.039 481.644-421.444c8.359-7.338 13.607-18.045 13.607-29.978s-5.248-22.64-13.562-29.939l-0.045-0.039-481.644-421.444c-6.966-6.119-16.158-9.853-26.223-9.853-11.933 0-22.64 5.249-29.938 13.563l-0.039 0.045c-6.112 6.964-9.842 16.152-9.842 26.21 0 11.928 5.244 22.631 13.552 29.929l0.045 0.039 447.378 391.489-447.378 391.489c-8.355 7.337-13.6 18.041-13.6 29.97 0 0.026 0 0.052 0 0.078l-0-0.004z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["arrow-right"]},"attrs":[{}],"properties":{"order":282,"id":3,"name":"arrow-right","prevSize":32,"code":59649},"setIdx":0,"setId":0,"iconIdx":1},{"icon":{"paths":["M58.668 71.087c-0.009-0-0.019-0-0.029-0-16.622 0-30.098 13.475-30.098 30.098 0 0 0 0 0 0l-0-0c-0 0.009-0 0.019-0 0.029 0 16.622 13.475 30.098 30.098 30.098 0.010 0 0.021-0 0.031-0l110.19 0c35.747 0 66.548 23.965 75.215 58.52l54.523 215.974c0.203 0.786 0.374 1.356 0.561 1.917l-0.061-0.212 64.487 257.976c6.74 26.727 30.784 45.558 58.373 45.558h513.306c33.232 0 60.195-26.963 60.195-60.195v-360.467c0-33.233-26.963-60.195-60.195-60.195h-603.423c-5.105 0-10.117 0.721-14.961 1.969l-14.373-56.992c-15.317-61.068-70.636-104.078-133.647-104.078zM331.84 290.382h603.423v106.194c-1.498-0.272-3.225-0.433-4.989-0.441l-0.008-0h-201.396c-0.009-0-0.019-0-0.030-0-16.622 0-30.098 13.475-30.098 30.098 0 0 0 0 0 0l-0-0c-0 0-0 0-0 0 0 16.622 13.475 30.098 30.098 30.098 0.010 0 0.021-0 0.031-0l201.394 0c0.009 0 0.020 0 0.031 0 1.754 0 3.473-0.15 5.145-0.438l-0.179 0.025v194.93h-513.306l-48.644-194.518h177.794c0.009 0 0.019 0 0.029 0 16.622 0 30.098-13.475 30.098-30.098 0-0-0-0-0-0l-0-0c0-0 0-0 0-0 0-16.622-13.475-30.098-30.098-30.098-0.010 0-0.021 0-0.031 0l-192.841-0zM566.772 523.434c-0-0-0-0-0-0-16.622 0-30.098 13.475-30.098 30.098 0 0.010 0 0.021 0 0.031l-0-0.002c0.067 16.572 13.516 29.98 30.097 29.98 0 0 0-0 0-0l133.529 0c0 0 0 0 0 0 16.581 0 30.031-13.408 30.097-29.974l0-0.006c0-0.009 0-0.019 0-0.029 0-16.622-13.475-30.098-30.098-30.098-0 0-0 0-0 0l0-0zM432.391 752.341c-55.338 0-100.316 45-100.316 100.257 0 55.336 44.978 100.316 100.316 100.316 55.257 0 100.257-44.98 100.257-100.316 0-55.257-45-100.257-100.257-100.257zM728.9 752.341c-55.336 0-100.257 45-100.257 100.257 0 55.336 44.921 100.316 100.257 100.316 55.257 0 100.257-44.98 100.257-100.316 0-55.257-45-100.257-100.257-100.257zM432.391 812.536c22.102 0 40.062 17.959 40.062 40.062 0 22.181-17.96 40.12-40.062 40.12-22.182 0-40.12-17.939-40.12-40.12 0-22.103 17.939-40.062 40.12-40.062zM728.9 812.536c22.104 0 40.062 17.959 40.062 40.062 0 22.181-17.958 40.12-40.062 40.12-22.182 0-40.062-17.939-40.062-40.12 0-22.103 17.88-40.062 40.062-40.062z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["cart"]},"attrs":[{}],"properties":{"order":283,"id":2,"name":"cart","prevSize":32,"code":59650},"setIdx":0,"setId":0,"iconIdx":2},{"icon":{"paths":["M809.466 665.511c0 164.284-133.182 297.466-297.466 297.466s-297.466-133.182-297.466-297.466c0-164.284 297.466-604.488 297.466-604.488s297.466 440.204 297.466 604.488z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["drop"]},"attrs":[{}],"properties":{"order":284,"id":1,"name":"drop","prevSize":32,"code":59651},"setIdx":0,"setId":0,"iconIdx":3},{"icon":{"paths":["M512.003 53.459c-127.764 0-231.657 103.977-231.657 231.74 0 89.876 51.445 167.88 126.412 206.275-85.198 37.947-144.78 123.37-144.78 222.485v194.439c0 34.308 27.835 62.142 62.142 62.142h375.761c34.308 0 62.142-27.834 62.142-62.142v-194.439c0-99.119-59.586-184.546-144.756-222.491 74.988-38.396 126.471-116.395 126.471-206.269 0-127.763-103.97-231.74-231.734-231.74zM512.003 115.601c93.7 0 169.592 75.98 169.592 169.598s-75.892 169.516-169.592 169.516c-93.617 0-169.516-75.898-169.516-169.516s75.899-169.598 169.516-169.598zM505.447 532.632h13.188c100.092 0 181.245 81.156 181.245 181.328v194.439h-375.761v-194.439c0-100.171 81.157-181.328 181.328-181.328z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["user"]},"attrs":[{}],"properties":{"order":285,"id":0,"name":"user","prevSize":32,"code":59652},"setIdx":0,"setId":0,"iconIdx":4}],"height":1024,"metadata":{"name":"icomoon"},"preferences":{"showGlyphs":true,"showQuickUse":false,"showQuickUse2":true,"showSVGs":true,"fontPref":{"prefix":"icon-","metadata":{"fontFamily":"icomoon"},"metrics":{"emSize":1024,"baseline":6.25,"whitespace":50},"embed":false,"autoHost":true},"imagePref":{"prefix":"icon-","png":true,"useClassSelector":true,"color":0,"bgColor":16777215,"classSelector":".icon"},"historySize":50,"showCodes":true,"gridSize":16,"quickUsageToken":{"UntitledProject":"ZjQ5ODNjZDkzZGRhNGRlZDg3YmQ2Njc5YTQyNWU2Y2QjMSMxNTY0MDUxMDkxIyMj"},"showGrid":false}} \ No newline at end of file +{"IcoMoonType":"selection","icons":[{"icon":{"paths":["M498.102 56.824c-115.187 0-211.767 96.565-211.767 215.468h-167.207v78.016h0.363v538.852h-0.363v78.016h784.003v-7.693h1.742v-687.408h-78.016v0.218h-113.213c0-118.903-100.353-215.468-215.541-215.468zM498.102 131.139c78.030 0 141.226 63.124 141.226 141.154h-278.679c0-78.030 59.422-141.154 137.453-141.154zM197.579 350.308h88.756v55.736h74.314v-55.736h278.679v55.736h74.314v-55.736h113.213v538.852h-629.278z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["buy"]},"attrs":[{}],"properties":{"order":117,"id":3,"name":"buy","prevSize":32,"code":59648},"setIdx":0,"setId":2,"iconIdx":0},{"icon":{"paths":["M976.53 470.996v81.976h-929.060v-81.976z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["minus"]},"attrs":[{}],"properties":{"order":118,"id":2,"name":"minus","prevSize":32,"code":59649},"setIdx":0,"setId":2,"iconIdx":1},{"icon":{"paths":["M471.011 47.47h81.976v929.060h-81.976z","M976.53 470.996v81.976h-929.060v-81.976z"],"attrs":[{},{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["plus"]},"attrs":[{},{}],"properties":{"order":119,"id":1,"name":"plus","prevSize":32,"code":59650},"setIdx":0,"setId":2,"iconIdx":2},{"icon":{"paths":["M90.513 253.965l-47.292 47.292 468.778 468.778 468.778-468.778-47.292-47.292-421.487 421.487z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["angle-down"]},"attrs":[{}],"properties":{"order":120,"id":0,"name":"angle-down","prevSize":32,"code":59651},"setIdx":0,"setId":2,"iconIdx":3}],"height":1024,"metadata":{"name":"icomoon"},"preferences":{"showGlyphs":true,"showQuickUse":false,"showQuickUse2":true,"showSVGs":true,"fontPref":{"prefix":"icon-","metadata":{"fontFamily":"icomoon"},"metrics":{"emSize":1024,"baseline":6.25,"whitespace":50},"embed":false,"autoHost":true},"imagePref":{"prefix":"icon-","png":true,"useClassSelector":true,"color":0,"bgColor":16777215,"classSelector":".icon"},"historySize":50,"showCodes":true,"gridSize":16,"quickUsageToken":{"UntitledProject":"ZjQ5ODNjZDkzZGRhNGRlZDg3YmQ2Njc5YTQyNWU2Y2QjMSMxNTY0MDUxMDkxIyMj"},"showGrid":false}} \ No newline at end of file diff --git a/src/scss/forms.scss b/src/scss/forms.scss index 5625f8f..976928d 100644 --- a/src/scss/forms.scss +++ b/src/scss/forms.scss @@ -66,7 +66,8 @@ input[type=text], input[type=password], input[type=email], input[type=tel], -input[type=date] { +input[type=date], +input[type=number] { color: $dark-gray; background: $white; border-radius: 0; @@ -159,11 +160,16 @@ select { border-radius: 0; height: auto; display: block; - padding: 7px 15px; + padding: 10px 15px; border: 2px solid $white; text-align: center; @include font-style( $font-sans, 'regular', $font-14); + &.button-brown { + background: $brown; + color: $white; + } + &.button-big { padding: 10px 20px; font-size: $font-18; diff --git a/src/scss/icons.scss b/src/scss/icons.scss index bf5429c..353b0a3 100644 --- a/src/scss/icons.scss +++ b/src/scss/icons.scss @@ -25,18 +25,15 @@ } -.icon-arrow-down:before { +.icon-buy:before { content: "\e900"; } -.icon-arrow-right:before { +.icon-minus:before { content: "\e901"; } -.icon-cart:before { +.icon-plus:before { content: "\e902"; } -.icon-drop:before { +.icon-angle-down:before { content: "\e903"; } -.icon-user:before { - content: "\e904"; -} diff --git a/webpack.config.js b/webpack.config.js index a3f59d9..7b9fc69 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,6 +13,7 @@ const pagesPath = path.join(__dirname, './pages') const distPath = path.join(__dirname, './public') const componentPath = path.join(__dirname, './components') const imagesPath = path.join(__dirname, './images') +const binsPath = path.join(__dirname, './cgi-bin') const assetsPath = path.join(__dirname, './assets') const docsPath = path.join(__dirname, './docs') const srcPath = './src' @@ -54,6 +55,16 @@ module.exports = (env) => { context: imagesPath, from: '*.*', to: distPath + '/images', + }, + { + context: imagesPath, + from: '**/*.*', + to: distPath + '/images', + }, + { + context: binsPath, + from: '*.*', + to: distPath + '/cgi-bin', } ] }) @@ -90,7 +101,7 @@ module.exports = (env) => { entry: entries, output: { path: path.join(distPath, '/assets/js'), - publicPath: './assets/js', + publicPath: '/assets/js', filename: 'bundle.js' }, module: {