Skip to content

Commit beda399

Browse files
committed
Update gateway page with expanded descriptions and updated screenshots
1 parent cac307a commit beda399

14 files changed

+190
-175
lines changed
-54.4 KB
Binary file not shown.

about/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>The Web of Things</h1>
5353
<p>The <a href="https://www.w3.org/WoT/">Web of Things</a> (WoT) connects physical objects to the World Wide Web.</p>
5454
<p>The purpose of the Web of Things is to create a decentralised <a href="https://en.wikipedia.org/wiki/Internet_of_things">Internet of Things</a> (IoT) by giving connected devices URLs on the web to make them linkable and discoverable, and defining a standard <a href="https://www.w3.org/TR/wot-thing-description/">data model</a> and <a href="https://www.w3.org/community/web-thing-protocol/">protocol</a> to make them interoperable.</p>
5555
<p>The Web of Things is intended as a unifying application layer for the Internet of Things, linking together multiple underlying IoT protocols using existing web technologies.</p>
56-
<img class="illustration" src="images/web_of_things_block_diagram.png" alt="Horizontal application layer on top of existing IoT technologies"/>
56+
<img class="illustration" src="/images/web_of_things_block_diagram.png" alt="Horizontal application layer on top of existing IoT technologies"/>
5757
<p>The Web of Things is currently undergoing standardisation at the <a href="https://www.w3.org/WoT/">W3C</a>, via the <a href="https://www.w3.org/WoT/WG/">Web of Things Working Group</a> and <a href="https://www.w3.org/community/web-thing-protocol/">Web Thing Protocol Community Group</a>.</p>
5858
</section>
5959

css/site-mobile.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,12 @@ header #wordmark {
6969
#main-navigation a.selected {
7070
background-color: #333;
7171
}
72+
73+
.light-section, .dark-section {
74+
padding: 0;
75+
}
76+
77+
.illustration {
78+
padding: 2rem;
79+
box-sizing: border-box;;
80+
}

css/site.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,26 @@ h2 {
112112

113113
h3 {
114114
font-family: "Open Sans", sans-serif;
115-
font-size: 18px;
115+
font-size: 18px;
116116
font-weight: 600;
117117
}
118118

119119
section {
120120
padding: 20px;
121121
}
122122

123+
.dark-section {
124+
background-color: #e6e6e6;
125+
padding-left: 80px;
126+
padding-right: 80px;
127+
}
128+
129+
.light-section {
130+
background-color: #fff;
131+
padding-left: 80px;
132+
padding-right: 80px;
133+
}
134+
123135
.button {
124136
display: inline-block;
125137
background-color: #b6d806;

gateway/css/gateway-mobile.css

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,59 @@
44
margin: 40px 20px 20px 20px;
55
}
66

7-
.carousel-section.selected {
8-
display: block;
7+
#download-grid {
8+
grid-template-columns: none;
9+
width: calc(100% - 40px);
10+
margin: 0;
911
}
1012

11-
.carousel-screenshot {
12-
display: block;
13-
padding-bottom: 0;
13+
.download-box {
14+
clear: both;
15+
width: 100%;
1416
}
1517

16-
.carousel-screenshot-image {
17-
width: 100%;
18-
margin: 0;
18+
.download-box img {
19+
width: calc(100% - 20px);
20+
max-width: 128px;
21+
height: auto;
1922
}
2023

21-
.carousel-description {
24+
.feature {
2225
display: block;
23-
padding-bottom: 0;
2426
}
2527

26-
.carousel-description-wrapper {
27-
top: 0;
28-
transform: none;
28+
.feature .illustration {
29+
padding-top: 40px;
2930
}
3031

31-
#download-grid {
32-
grid-template-columns: none;
33-
width: calc(100% - 40px);
34-
margin: 0;
32+
.feature .illustration img {
33+
display: block;
34+
width: 100%;
35+
max-width: 500px;
36+
margin: 0 auto;
3537
}
3638

37-
.download-box {
38-
clear: both;
39+
.feature .description, .feature.dark-section .description {
3940
width: 100%;
41+
padding: 0 20px 40px 20px;
42+
text-align: center;
43+
box-sizing: border-box;
4044
}
4145

42-
.download-box img {
43-
width: calc(100% - 20px);
44-
max-width: 128px;
45-
height: auto;
46+
.feature .description h1 {
47+
font-size: 24px;
48+
text-align: center;
49+
}
50+
51+
#standards {
52+
padding: 2rem;
53+
box-sizing: border-box;;
54+
}
55+
56+
#standards img {
57+
display: block;
58+
width: 100%;
59+
max-width: 500px;
60+
margin: 0 auto;
4661
}
62+

gateway/css/gateway.css

Lines changed: 62 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -11,95 +11,88 @@ section p {
1111
font-size: 16px;
1212
}
1313

14-
#intro {
15-
background-color: #e3eff8;
14+
#hero {
15+
display: flex;
16+
flex-direction: column;
17+
align-items: center;
18+
justify-content: center;
19+
height: 400px;
20+
background-color: #f6faaf;
1621
background-image: url('../images/hub_background.png');
17-
background-size: cover;
1822
background-position: center;
19-
color: #000;
23+
background-size: cover;
24+
padding: 0;
2025
text-align: center;
26+
color: #000;
27+
}
28+
29+
#hero p {
30+
font-size: 20px;
31+
margin: 30px;
32+
}
33+
34+
#hero .button {
35+
margin-top: 0;
2136
}
2237

2338
#webthings-gateway-wordmark {
2439
height: 64px;
2540
margin-top: 30px;
2641
}
2742

28-
.carousel-section {
29-
display: none;
30-
flex-direction: row;
43+
#intro {
3144
padding-bottom: 0;
3245
}
3346

34-
.carousel-section.selected {
47+
#intro p {
48+
display: block;
49+
margin: 30px auto 0 auto;
50+
max-width: 600px;
51+
font-size: 20px;
52+
text-align: center;
53+
}
54+
55+
.feature {
3556
display: flex;
57+
flex-direction: row;
58+
padding-top: 60px;
59+
padding-bottom: 60px;
3660
}
3761

38-
.carousel-screenshot {
39-
flex: 1;
40-
padding: 0 20px;
62+
.feature.dark-section {
63+
flex-direction: row-reverse;
4164
}
4265

43-
.carousel-screenshot-image {
44-
width: 90%;
45-
max-width: 800px;
46-
margin: 30px 0;
66+
.feature .illustration img {
67+
width: 600px;
4768
}
4869

49-
.carousel-description {
70+
.feature .description {
5071
flex: 1;
51-
text-align: left;
52-
padding: 0 20px;
72+
padding-left: 60px;
73+
display: flex;
74+
justify-content: center;
75+
flex-direction: column;
5376
}
5477

55-
.carousel-description-wrapper {
56-
padding: 20px;
57-
position: relative;
58-
top: 50%;
59-
transform: translateY(-50%);
78+
.feature.dark-section .description {
79+
padding-left: 0;
80+
padding-right: 60px;
6081
}
6182

62-
.carousel-heading {
63-
font-family: "Zilla Slab", serif;
64-
display: inline-block;
83+
.feature .description h1 {
6584
font-size: 30px;
66-
font-weight: bold;
67-
color: #000;
85+
margin: 10px 0;
6886
padding: 0;
69-
margin: 0;
70-
}
71-
72-
#carousel-tabs {
73-
display: block;
74-
margin: 0 auto;
75-
width: 200px;
76-
list-style-type: none;
77-
padding-bottom: 20px;
78-
}
79-
80-
#carousel-tabs a {
81-
display: inline-block;
82-
margin: 5px;
83-
width: 25px;
84-
height: 25px;
85-
border-radius: 12.5px;
86-
background-color: #609dc8;
87-
opacity: 0.3;
88-
}
89-
90-
#carousel-tabs a:focus {
91-
outline: none;
92-
}
93-
94-
#carousel-tabs a.selected {
95-
opacity: 1;
87+
text-align: left;
9688
}
9789

98-
#carousel-tabs li {
99-
display: inline-block;
90+
.feature .description p {
91+
font-size: 17px;
92+
margin: 0;
10093
}
10194

102-
#instructions {
95+
#download {
10396
text-align: center;
10497
}
10598

@@ -128,3 +121,14 @@ section p {
128121
.download-box .button {
129122
margin: 0 auto 10px auto;
130123
}
124+
125+
#standards p {
126+
text-align: center;
127+
font-size: 18px;
128+
}
129+
130+
#standards img {
131+
display: block;
132+
width: 800px;
133+
margin: 40px auto;
134+
}
116 KB
Loading
113 KB
Loading

gateway/images/logs_screenshot.png

52.5 KB
Loading
67 KB
Loading

0 commit comments

Comments
 (0)