Skip to content

Commit 8e5442d

Browse files
ibelemanssiko
authored andcommitted
Add NNotepad into index page
1 parent ed4b837 commit 8e5442d

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

_layouts/webnn-samples.html

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<h2 class="title">WebNN Samples</h2>
1515
<div class="description">See samples built with WebNN API. Usually the best and recommended way to leverage
1616
WebNN capabilities
17-
and performance for your web applications is to use TensorFlow.js or other JavaScript library that
17+
and performance for your web applications is to use ONNX Runtime Web or other JavaScript library that
1818
integrates
1919
WebNN API directly. You can also build web applications powered by WebNN from scratch without using ML
2020
JavaScript libraries.</div>
@@ -29,6 +29,34 @@ <h2 class="title">WebNN Samples</h2>
2929
</div>
3030

3131
<div class="g3">
32+
<div class="card1 card">
33+
<div id="bg_nnotepad" class="cardwrapper">
34+
<div class="data">
35+
<div class="content">
36+
<h1 class="title"><a href="https://webmachinelearning.github.io/webnn-samples/nnotepad/index.html">NNotepad - WebNN Playground</a></h1>
37+
<p class="text">A browser-based playground for experimenting with WebNN expressions without boilerplate code.</p>
38+
<div class="samplelink">
39+
<a href="https://webmachinelearning.github.io/webnn-samples/nnotepad/index.html">
40+
Explore
41+
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
42+
stroke-width="2" class="link" viewBox="0 0 24 24">
43+
<path d="M5 12h14M12 5l7 7-7 7"></path>
44+
</svg>
45+
</a>
46+
<a href="https://github.com/webmachinelearning/webnn-samples/tree/master/nnotepad">
47+
View Code
48+
<svg viewBox="0 0 24 24" class="gh">
49+
<path
50+
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12">
51+
</path>
52+
</svg>
53+
</a>
54+
</div>
55+
</div>
56+
</div>
57+
</div>
58+
</div>
59+
3260
<div class="card1 card">
3361
<div id="bg_ce" class="cardwrapper">
3462
<div class="data">

_sass/webnn-sample.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ $black: #000;
130130
background-size: 150%;
131131
}
132132

133+
#bg_nnotepad {
134+
background: url("../images/webnnsamples/nnotepad.png") center / cover no-repeat;
135+
}
136+
133137
#bg_ic {
134138
background: url("../images/webnnsamples/ic.jpg") center / cover no-repeat;
135139
}
@@ -138,7 +142,6 @@ $black: #000;
138142
background: url("../images/webnnsamples/handwritten.png") center / cover no-repeat;
139143
}
140144

141-
142145
#bg_st {
143146
background: url("../images/webnnsamples/starrynight.jpg") center / cover no-repeat;
144147
}
11.7 KB
Loading

0 commit comments

Comments
 (0)