Skip to content

Commit

Permalink
header biroz to'g'irlandi
Browse files Browse the repository at this point in the history
  • Loading branch information
Doston1002 committed Jan 30, 2023
1 parent 10ab7e2 commit 6f68a51
Show file tree
Hide file tree
Showing 26 changed files with 159 additions and 31 deletions.
4 changes: 2 additions & 2 deletions src/components/aboutus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function About_us() {
slidesToSlide: 5, // optional, default to 1.
},
tablet: {
breakpoint: { max: 1024, min: 464 },
breakpoint: { max: 1024, min: 300 },
items: 2,
slidesToSlide: 2, // optional, default to 1.
},
mobile: {
breakpoint: { max: 464, min: 0 },
breakpoint: { max: 300, min: 0 },
items: 1,
slidesToSlide: 1, // optional, default to 1.
},
Expand Down
Binary file removed src/components/aboutus/madhiya.png
Binary file not shown.
1 change: 1 addition & 0 deletions src/components/aboutus/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ justify-content: center;
margin: 20px 0 ;
line-height: 130%;
color: #02307D;
min-width: 490px;
}

.list-info{
Expand Down
1 change: 1 addition & 0 deletions src/components/footer/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ footer{
justify-content: space-between;
padding: 30px 20px;
transition: .3s linear;
min-width: 425px;
}

.footer-info{
Expand Down
15 changes: 8 additions & 7 deletions src/components/header/MyComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
display: inline-block;
text-align: right;
margin-bottom: 30px;
margin-left: 140px;
}
.buttons button {
background:none;
Expand Down Expand Up @@ -42,13 +43,14 @@
cursor: pointer;
top:42px;
right: 0;
margin: -56px 0 0 0 !important;
background: white;
border-radius: 10px;
box-shadow: 2px 2px 10px 2px #cddcf6;
padding: 20px;
transition: 0.3s linear;

/* height: 335px; */
height: 335px;
margin-top: -1px;
}
.hovered-list .list-info span{
Expand Down Expand Up @@ -95,16 +97,15 @@ margin:0 5px;
width:450px;
flex-direction: row;
flex-wrap: wrap;
height: 2.5rem;
}
.header__nav{
cursor: pointer;
}
@media (max-width: 920px) {

.hovered-list{
position: absolute;
display: flex;
cursor: pointer;
top:-0px;



border-radius: 10px;
Expand All @@ -131,7 +132,7 @@ width:450px;
padding: 5px 0 5px 5px;
text-transform: none;
transition: all .3s;
width: 100%;
width: 70%;
}
}
@media only screen and (max-width: 550px){
Expand All @@ -147,6 +148,6 @@ width:450px;
width: 100%;
}
.hovered-content .li span{
width:100%;
width:50%;
}
}
1 change: 1 addition & 0 deletions src/components/header/MyComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState, useContext, useEffect } from "react";
import { useLocation } from "react-router-dom";
import { Link } from "react-router-dom";

import { Institut } from "../../icons/Icons";
import Logo from '../../files/logo.png'
import "./MyComponent.css";
Expand Down
54 changes: 54 additions & 0 deletions src/components/header/RespHeader/RespAccardoon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React from 'react'

const RespAccardoon = (props) => {
const faqs = [
{
id: 1,
header: "What is Lorem Ipsum?",
text: `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.`
},
{
id: 2,
header: "Where does it come from?",
text: `It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. `
},
{
id: 3,
header: "Why do we use it?",
text: `Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature,`
},
{
id: 4,
header: "Where can I get some?",
text: `There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.`
}
]
const contentEl = useRef();
const { handleToggle, active, faq } = props;
const { header, id, text } = faq;



return (
<div className="rc-accordion-card">
<div className="rc-accordion-header">
<div className={`rc-accordion-toggle p-3 ${active === id ? 'active' : ''}`} onClick={() => handleToggle(id)}>
<h5 className="rc-accordion-title">{header}</h5>
<i className="fa fa-chevron-down rc-accordion-icon"></i>
</div>
</div>
<div ref={contentEl} className={`rc-collapse ${active === id ? 'show' : ''}`} style={
active === id
? { height: contentEl.current.scrollHeight }
: { height: "0px" }
}>
<div className="rc-accordion-body">
<p className='mb-0'>{text}</p>
</div>
</div>
</div>
)
}


export default RespAccardoon
42 changes: 38 additions & 4 deletions src/components/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/* main header styles */
header {
min-width: 425px;
min-width: 490px;
position: sticky;
top: 0;
z-index: 999;
Expand Down Expand Up @@ -232,9 +232,32 @@ gap: 10px;
.qawws{
display: none;
}

}

@media only screen and (max-width: 1120px){

.hovered-list{
position: absolute;
display: flex;
cursor: pointer;
top:0 !important;
width: 270px !important;
right: -204px !important;
background: white ;


padding: 20px;
transition: 0.3s linear;

height: 335px;
margin-left:300px;
}

.navbarStudy {
background:transparent !important;
color:#02307d !important;
}
.qaww{
display: none;
}
Expand All @@ -244,19 +267,25 @@ gap: 10px;
.buttons button ,.hovered-list,.hovered-list .list-info span{
display: block !important;
}
.qawws{
margin: 0 -145px;
}

.hovered-list .list-info {
display: none;
}

.hovered-content{
width: 430px;
width: 230px;
height: fit-content;

}
.asdaaf{
display: block !important;
margin: 0 -15px;
margin: 0;
}
.hovered-content .li span{
width:100vw;
width:10vw;
text-align: justify;
}
header{
Expand Down Expand Up @@ -361,6 +390,11 @@ gap: 10px;
}

@media only screen and (max-width: 550px){
.hovered-content{
min-width: 333px;
width: 333px;

}
.header__top__icon{
display: none;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const Header = () => {
>
<i className="fa-solid fa-xmark"></i>
</div>
<div className="header__top__main">
<a style={{background:"darkblue", color:"white"}} className="header__nav header_border" href="https://tkti-2023.edupage.org/timetable/view.php">
<div className="header__top__main ">
<a style={{background:"darkblue", color:"white"}} className="header__nav header_border navbarStudy" href="https://tkti-2023.edupage.org/timetable/view.php">
{HeaderLang[lang].talim[1]}
</a>
<a className="header__nav header_border" href="/qabul">
Expand Down Expand Up @@ -150,7 +150,7 @@ const Header = () => {
<MyComponent />
</div>
</div>

<div
onClick={() => setShowHeader(!showHeader)}
className="header__nav burger"
Expand Down
3 changes: 3 additions & 0 deletions src/components/mainheroslider/slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
.mar-top{
margin-top: 80px;
}
}
.carousel-inner{
min-width:476px;
}
1 change: 1 addition & 0 deletions src/components/news/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
justify-content: space-evenly;
align-items: flex-start;
flex-wrap: wrap;
min-width: 425px;
}

.news__card {
Expand Down
1 change: 1 addition & 0 deletions src/components/searchsillabus/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
box-sizing: border-box;
text-align: center;
background-color: #e6edfa;
min-width: 490px;
}

.select-title {
Expand Down
4 changes: 2 additions & 2 deletions src/components/usefullinks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function UsefulLinks() {
<Carousel
autoplay={true}
effect="fade"
draggable
pauseOnDotsHover={true}
// draggable
// pauseOnDotsHover={true}
swipeable={false}
showDots={false}
responsive={responsive}
Expand Down
5 changes: 5 additions & 0 deletions src/components/usefullinks/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ width: 90%;
.useful__info{
height: 300px;
}


.react-multiple-carousel__arrow{
display: none !important;
}
15 changes: 9 additions & 6 deletions src/components/xodim_card/XodimCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@
}
}
@media (max-width: 920px) {
.btnGroup button{
margin: 12px 0 !important;
}
.cardInfo {
width: 400px;
border:0.4px solid #02307d !important;
Expand Down Expand Up @@ -197,11 +200,11 @@
font-weight: 500;
}
@media (max-width: 768px) {
.cardEmail{
/* .cardEmail{
width:min-content;
}
} */
.cardInfo {
width: 300px;
width: 350px;
}
.facultetTitle {
margin: 10px auto;
Expand All @@ -212,9 +215,9 @@
}
}
@media (max-width: 540px) {
.cardInfo {
width: 200px;
}
.btnGroup button{
margin: 10px 0 !important;
}
.cardDesc{
padding: 12px;
font-size: 16px;
Expand Down
2 changes: 1 addition & 1 deletion src/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Provider({ children }) {
const [textEditorBodyEn, setTextEditorBodyEn] = useState();
const [names, setNames] = useState();
const [selectValue, setSelectValue] = useState();
// const globalUrl = "http://localhost:5000";
//const globalUrl = "http://localhost:5000";
const globalUrl = "http://backend.tkti.uz";


Expand Down
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ a{

.wrapped{
padding: 0 2%;
min-width: 425px;
}

.map{
Expand All @@ -46,5 +47,6 @@ a{
.my__container {
max-width: 1440px;
margin: 0 auto;

}
}
3 changes: 3 additions & 0 deletions src/pages/faoliyat/FaoliyatNew.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.all-activities{
min-width: 425px;
}
.all-activities h1 {
text-align: center;
}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/filiallar/filial.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
text-align: center;
margin: 0 auto;
}

.wrapped{
min-width: 425px;
}
.tab {
margin-top: 30px;
overflow: hidden;
Expand Down
Loading

0 comments on commit 6f68a51

Please sign in to comment.