File tree 3 files changed +45
-62
lines changed
3 files changed +45
-62
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,15 @@ const SearchBar: React.FC<SearchBarProps> = ({ onSelectProfessor }) => {
40
40
return (
41
41
< form className = "search-bar-container" onSubmit = { onSubmitForm } >
42
42
< div className = "input-wrapper" >
43
- < div >
44
- < FaSearch id = "search-icon" />
45
- < input
46
- className = "input"
47
- type = "text"
48
- placeholder = "Who are you looking for?"
49
- value = { searchName }
50
- autoFocus = { true }
51
- onChange = { ( e ) => handleChange ( e . target . value ) }
52
- />
53
- </ div >
43
+ < FaSearch id = "search-icon" />
44
+ < input
45
+ className = "input"
46
+ type = "text"
47
+ placeholder = "Who are you looking for?"
48
+ value = { searchName }
49
+ autoFocus = { true }
50
+ onChange = { ( e ) => handleChange ( e . target . value ) }
51
+ />
54
52
</ div >
55
53
{ dropdownVisibility && (
56
54
< div className = "dropdown" >
Original file line number Diff line number Diff line change @@ -32,11 +32,10 @@ function Table() {
32
32
{ selectedProfessor && (
33
33
< div className = "table-container" >
34
34
< div className = "table-caption" >
35
- < span >
35
+ < span className = "space" > </ span >
36
36
< a href = { `${ selectedProfessor . prof . profile_url } ` } target = "_blank" >
37
37
{ selectedProfessor . prof . name }
38
38
</ a >
39
- </ span >
40
39
< span className = "dept space" > |</ span >
41
40
< span className = "dept" > { selectedProfessor . prof . dept_code } </ span >
42
41
</ div >
Original file line number Diff line number Diff line change 4
4
}
5
5
6
6
.footer-text {
7
- bottom : 0px ;
8
- margin : 0 auto;
9
- left : 0 ;
7
+ margin : 0 ;
10
8
padding-top : 1rem ;
11
9
padding-bottom : 2px ;
12
- width : 100% ;
13
10
text-align : center;
14
- color : black;
15
11
}
16
12
17
13
.main {
18
- display : flex;
19
- margin : 0 auto;
20
- flex-direction : column;
21
- justify-content : center;
22
- align-items : center;
23
14
text-align : center;
24
15
25
16
.logo {
26
17
max-width : 100% ;
27
18
height : auto;
28
- margin-bottom : -70px ;
29
19
}
30
20
31
21
.doodle {
32
- width : 30 % ;
33
- margin-top : -48 px ;
22
+ width : 90 % ;
23
+ max-width : 500 px ;
34
24
}
35
25
}
36
26
37
27
p {
38
- margin : 0 auto !important ;
39
- text-align : center !important ;
40
- width : 70% !important ;
28
+ margin : 5vh ;
41
29
}
42
30
43
31
* {
47
35
h1 {
48
36
font-size : 60px ;
49
37
font-weight : 200 ;
38
+ margin : 0 ;
50
39
}
51
40
52
41
.input-wrapper {
53
- position : relative ;
54
- color : black ;
55
- width : 100 % ;
56
- height : 2.5 rem ;
42
+ display : flex ;
43
+ flex-direction : row ;
44
+ justify-items : center ;
45
+ align-items : center ;
57
46
border : none;
58
47
border-radius : 10px ;
59
- padding : 0 15 px ;
48
+ padding : 7 px ;
60
49
box-shadow : 0px 0px 8px # ddd ;
61
50
background-color : white;
62
- display : flex;
63
- margin-bottom : 20px ;
64
51
}
65
52
66
53
.search-bar-container {
67
- display : flex;
68
- flex-direction : column;
69
- position : relative;
70
- margin : 0 auto;
71
- width : 45% ;
72
- margin-top : 20px ;
73
- justify-content : center;
74
- align-items : center;
54
+ width : 100% ;
55
+ width : fit-content;
56
+ max-width : 90% ;
57
+ padding : 10px ;
58
+ min-width : 40% ;
75
59
}
76
60
77
61
.input-wrapper input {
78
- color : black;
79
62
background-color : transparent;
80
- height : 100% ;
81
63
font-size : 1.25rem ;
82
- width : 500px ;
83
64
border : none;
84
65
margin-left : 10px ;
85
66
padding-left : 15px ;
@@ -90,24 +71,17 @@ input:focus {
90
71
}
91
72
92
73
# search-icon {
93
- position : absolute;
94
- top : 50% ;
95
- left : 13px ;
96
- transform : translateY (-50% );
97
74
color : royalblue;
98
- margin-right : 10px ;
99
75
}
100
76
101
77
.dropdown {
102
78
width : 100% ;
103
- background-color : white;
104
- max-height : 250px ;
79
+ margin-top : 10px ;
105
80
}
106
81
107
82
.dropdown-row {
108
83
padding : 10px ;
109
84
cursor : pointer;
110
- color : black;
111
85
outline : none;
112
86
}
113
87
@@ -127,10 +101,8 @@ a:hover {
127
101
.search-results {
128
102
display : flex;
129
103
flex-direction : column;
130
- flex-wrap : wrap;
131
- width : 100% ;
132
- height : 100% ;
133
104
align-items : center;
105
+ justify-content : center;
134
106
135
107
.time-table {
136
108
display : flex;
@@ -147,22 +119,36 @@ a:hover {
147
119
display : none;
148
120
}
149
121
150
- .table-caption {
122
+ .table-container {
151
123
display : flex;
152
- justify-content : center;
153
- font-weight : "lighter" ;
124
+ flex-direction : column;
125
+ align-items : center;
126
+ }
154
127
128
+ .table-caption {
129
+ display : flex;
155
130
.dept {
156
131
font-size : 2rem ;
132
+ display : inline;
133
+
157
134
}
158
135
159
136
.space {
160
137
margin : 0 8px ;
138
+ display : inline;
161
139
}
162
140
163
141
a {
164
142
font-size : 2rem ;
165
143
}
144
+ @media screen and (max-width : 700px ) {
145
+ a {
146
+ max-width : 300px ;
147
+ overflow-x : hidden;
148
+ white-space : nowrap;
149
+ text-overflow : ellipsis;
150
+ }
151
+ }
166
152
}
167
153
168
154
.table {
@@ -174,7 +160,7 @@ a:hover {
174
160
overflow-x : auto;
175
161
/*table-layout: fixed;*/
176
162
177
-
163
+ /* margin: 0 auto; */
178
164
td {
179
165
padding : 8px 2px ;
180
166
border : 1px solid # ddd ;
You can’t perform that action at this time.
0 commit comments