Skip to content

Commit 9124b8f

Browse files
authored
Get started page (#100)
* get started content finished, just hero left * get-started page completed * linting fixed * Update typography.css * disabled colour stylelint * fixed hero * added js * minor changes * mobile adjustments * fixed mobile spacing
1 parent 48d24a0 commit 9124b8f

File tree

14 files changed

+618
-1
lines changed

14 files changed

+618
-1
lines changed

assets/images/icons/Step 1 quote.svg

Lines changed: 5 additions & 0 deletions
Loading

assets/images/icons/Step 2 quote.svg

Lines changed: 5 additions & 0 deletions
Loading

assets/images/icons/Step 3 quote.svg

Lines changed: 19 additions & 0 deletions
Loading

assets/js/bioconductor.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ document.addEventListener("DOMContentLoaded", function () {
5858
navLink.forEach((n) => n.addEventListener("click", closeMenu));
5959
});
6060

61+
//Changes body and hero background color once clicked on certain links
62+
function changeBackgroundColors() {
63+
const heroElement = document.querySelector(".hero");
64+
const targetPageRegex = /\/install\//;
65+
66+
if (targetPageRegex.test(window.location.href)) {
67+
document.body.style.backgroundColor = "#fff";
68+
heroElement.style.backgroundColor = "var(--neutral-n50)";
69+
}
70+
}
71+
72+
changeBackgroundColors();
73+
74+
window.addEventListener("hashchange", changeBackgroundColors);
75+
6176
function log(message) {
6277
if (fb_lite) {
6378
//console.log(message);

assets/style/bioconductor.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ body {
66
}
77

88
main {
9-
background: var(--neutral-n50);
109
margin: 1rem 0;
1110
overflow: hidden;
1211
}

assets/style/colors.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
--misc-annotations: #ff8a00;
5757
--misc-error: #a92626;
5858
--misc-dark: #070707;
59+
--misc-purple: #a333f1;
5960

6061
/* Gradients */
6162
--gradient-warmcool: linear-gradient(to right, #ff2f4b, #4e5cff);

assets/style/get-started.css

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
.install-hero {
2+
margin: 0 auto;
3+
display: flex;
4+
flex-direction: column;
5+
align-items: flex-start;
6+
padding-top: 0.5rem;
7+
}
8+
9+
.get-started-h1 {
10+
color: var(--misc-dark) !important;
11+
}
12+
13+
.instructions-install {
14+
flex: 1;
15+
display: flex;
16+
flex-direction: column;
17+
align-items: flex-start;
18+
padding-bottom: 2rem;
19+
}
20+
21+
.instructions-install p {
22+
text-align: left;
23+
margin: 0 0 1rem;
24+
}
25+
26+
.instructions-install a {
27+
color: var(--misc-dark);
28+
}
29+
30+
/* stylelint-disable color-function-notation, alpha-value-notation */
31+
.warmcool-gradient {
32+
background-image: var(--gradient-reversewarmcool);
33+
border-radius: 0.5rem;
34+
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.06), 0 2px 5px 0 rgba(0, 0, 0, 0.06),
35+
0 10px 10px 0 rgba(0, 0, 0, 0.05), 0 22px 13px 0 rgba(0, 0, 0, 0.03),
36+
0 39px 16px 0 rgba(0, 0, 0, 0.01), 0 61px 17px 0 rgba(0, 0, 0, 0);
37+
}
38+
39+
.install-row {
40+
border-radius: 0.5rem;
41+
display: flex;
42+
flex-direction: row;
43+
margin: 1px;
44+
gap: 3rem;
45+
}
46+
47+
.install-content {
48+
background: #fff;
49+
display: flex;
50+
flex-direction: column;
51+
flex: 1;
52+
padding: 0.9rem 1.5rem;
53+
border-radius: 0.5rem;
54+
}
55+
56+
.install-blockquote {
57+
border-left: 2px solid var(--misc-purple);
58+
background-color: transparent;
59+
display: flex;
60+
align-items: flex-start;
61+
justify-content: space-around;
62+
padding: 0;
63+
padding-left: 10px;
64+
gap: 10px;
65+
}
66+
67+
.install-section {
68+
margin-top: 1.5rem;
69+
margin-bottom: 1.5rem;
70+
}
71+
72+
.install-section a {
73+
color: black;
74+
}
75+
76+
.code-install {
77+
margin-top: 1.6rem;
78+
width: 100%;
79+
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.06), 0 2px 5px 0 rgba(0, 0, 0, 0.06),
80+
0 10px 10px 0 rgba(0, 0, 0, 0.05), 0 22px 13px 0 rgba(0, 0, 0, 0.03),
81+
0 39px 16px 0 rgba(0, 0, 0, 0.01), 0 61px 17px 0 rgba(0, 0, 0, 0);
82+
}
83+
84+
/* stylelint-enable color-function-notation, alpha-value-notation */
85+
86+
.code-install code {
87+
font-size: 1.25rem;
88+
text-align: start;
89+
}
90+
91+
.step-1 {
92+
padding-bottom: 0.5rem;
93+
}
94+
95+
.step-3 {
96+
align-self: end;
97+
}
98+
99+
@media (width <= 678px) {
100+
.instructions-install img {
101+
display: none;
102+
}
103+
104+
.instructions-install {
105+
padding-bottom: 0;
106+
}
107+
108+
.install-row {
109+
flex-direction: column;
110+
111+
/* stylelint-disable-next-line value-no-vendor-prefix */
112+
width: -webkit-fill-available;
113+
gap: 1.5rem;
114+
}
115+
116+
.code-install {
117+
margin-top: 0;
118+
}
119+
}

assets/style/hero.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
}
1717

1818
/* disabled here due to a linting error, but we need the webkit marker for this to work */
19+
1920
/* stylelint-disable */
2021
.hero mark {
2122
background: var(--gradient-brandreverse);
File renamed without changes.

0 commit comments

Comments
 (0)