From b3d4231ec885706e6204f0c00afa85a6453b394e Mon Sep 17 00:00:00 2001 From: aslan Date: Tue, 5 Mar 2024 14:29:18 +0300 Subject: [PATCH] for view faculty --- app/Enums/FacultyEnum.php | 10 + app/Http/Controllers/admin/PageController.php | 30 + .../new-design/bakalavr-special.blade.php | 1074 +++++++++-------- routes/pages.php | 4 +- 4 files changed, 632 insertions(+), 486 deletions(-) create mode 100644 app/Enums/FacultyEnum.php diff --git a/app/Enums/FacultyEnum.php b/app/Enums/FacultyEnum.php new file mode 100644 index 0000000..c359588 --- /dev/null +++ b/app/Enums/FacultyEnum.php @@ -0,0 +1,10 @@ +sortBy('position'); return view('menu.reception-screen', compact('admissions')); } + + public function directions() + { +// $directions = DB::table('faculties') +// ->join('departments', 'faculties.id', '=', 'departments.faculty_id') +// ->join('directions', 'departments.id', '=', 'directions.department_id') +// ->select('faculties.name as faculties.name', 'directions.name', 'directions.id') +// ->groupBy('faculties.name') +// ->get(); + $faculties = Faculty::all(); +// $infBez = $faculties->find(FacultyEnum::InfBez->value); +// $query = `select faculties.name, directions.name, directions.id +//FROM faculties +//join departments on faculties.id = departments.faculty_id +//join directions on departments.id = directions.department_id`; +// $directions = DB::($query); +// foreach ($faculties as $faculty) { +// foreach ($faculty->departments as $department) { +// foreach ($department->directions as $direction) { +// +// } +// } +// +// } + return view('new-design.bakalavr-special', compact('faculties')); + } } diff --git a/resources/views/new-design/bakalavr-special.blade.php b/resources/views/new-design/bakalavr-special.blade.php index c1e8a0b..edaff75 100644 --- a/resources/views/new-design/bakalavr-special.blade.php +++ b/resources/views/new-design/bakalavr-special.blade.php @@ -8,6 +8,7 @@ src: url({{ URL::to('fonts/Geologica/Geologica-Medium.ttf') }}) format("truetype"); } + @font-face { font-family: "Geologica-ExtraLight"; @@ -16,6 +17,7 @@ font-style: normal; font-weight: normal; } + @font-face { font-family: "Geologica-Light"; @@ -24,6 +26,7 @@ font-style: normal; font-weight: normal; } + html { width: 100%; height: 100%; @@ -31,45 +34,50 @@ padding: 0; } + body { {{--background-image: url({{ URL::to('img/front-page/fon1_blok.png') }});--}} -overflow-x: hidden; + overflow-x: hidden; background-repeat: no-repeat; width: 100%; height: 100%; object-fit: cover; - font-family: "Geologica-Medium"; !important; + font-family: "Geologica-Medium"; + !important; } a { text-decoration: none; color: unset; } - a:hover{ + + a:hover { } - .gradient-text{ + .gradient-text { background-image: url({{ URL::to('img/front-page/bakalavr-special/fon1_blok.png') }}); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } - .button1{ - background: linear-gradient(white, white) padding-box, linear-gradient(to right,#0d6efd , #4f96ff) border-box; + .button1 { + background: linear-gradient(white, white) padding-box, linear-gradient(to right, #0d6efd, #4f96ff) border-box; border-radius: 11px; border: 1px solid transparent; } + .hover1:hover { transform: scale(1.1); transition: all .3s ease-in-out; } + .hover2:hover { color: #d3d3d3; transition: all .4s ease-in-out; @@ -78,17 +86,19 @@ overflow-x: hidden; /*padding: 5px 8px;*/ /*border-color: #ffffff;*/ } + .hover3:hover { border: unset; - background-image: url({{ URL::to('img/front-page/bakalavr-special/fon1_blok.png') }});!important; - + background-image: url({{ URL::to('img/front-page/bakalavr-special/fon1_blok.png') }}); + !important; transition: all .3s ease-in-out; } - .hover3:hover div{ + + .hover3:hover div { -webkit-background-clip: unset; -webkit-text-fill-color: unset; color: white; @@ -156,17 +166,21 @@ overflow-x: hidden; .checkbox1 .checkmark:after { } + td { padding-top: 20px; padding-bottom: 10px; } - tr{ + + tr { vertical-align: top; } + #faculty { width: 40%; } + /* width */ ::-webkit-scrollbar { width: 15px; @@ -200,18 +214,21 @@ overflow-x: hidden; -
-
-
+
+
- +
@@ -225,19 +242,25 @@ overflow-x: hidden;
-
-
+ -
-
+
ПОСТУПАЙ В МГТУ
-
+
75 студенческих объединений
-
+
3367 БЮДЖЕТНЫХ МЕСТ
-
+
300 образовательных программ
@@ -289,14 +320,20 @@ overflow-x: hidden;






-
-
+
-
+
-
+
ПЕРЕЧЕНЬ ФАКУЛЬТЕТОВ
@@ -319,26 +358,33 @@ overflow-x: hidden;
- -