Skip to content

Commit df39faa

Browse files
committed
site update
1 parent 40e5af0 commit df39faa

File tree

8 files changed

+125
-128
lines changed

8 files changed

+125
-128
lines changed

kb/create-profile/index.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@
2727
<div class="kb-article-section">
2828
<p class="h">Create</p>
2929
<ol>
30-
<li>Get started by clicking the 'Person' icon on the right side of the navigation bar at the top of this website.</li>
31-
<li>If you don't already have an active session, you'll be prompted to log in to continue. <strong>You'll need to log in with your Northwestern Google account.</strong> Select 'Sign in with Google', and, when redirected to the Google sign-in page, continue with your Northwestern account.</li>
32-
<p class="mid">The authentication system we use has other uses, so there are options to log in with other services. However, for verification purposes, you'll need to use your Northwetern Google account. Don't worry if you accidentally used something else&mdash;it'll give you the opportunity to try again with the correct account instead.</p>
33-
<li>You'll be prompted to enter your full name. This is the name that'll appear in results of SGDG Search and on your profile. You can't change this after setting it unless you contact us.</li>
34-
<p class="mid">At this point, the server will check to make sure you're using a valid Northwestern email AND that you've already registered for SGDG. If something's missing, it'll let you know and give you options to resolve the issue.</p>
30+
<li>Visit the <a href="https://portal.sgdgroup.org">SGDG Portal</a>.</li>
31+
<li>If you don't already have an active session, you'll be prompted to log in to continue. <strong>You'll need to log in with your Northwestern Google account.</strong></li>
3532
<li>You'll then be prompted to enter a username for SGDG. This is a lowercase alphanumeric no-space username primarily for your SGDG Profile URL. To keep things simple, it's recommended that you try just your first name. If it says it's taken, you can try appending your last initial or last name or something. Don't make it something dumb though or we'll remove it.</li>
36-
<li>That's it! A few things will happen behind-the-scenes to set up everything for you, and you'll be redirected to the profile edit page.</li>
33+
<li>That's it! Your profile page will be automatically created. Visit your <a href="https://portal.sgdgroup.org/profile">profile editor</a> to finish setting up your profile.</li>
3734
</ol>
3835
</div>
3936
<div class="kb-article-section">

search/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<p class="mini">From projects to people to events to anything SGDG, find it all here.</p>
2929
</div>
3030

31-
<div id="searchbar">
32-
<input type="text" id="searchbox" onkeyup="search()" placeholder="Search...">
31+
<div id="search-bar">
32+
<input type="text" id="search-box" onkeyup="search()" placeholder="Search...">
3333
<span class="underline"></span>
34-
<div id="searchoptions">
34+
<div id="search-options">
3535
<input id="searchprojects" type="checkbox" onclick="search();" checked>
3636
<label for="searchprojects">Projects</label>
3737
<input id="searchpeople" type="checkbox" onclick="search();" checked>
@@ -44,7 +44,7 @@
4444
</p>
4545
</div>
4646

47-
<div id="searchresults"></div>
47+
<div id="search-results"></div>
4848

4949
<script>
5050
prepare();

search/search.js

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function prepare() {
7373

7474
window.onload = function() {
7575

76-
var res = document.getElementById('searchresults');
76+
var res = document.getElementById('search-results');
7777

7878
for (let i = 0; i < data.length; i++) {
7979
res.appendChild(data[i].element);
@@ -97,7 +97,7 @@ window.onload = function() {
9797
}
9898
}
9999
if (params['q']) {
100-
document.getElementById('searchbox').value = params['q'];
100+
document.getElementById('search-box').value = params['q'];
101101
}
102102

103103
search();
@@ -106,7 +106,7 @@ window.onload = function() {
106106

107107
function search() {
108108

109-
var inputField = document.getElementById('searchbox');
109+
var inputField = document.getElementById('search-box');
110110

111111
var showAny = false;
112112

@@ -218,8 +218,9 @@ class ProjectItem {
218218
this.type = type;
219219
this.description = description;
220220

221-
var element = document.createElement('div');
222-
element.setAttribute('class', 'searchblock');
221+
var element = document.createElement('a');
222+
element.href = url;
223+
element.setAttribute('class', 'search-block project');
223224

224225
var s1 = document.createElement('span');
225226
s1.setAttribute('class', 'notscream');
@@ -230,12 +231,9 @@ class ProjectItem {
230231
p1.appendChild(s1);
231232
element.appendChild(p1);
232233

233-
var a2 = document.createElement('a');
234-
a2.setAttribute('href', url);
235-
a2.textContent = name;
236234
var p2 = document.createElement('p');
237235
p2.setAttribute('class', 'main');
238-
p2.appendChild(a2);
236+
p2.textContent = name;
239237
element.appendChild(p2);
240238

241239
var p3 = document.createElement('p');
@@ -257,8 +255,9 @@ class PersonItem {
257255
this.description = description;
258256
this.skills = skills;
259257

260-
let element = document.createElement('div');
261-
element.setAttribute('class', 'searchblock');
258+
let element = document.createElement('a');
259+
element.href = url;
260+
element.setAttribute('class', 'search-block person');
262261

263262
let typeSpan = document.createElement('span');
264263
typeSpan.setAttribute('class', 'notscream');
@@ -269,13 +268,9 @@ class PersonItem {
269268
typeP.appendChild(typeSpan);
270269
element.appendChild(typeP);
271270

272-
let nameLink = document.createElement('a');
273-
nameLink.setAttribute('href', url);
274-
nameLink.textContent = name;
275-
276271
let nameP = document.createElement('p');
272+
nameP.textContent = name;
277273
nameP.setAttribute('class', 'main');
278-
nameP.appendChild(nameLink);
279274
element.appendChild(nameP);
280275

281276
let skillsDiv = document.createElement('div');

style/faq.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@
3939
font-size: 18px;
4040
}
4141

42+
.faq-section .inner-content a {
43+
text-decoration: none;
44+
color: #3498DB;
45+
}
46+
47+
.faq-section .inner-content a:hover {
48+
text-decoration: underline;
49+
}
50+
4251
.faq-section .spacer {
4352
padding: 10px;
44-
}
53+
}

style/kb.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
.kb-section a {
1919
text-decoration: none;
2020
color: #3498DB;
21-
opacity: 1;
2221
font-size: 18px;
2322
}
2423

2524
.kb-section a:hover {
26-
opacity: 0.6;
25+
text-decoration: underline;
2726
}
2827

2928
.kb-article-header {
@@ -62,12 +61,11 @@
6261
.kb-article-section a {
6362
text-decoration: none;
6463
color: #3498DB;
65-
opacity: 1;
6664
font-size: 16px;
6765
}
6866

6967
.kb-article-section a:hover {
70-
opacity: 0.6;
68+
text-decoration: underline;
7169
}
7270

7371
.kb-article-section p {
@@ -81,4 +79,4 @@
8179
.kb-article-section li {
8280
padding-top: 10px;
8381
padding-bottom: 10px;
84-
}
82+
}

style/search.css

Lines changed: 32 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
#searchbar {
2-
1+
#search-bar {
32
text-align: center;
4-
53
}
64

7-
#searchbox {
8-
5+
#search-box {
96
margin: auto;
107
width: 400px;
118
max-width: 500px;
@@ -16,52 +13,54 @@
1613
font-family: Poppins;
1714
font-size: 25px;
1815
outline: none;
19-
2016
}
2117

22-
#searchbox :focus {
23-
18+
#search-box :focus {
2419
outline: none;
25-
2620
}
2721

28-
#searchresults {
29-
22+
#search-results {
3023
margin-top: 100px;
3124
padding: 0 15px 0 15px;
32-
3325
}
3426

35-
#searchoptions {
36-
27+
#search-options {
3728
padding-top: 20px;
3829
font-size: 16px;
3930
vertical-align: middle;
40-
4131
}
4232

43-
#searchoptions label {
44-
33+
#search-options label {
4534
padding-left: 0;
4635
padding-right: 10px;
47-
4836
}
4937

50-
.searchblock {
51-
38+
.search-block {
5239
max-width: 500px;
5340
min-height: 100px;
5441
position: relative;
5542
display: block;
5643
background-color: #FFFFFF;
57-
margin: 10px auto;
44+
border: 2px solid transparent;
45+
border-radius: 5px;
46+
margin: 20px auto;
5847
padding: 10px;
59-
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
6048
white-space: nowrap;
49+
text-decoration: none;
50+
color: black;
51+
box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
52+
}
53+
54+
.search-block.project:hover {
55+
border: 2px solid #E97451;
56+
}
6157

58+
.search-block.person:hover {
59+
border: 2px solid #3498DB;
6260
}
6361

64-
.searchblock a {
62+
/*
63+
.search-block a {
6564
6665
text-decoration: none;
6766
display: inline-block;
@@ -70,7 +69,7 @@
7069
7170
}
7271
73-
.searchblock a:after {
72+
.search-block a:after {
7473
7574
display: block;
7675
content: '';
@@ -81,28 +80,25 @@
8180
8281
}
8382
84-
.searchblock a:hover:after {
83+
.search-block a:hover:after {
8584
transform: scaleX(1);
8685
transform-origin: 0% 50%;
8786
}
87+
*/
8888

89-
.searchblock .mini {
90-
89+
.search-block .mini {
9190
font-size: 16px;
9291
text-align: right;
9392
margin: 0;
94-
9593
}
9694

97-
.searchblock .main {
98-
95+
.search-block .main {
9996
font-weight: bold;
10097
font-size: 24px;
10198
text-align: left;
10299
margin: 0;
103100
margin-right: 10px;
104101
display: inline-block;
105-
106102
}
107103

108104
.skills {
@@ -122,60 +118,47 @@
122118

123119
.skill-icon:hover {
124120
color: blue;
121+
cursor: default;
125122
}
126123

127-
.searchblock .sub {
128-
124+
.search-block .sub {
129125
font-weight: 800;
130126
font-size: 14px;
131127
text-align: left;
132-
133-
134-
135128
}
136129

137-
.searchblock .sub .notscream {
138-
130+
.search-block .sub .notscream {
139131
font-weight: normal;
140-
141132
}
142133

143-
.searchblock .moresub {
144-
134+
.search-block .moresub {
145135
font-weight: normal;
146136
font-size: 16px;
147137
text-align: left;
148138
max-width: 100%;
149139
line-height: 20px;
150140
overflow: hidden;
151-
152141
}
153142

154-
.searchblock .vertical {
155-
143+
.search-block .vertical {
156144
border-left: 6px solid green;
157145
height: 500px;
158-
159146
}
160147

161148
.searchline {
162-
163149
max-width: 200px;
164150
color: black;
165151
text-align: center;
166152
border: 1px solid gray;
167153
margin-top: 5px;
168154
margin-bottom: 5px;
169-
170155
}
171156

172157
.largesearchline {
173-
174158
max-width: 400px;
175159
color: black;
176160
text-align: center;
177161
border: 1px solid black;
178162
margin-top: 5px;
179163
margin-bottom: 5px;
180-
181164
}

0 commit comments

Comments
 (0)