Skip to content

Commit bdb2355

Browse files
ibelemanssiko
authored andcommitted
Update architecture image
1 parent fd70e42 commit bdb2355

5 files changed

Lines changed: 202 additions & 181 deletions

File tree

_includes/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<li><a class="footer_link underline up" href="{{ 'webnn-intro' | relative_url }}">WebNN</a></li>
1919
<li><a class="footer_link underline" href="{{ 'webnn-getstarted' | relative_url }}">Get Started</a></li>
2020
<li><a class="footer_link underline" href="{{ 'webnn-samples-intro' | relative_url }}">Samples</a></li>
21+
<li><a class="footer_link underline" href="https://github.com/webmachinelearning/awesome-webnn">Awesome WebNN</a></li>
2122
</ul>
2223
<ul>
2324
<li><a class="footer_link underline up" href="{{ 'model-loader-intro' | relative_url }}">Model Loader</a></li>

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
Polyfill</a></li>
5353
<li class="menu-item"><a href="https://github.com/webmachinelearning/webnn-samples">WebNN Samples</a>
5454
</li>
55-
<li class="menu-item"><a href="https://github.com/webmachinelearning/webnn-native">WebNN Native</a>
55+
<li class="menu-item"><a href="https://github.com/webmachinelearning/awesome-webnn">Awesome WebNN</a>
5656
</li>
5757
</ol>
5858
</li>

_includes/webnn-archsvg.html

Lines changed: 131 additions & 67 deletions
Large diffs are not rendered by default.

_sass/archsvg.scss

Lines changed: 65 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,76 @@
1+
.arch svg {
2+
max-height: 340px;
3+
}
14

2-
.arch svg {
3-
max-height: 300px;
4-
}
5+
#webnn:hover {
6+
fill: #00C7FD;
7+
stroke: #00C7FD;
8+
cursor: pointer;
9+
}
510

6-
.arc-1 {
7-
fill: $faq-color;
8-
}
9-
.arc-1:hover {
10-
fill: darken($faq-color, 10%);
11-
}
12-
.arc-2,
13-
.arc-5 {
14-
font-size: 9px;
15-
}
16-
.arc-2 {
17-
fill: #fff;
18-
}
19-
.arc-4 {
20-
fill: #d0ebff;
21-
}
22-
.arc-5 {
23-
fill: #474c58;
24-
}
25-
.arc-12 {
26-
fill: $brand-color2;
27-
}
28-
.arc-12:hover {
29-
fill: $brand-color;
30-
}
31-
.arc-13 {
32-
fill: #90b665;
33-
}
34-
.arc-13:hover {
35-
fill: #80a655;
36-
}
37-
.arc-18,
38-
.arc-19,
39-
.arc-20,
40-
.arc-21,
41-
.arc-22 {
42-
fill: none;
43-
stroke: #d0ebff;
44-
stroke-width: 0.25px;
45-
}
46-
.arc-18,
47-
.arc-20,
48-
.arc-21,
49-
.arc-22 {
50-
stroke-linecap: round;
51-
}
52-
.arc-18,
53-
.arc-20,
54-
.arc-21 {
55-
stroke-linejoin: round;
56-
}
57-
.arc-19,
58-
.arc-22 {
59-
stroke-miterlimit: 10;
60-
}
61-
.arc-20 {
62-
stroke-dasharray: 1 4.99;
63-
}
11+
/* #26CC0B */
12+
.arch text:hover:not(.webgpu, .webnn, .webassembly) {
13+
fill: $brand-color;
14+
}
6415

65-
.arch text:hover {
66-
font-weight: 500;
67-
}
68-
.arch text:hover:not(.webgpu, .webnn, .webassembly) {
69-
fill: $brand-color;
70-
}
16+
.webnn:hover ~ .nnline,
17+
.webnn:hover ~ .nnpath {
18+
fill: #00C7FD;
19+
stroke: #00C7FD;
20+
animation: 0.5s draw linear forwards;
21+
}
7122

72-
.arch path:hover {
73-
stroke: $brand-color;
74-
}
23+
.webnn:hover ~ #directml {
24+
fill: #FD0D8E;
25+
stroke: #FD0D8E;
26+
}
7527

76-
.webgpu:hover ~ .gpuline,
77-
.webgpu:hover ~ .gpupath {
78-
stroke: darken($faq-color, 10%);
79-
animation: 0.5s draw linear forwards;
80-
}
28+
.webnn:hover ~ #tflite {
29+
fill: #F9B508;
30+
stroke: #F9B508;
31+
}
8132

82-
.webgpu:hover ~ .gpu,
83-
.webgpu:hover ~ .gputext {
84-
fill: darken($faq-color, 10%);
85-
}
33+
.webnn:hover ~ #coreml {
34+
fill: #26cc0b;
35+
stroke: #26cc0b;
36+
}
8637

87-
.webassembly:hover ~ .wasmline,
88-
.webassembly:hover ~ .wasmpath {
89-
stroke: #80a655;
90-
animation: 0.5s draw linear forwards;
91-
}
38+
.webnn:hover ~ #cpu {
39+
fill: #0068B5;
40+
stroke: #0068B5;
41+
}
9242

93-
.webassembly:hover ~ .wasm,
94-
.webassembly:hover ~ .wasmtext {
95-
fill: #80a655;
96-
}
43+
.webnn:hover ~ #gpu {
44+
fill: #FF2052;
45+
stroke: #FF2052;
46+
}
9747

98-
.webnn:hover ~ .nnline,
99-
.webnn:hover ~ .nnpath {
100-
stroke: $brand-color;
101-
animation: 0.5s draw linear forwards;
102-
}
48+
.webnn:hover ~ #npu {
49+
fill: #010734;
50+
stroke: #010734;
51+
}
10352

104-
.webnn:hover ~ .nn,
105-
.webnn:hover ~ .nntext {
106-
fill: $brand-color;
107-
}
53+
.webnn:hover ~ #text-tflite,
54+
.webnn:hover ~ #text-directml,
55+
.webnn:hover ~ #text-coreml,
56+
.webnn:hover ~ #text-cpu,
57+
.webnn:hover ~ #text-gpu,
58+
.webnn:hover ~ #text-npu
59+
{
60+
fill: #fff;
61+
}
10862

109-
@keyframes draw {
110-
0% {
111-
stroke-dasharray: 140 540;
112-
stroke-dashoffset: -474;
113-
stroke-width: 0.5px;
114-
}
115-
100% {
116-
stroke-dasharray: 760;
117-
stroke-dashoffset: 0;
118-
stroke-width: 0.5px;
119-
}
120-
}
63+
@keyframes draw {
64+
0% {
65+
stroke-dasharray: 600 100;
66+
stroke-dashoffset: 600;
67+
stroke-width: 1px;
68+
}
69+
100% {
70+
stroke-dasharray: 0;
71+
stroke-dashoffset: 0;
72+
stroke-width: 1px;
73+
fill: #00C7FD;
74+
stroke: #00C7FD;
75+
}
76+
}

_sass/herosvg.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
opacity: 0.75;
2626
}
2727
.cls-8 {
28-
fill: #90b665;
28+
fill: #2555a0;
2929
}
3030
.cls-9 {
31-
fill: #a1d469;
31+
fill: rgba(1, 7, 52, 0.8);
3232
}
3333
.cls-10,
3434
.cls-15 {
@@ -51,7 +51,7 @@
5151
fill: #595959;
5252
}
5353
.cls-17 {
54-
fill: #95c461;
54+
fill: rgba(1, 7, 52, 0.8);
5555
}
5656
.cls-18 {
5757
fill: #c18255;
@@ -341,7 +341,7 @@
341341
fill: #fcf2d6;
342342
}
343343
.cls-94 {
344-
fill: #719253;
344+
fill: #010734;
345345
}
346346
.cls-95 {
347347
fill: #e1d5c9;

0 commit comments

Comments
 (0)