Skip to content

Commit f13b3a6

Browse files
sendilkumarnashleygwilliams
authored andcommitted
wasm page (#65)
* WIP wasm page * coloring and refactoring * update design and content * fix review comments * scss revert * revert style changes * add customer love * trim css and styles * Add content from rustwasm/team README and book's "why rust and wasm?" section
1 parent 3917806 commit f13b3a6

File tree

5 files changed

+335
-21
lines changed

5 files changed

+335
-21
lines changed

src/styles/app.scss

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ body {
1313
font-family: $body-font;
1414
}
1515

16+
code {
17+
background-color: rgba(127, 127, 127, 0.25);
18+
}
19+
1620
header h1, section h2 {
1721
font-family: $header-font;
1822
z-index: 999999;
@@ -80,6 +84,10 @@ span.brand img {
8084

8185
.domain-icon {
8286
min-height: 100px;
87+
img {
88+
max-width: 100%;
89+
max-height: 100%;
90+
}
8391
}
8492

8593
.domains {
@@ -513,8 +521,6 @@ blockquote::before {
513521
}
514522

515523
#embedded-project-gallery {
516-
background-color: $purple;
517-
color: white;
518524
iframe {
519525
width: 100%;
520526
height: 250px;
@@ -525,25 +531,15 @@ blockquote::before {
525531
}
526532

527533
#embedded-why-rust {
528-
background-color: $green;
529-
color: white;
530-
a {
531-
color: $purple;
532-
}
533534
img {
534535
width: 40%;
535-
}
536+
}
536537
}
537538

538539
#embedded-get-started {
539-
background-color: $red;
540-
color: white;
541540
img {
542541
width: 40%;
543542
}
544-
a {
545-
color: $yellow;
546-
}
547543
}
548544

549545
#embedded-testimonials {
@@ -553,14 +549,48 @@ blockquote::before {
553549
}
554550

555551
#embedded-friends {
556-
background-color: $yellow;
557552
img {
558553
width: 80%;
559554
background-color: white;
560555
padding: 20px;
561556
}
562557
}
563558

559+
.background-green {
560+
background-color: $green;
561+
color: white;
562+
a {
563+
color: $purple;
564+
}
565+
}
566+
567+
.background-yellow {
568+
background-color: $yellow;
569+
}
570+
571+
.background-purple {
572+
background-color: $purple;
573+
color: white;
574+
}
575+
576+
.background-red {
577+
background-color: $red;
578+
color: white;
579+
a {
580+
color: $yellow;
581+
}
582+
}
583+
584+
#wasm-production-use {
585+
img {
586+
max-width: 100%;
587+
max-height: 100%;
588+
}
589+
p.attribution a {
590+
font-style: italic;
591+
}
592+
}
593+
564594
#cli-pitch,
565595
#cli-features {
566596
.domain-icon {
@@ -620,4 +650,4 @@ blockquote::before {
620650

621651
#ferris-error {
622652
width: 80%;
623-
}
653+
}

static/images/mdn-logo.svg

Lines changed: 9 additions & 0 deletions
Loading

static/images/rustwasm.jpg

20.7 KB
Loading

templates/what/embedded.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- TODO looping video header that autoplays and that includes clips of different embedded projects -->
1010
<!-- like the one in https://www.patreon.com/ -->
1111
<!-- cliking the header leads to a community maintained gallery of projects -->
12-
<section id="embedded-project-gallery">
12+
<section id="embedded-project-gallery" class="background-purple">
1313
<div class="container">
1414
<header>
1515
<h2>Project Gallery</h2>
@@ -30,7 +30,7 @@
3030
</div>
3131
</section>
3232

33-
<section id="embedded-why-rust">
33+
<section id="embedded-why-rust" class="background-green">
3434
<div class="container">
3535
<header>
3636
<h2>Why Rust for embedded development?</h2>
@@ -102,7 +102,7 @@
102102
</div>
103103
</section>
104104

105-
<section id="embedded-get-started">
105+
<section id="embedded-get-started" class="background-red">
106106
<div class="container">
107107
<header>
108108
<h2>Get started!</h2>

0 commit comments

Comments
 (0)