forked from aslan/applicant-site
Merge pull request 'direction offcanvas minor changes' (#40) from RomanGolienko/Roman_applicant-site:prodV1 into main
Reviewed-on: http://gitea.mkgtu.ru/aslan/applicant-site/pulls/40
This commit is contained in:
commit
a8d0774aea
|
@ -40,7 +40,7 @@ class DirectonHtmlBuilder
|
|||
$paid_cost = '<div class="col-auto ">
|
||||
<strong class="fs-3"> Стоимость обучения </strong>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div class="fs-4 text-start">';
|
||||
foreach ($direction['cost_paid_place'] as $key => $el) {
|
||||
$paid_cost .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
|
||||
|
@ -53,7 +53,7 @@ class DirectonHtmlBuilder
|
|||
$EGE = '<div class="col-auto ">
|
||||
<strong> ЕГЭ </strong>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div class=" d-inline-block p-2 text-start">';
|
||||
foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) {
|
||||
$EGE .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>' ;
|
||||
|
@ -63,7 +63,7 @@ class DirectonHtmlBuilder
|
|||
$po_viboru = '<div class="col-auto ">
|
||||
<strong> Предметы по выбору </strong>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div class=" d-inline-block p-2 text-start">';
|
||||
if (array_key_exists('Предметы по выбору', $direction['entrance_examinations']['ЕГЭ'])) {
|
||||
foreach ($direction['entrance_examinations']['ЕГЭ']['Предметы по выбору'] as $key => $el) {
|
||||
|
@ -78,7 +78,7 @@ class DirectonHtmlBuilder
|
|||
$SPO = '<div class="col-auto ">
|
||||
<strong> СПО </strong>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div class=" d-inline-block p-2 text-start">';
|
||||
if (array_key_exists('СПО', $direction['entrance_examinations'])) {
|
||||
foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) {
|
||||
|
@ -100,9 +100,9 @@ class DirectonHtmlBuilder
|
|||
}
|
||||
$tmp = str_replace(' ', '', $profile_name);
|
||||
$tmp = str_replace(',', '', $tmp);
|
||||
$mgtu .= "<div class=\"accordion\" id=\"accordionExample\">
|
||||
<div class=\"accordion-item\">
|
||||
<h2 class=\"accordion-header\">
|
||||
$mgtu .= "<div class=\"accordion\" id=\"accordionExample\" >
|
||||
<div class=\"accordion-item\" style='border-radius: 20px;'>
|
||||
<h2 class=\"accordion-header\" style='border-radius: 20px;'>
|
||||
<button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-{$tmp}\" aria-expanded=\"true\" aria-controls=\"collapse-{$tmp}\">
|
||||
$profile_name
|
||||
</button>
|
||||
|
@ -135,8 +135,8 @@ class DirectonHtmlBuilder
|
|||
$tmp = str_replace(' ', '', $profile_name);
|
||||
$tmp = str_replace(',', '', $tmp);
|
||||
$filial .= "<div class=\"accordion \" id=\"accordionExample\">
|
||||
<div class=\"accordion-item\">
|
||||
<h2 class=\"accordion-header\">
|
||||
<div class=\"accordion-item\" style='border-radius: 20px;'>
|
||||
<h2 class=\"accordion-header\" style='border-radius: 20px;'>
|
||||
<button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-{$tmp}\" aria-expanded=\"true\" aria-controls=\"collapse-{$tmp}\">
|
||||
$profile_name
|
||||
</button>
|
||||
|
@ -162,8 +162,8 @@ class DirectonHtmlBuilder
|
|||
$tmp = str_replace(' ', '', $profile_name);
|
||||
$tmp = str_replace(',', '', $tmp);
|
||||
$paid_places_content .= "<div class=\"accordion \" id=\"accordionExample\">
|
||||
<div class=\"accordion-item\">
|
||||
<h2 class=\"accordion-header\">
|
||||
<div class=\"accordion-item\" style='border-radius: 20px;'>
|
||||
<h2 class=\"accordion-header\" style='border-radius: 20px;'>
|
||||
<button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-{$tmp}{$tmp}\" aria-expanded=\"true\" aria-controls=\"collapse-{$tmp}{$tmp}\">
|
||||
$profile_name
|
||||
</button>
|
||||
|
@ -196,12 +196,12 @@ class DirectonHtmlBuilder
|
|||
<div class=\"fs-5 mb-3 \" style=\"font-family: Geologica-Light\">
|
||||
|
||||
<button type='button' class='button_chng_instit hover2 btn btn-outline-success' data-institut='mgtu' data-id='{$direction['id']}'>
|
||||
<img style='width: 8px; height: auto;' id = 'id_mgtu_{$direction['id']}' src='img/front-page/green-circle.png'>
|
||||
<img style='width: 12px; height: auto;' id = 'id_mgtu_{$direction['id']}' src='img/front-page/green-circle.png'>
|
||||
МГТУ
|
||||
</button> |
|
||||
|
||||
<button type='button' class='button_chng_instit hover2 btn btn-outline-success' data-institut='filial' data-id='{$direction['id']}'>
|
||||
<img style='display: none; width: 8px; height: auto;' id = 'id_filial_{$direction['id']}' src='img/front-page/green-circle.png'> Филиал МГТУ (пос. Яблоновский)
|
||||
<img style='display: none; width: 12px; height: auto;' id = 'id_filial_{$direction['id']}' src='img/front-page/green-circle.png'> Филиал МГТУ (пос. Яблоновский)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -224,6 +224,19 @@
|
|||
background-image: linear-gradient(to right, rgb(38, 159, 239), 20%, rgb(2, 142, 229));
|
||||
transition: 0.3s;
|
||||
}
|
||||
.accordion-button:not(.collapsed) {
|
||||
color: #007337;
|
||||
background-color: transparent;
|
||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
|
||||
}
|
||||
.accordion-button:focus {
|
||||
|
||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
|
||||
}
|
||||
.accordion-button:not(.collapsed)::after {
|
||||
background-image: url({{ URL::to("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#35af00' %3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}});
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue