Cambios en diseño

This commit is contained in:
2020-06-04 12:33:07 -04:00
parent 5c538f8e93
commit 7aa3546e0a
7 changed files with 26 additions and 4 deletions

View File

@ -13,7 +13,22 @@ class Nosotros {
'nosotros.json' 'nosotros.json'
]); ]);
$nosotros = json_decode(trim(file_get_contents($filename))); $nosotros = json_decode(trim(file_get_contents($filename)));
$nosotros = $this->str_split_unicode($nosotros, strlen($nosotros) / 2, '-'); $min = 200;
$max_phrase = 50;
if (strlen($nosotros) > $min) {
$half = strlen($nosotros) / 2;
$pos = strpos($nosotros, '.', $half);
if ($pos > $half + $max_phrase) {
$pos = strrpos($nosotros, '.', -$half);
}
$nosotros = $this->str_split_unicode($nosotros, $pos, '-');
if (count($nosotros) > 2) {
$s1 = array_shift($nosotros);
$nosotros = [$s1, implode('', $nosotros)];
}
} else {
$nosotros = [$nosotros];
}
return $view->render($response, 'nosotros', compact('nosotros')); return $view->render($response, 'nosotros', compact('nosotros'));
} }
protected function str_split_unicode($str, $l = 0) { protected function str_split_unicode($str, $l = 0) {

View File

@ -1,3 +1,5 @@
#faq { background-color: #a7a9ab; color: white; padding-top: 3rem; padding-bottom: 4rem; } #faq { background-color: #a7a9ab; color: white; padding-top: 3rem; padding-bottom: 4rem; }
#faq .header, #faq .title, #faq .content { color: inherit; } #faq .header, #faq .title, #faq .content { color: inherit; }
#faq .accordion { font-size: 1.2rem; }

View File

@ -20,7 +20,7 @@ header .menu { margin-top: 0 !important; margin-bottom: 0 !important; }
header .menu .logo { font-size: 2rem; font-weight: 900; } header .menu .logo { font-size: 2rem; font-weight: 900; }
header .menu #productos_menu .menu { border: none; box-shadow: none; } header .menu #productos_menu .menu { border: thin solid white; box-shadow: none; }
header .menu #productos_menu .menu .item:hover { background-color: #a7a9ab !important; } header .menu #productos_menu .menu .item:hover { background-color: #a7a9ab !important; }

View File

@ -38,7 +38,7 @@
#producto #datos .tabular .item:last-child { margin-left: 1rem; } #producto #datos .tabular .item:last-child { margin-left: 1rem; }
#producto #datos .segment { border: none !important; } #producto #datos .segment { border: none !important; background-color: #808284; color: white; }
#producto #datos .segment .informacion .row { border-bottom: thin dotted white; } #producto #datos .segment .informacion .row { border-bottom: thin dotted white; }

View File

@ -10,4 +10,7 @@
.header, .title, .content { .header, .title, .content {
color: inherit; color: inherit;
} }
.accordion {
font-size: 1.2rem;
}
} }

View File

@ -44,7 +44,7 @@ header {
} }
#productos_menu .menu { #productos_menu .menu {
border: none; border: thin solid white;
box-shadow: none; box-shadow: none;
.item:hover { .item:hover {

View File

@ -90,6 +90,8 @@
} }
.segment { .segment {
border: none !important; border: none !important;
background-color: $gris-oscuro;
color: white;
.informacion { .informacion {
.row { .row {