Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 51738c8

Browse files
authored
[devops] Updates public index (#240)
* adds new public index * adds search and updates styles * adds example search and p5 sketch * rms npm script and comments out code - kept for ref
1 parent 3d8d578 commit 51738c8

File tree

5 files changed

+292
-165
lines changed

5 files changed

+292
-165
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"update:ml5": "node scripts/update-ml5-reference.js",
1010
"update:ml5-dev": "NODE_ENV=dev node scripts/update-ml5-reference.js",
11-
"create:example-index": "node scripts/create-examples-index.js",
1211
"update:example-json": "node scripts/update-examples-json.js",
1312
"merge:release:ours": "git merge --strategy-option ours release"
1413
},

public/assets/style.css

Lines changed: 83 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -9,114 +9,115 @@ body,
99
html {
1010
width: 100%;
1111
height: 100%;
12-
background-color:#F6FFFE;
12+
/* background-color:#F6FFFE; */
1313
}
14-
.container {
15-
display: grid;
16-
grid-column-gap: 20px;
17-
grid-row-gap: 20px;
18-
grid-template-columns: auto auto auto auto;
19-
padding-top: 2rem;
14+
15+
#myCanvas {
16+
width: 100%;
17+
height: 100%;
18+
position: fixed;
19+
z-index: -10;
2020
}
2121

22-
.container > .item {
23-
text-align: center;
24-
padding: 0.5rem;
25-
border: 1px solid #A15FFB;
26-
box-shadow: 4px 4px #A15FFB;
27-
font-size: 0.9rem;
28-
background-color: white;
29-
min-height:100px;
30-
display:flex;
22+
#app {
23+
padding: 2rem;
24+
}
25+
26+
.header{
27+
display: flex;
3128
flex-direction: column;
3229
justify-content: center;
30+
align-items:center;
31+
width:100%;
32+
height: 50vh;
3333
}
34-
35-
.container > .category-header {
36-
grid-column: 1 / span 4;
37-
color: black;
34+
.header-title{
35+
font-size: 2rem;
36+
text-align: center;
3837
}
39-
.container > .category-header > h3 {
40-
font-size: 1.5rem;
41-
padding-top:1.0rem;
42-
color:#D5008F;
38+
.header-search{
39+
display: flex;
40+
justify-content: center;
41+
width:100%;
42+
max-width:400px;
4343
}
44-
45-
.container > .category-header > h2 {
46-
font-size: 2.0rem;
47-
font-weight: 800;
48-
padding-top:1.5rem;
49-
padding-bottom:1.0rem;
50-
grid-row-gap: 2em;
51-
color:black;
52-
}
53-
54-
.container > .item:hover {
55-
transform: scale(1.02);
44+
.header-search__input{
45+
margin-top:2rem;
46+
min-width:300px;
47+
width: 50%;
48+
border: 2px solid black;
49+
padding:1rem 1.25rem;
50+
box-shadow: 1rem 1rem #A15FFB;
5651
}
5752

58-
a,
59-
a:link,
60-
a:visited {
61-
color: #A15FFB;
62-
font-size: 0.9rem;
63-
text-decoration: none;
64-
font-weight: 500;
53+
.header-text__links{
54+
color: #5E2CA5;
55+
text-decoration: none;
56+
letter-spacing: 0.8px;
6557
}
6658

67-
#app {
68-
padding: 2rem;
59+
.header-text{
60+
margin-top:3rem;
61+
max-width: 500px;
62+
text-align:left;
6963
}
7064

71-
#app > h1 {
72-
font-size: 3rem;
65+
.main{
66+
width:100%;
67+
display:grid;
68+
justify-items: center;
69+
grid-template-columns: 1fr 1fr 1fr;
70+
grid-column-gap: 20px;
71+
grid-row-gap: 40px;
7372
}
7473

75-
#app > p {
76-
margin-top: 1rem;
77-
max-width: 600px;
74+
.section{
75+
max-width:200px;
7876
}
7977

78+
.section-header{
79+
font-size: 1.6rem;
80+
color: #A15FFB;
81+
}
8082

81-
/* @media (max-width: 600px) {
82-
83-
.container {
84-
grid-template-columns: auto;
85-
}
83+
.section-list,
84+
.section-list__item{
85+
padding:0;
86+
margin:0;
87+
}
88+
.section-list__item > a{
89+
color: #5E2CA5;
90+
text-decoration: none;
91+
letter-spacing: 0.8px;
92+
font-size: 0.9rem;
93+
transition: all 0.2s;
94+
}
95+
.section-list__item > a:hover{
96+
font-size:1.1rem;
97+
text-decoration: underline;
98+
}
8699

87-
.container > .category-header {
88-
grid-column: 1 / span 1;
89-
}
90-
} */
100+
.section-list__title{
101+
margin:0.5rem 0;
102+
font-size:1.2rem;
103+
font-weight: 100;
104+
color: #333333;
105+
}
91106

92107
@media (max-width: 600px) {
93-
/* For mobile phones: */
94-
.container {
95-
grid-template-columns: auto;
96-
}
97-
98-
.container > .category-header {
99-
grid-column: 1 / span 1;
100-
}
108+
.main {
109+
grid-template-columns: 1fr;
110+
}
101111
}
102112

103113
@media (min-width:600px) and (max-width: 768px) {
104-
/* For mobile phones: */
105-
.container {
106-
grid-template-columns: auto auto;
107-
}
108-
109-
.container > .category-header {
110-
grid-column: 1 / span 2;
111-
}
114+
.main {
115+
grid-template-columns: 1fr 1fr;
116+
}
112117
}
113118

114119
@media (min-width:769px) and (max-width:992px){
115-
.container {
116-
grid-template-columns: auto auto auto;
117-
}
118-
119-
.container > .category-header {
120-
grid-column: 1 / span 3;
121-
}
120+
.main {
121+
grid-template-columns: 1fr 1fr;
122+
}
122123
}

0 commit comments

Comments
 (0)