Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

cleaned up some styles, shifted to red links, unified logo and sales pit... #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added backgrounds/striped_lens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions bootstrap.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 22 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<div class="container">
<div id="banner" class="row">
<div class="span16">
<img id="logo" src="logos/rust-logo-64x64-blk.png" alt="rust logo"/>
<h1>Rust <small>a safe, concurrent, practical language</small></h1>
</div>
</div>
Expand All @@ -31,7 +30,7 @@ <h1>Rust <small>a safe, concurrent, practical language</small></h1>

<div id="nav" class="span3">
<ul class="unstyled menu">
<li class="menu-header">Documentation
<li class="menu-header"><span>Documentation</span>
<ul>
<li><a href="http://doc.rust-lang.org/doc/0.3/tutorial.html">Tutorial</a></li>
<li><a href="http://doc.rust-lang.org/doc/0.3/rust.html">Manual</a></li>
Expand All @@ -40,7 +39,7 @@ <h1>Rust <small>a safe, concurrent, practical language</small></h1>
<li><a href="http://github.com/mozilla/rust/wiki/Docs">Other docs</a></li>
</ul>
</li>
<li class="menu-header">Releases
<li class="menu-header"><span>Releases</span>
<ul>
<li class="release">0.3.1, Jul 20 2012
<ul>
Expand All @@ -57,13 +56,13 @@ <h1>Rust <small>a safe, concurrent, practical language</small></h1>
<li><a href="https://github.com/mozilla/rust/wiki/Doc-releases">Previous releases</a></li>
</ul>
</li>
<li class="menu-header">Mailing lists
<li class="menu-header"><span>Mailing lists</span>
<ul>
<li><a href="https://mail.mozilla.org/listinfo/rust-dev">rust-dev</a></li>
<li><a href="https://mail.mozilla.org/listinfo/rust-commits">rust-commits</a></li>
</ul>
</li>
<li class="menu-header">Other resources
<li class="menu-header"><span>Other resources</span>
<ul>
<li><a href="http://bot.rust-lang.org">Build bot</a></li>
<li><a href="http://irclog.gr/#browse/irc.mozilla.org/rust">IRC logs</a>
Expand All @@ -77,24 +76,26 @@ <h1>Rust <small>a safe, concurrent, practical language</small></h1>

<div class="row">
<div class="span9">
<table id="features">
<tr><td>Type system</td><td>static, nominal, algebraic, locally inferred</td></tr>
<tr><td>Memory safety</td><td>no null or dangling pointers, no buffer overflows</td></tr>
<tr><td>Concurrency</td><td>lightweight tasks with message passing, no shared memory</td></tr>
<tr><td>Generics</td><td>type parameterization with type classes</td></tr>
<tr><td>Exception handling</td><td>unrecoverable unwinding with task isolation</td></tr>
<tr><td>Memory model</td><td>optional task-local GC, safe pointer types with region analysis</td></tr>
<tr><td>Compilation model</td><td>ahead-of-time, C/C++ compatible</td></tr>
<tr><td>License</td><td>MIT</td></tr>
</table>
<section id="features">
<ul>
<li><span>Type system</span><span>static, nominal, algebraic, locally inferred</span></li>
<li><span>Memory safety</span><span>no null or dangling pointers, no buffer overflows</span></li>
<li><span>Concurrency</span><span>lightweight tasks with message passing, no shared memory</span></li>
<li><span>Generics</span><span>type parameterization with type classes</span></li>
<li><span>Exception handling</span><span>unrecoverable unwinding with task isolation</span></li>
<li><span>Memory model</span><span>optional task-local GC, safe pointer types with region analysis</span></li>
<li><span>Compilation model</span><span>ahead-of-time, C/C++ compatible</span></li>
<li><span>License</span><span>MIT</span></li>
</ul>
</section>
</div>

</div> <!-- .row -->


<div class="row">
<div class="span9">

<section>
<pre class="cm-s-default">
<span class="cm-keyword">fn</span> <span class="cm-def">main</span>() {
<span class="cm-keyword">for</span> [<span class="cm-string">"Alice"</span>, <span class="cm-string">"Bob"</span>, <span class="cm-string">"Carol"</span>].<span class="cm-variable">each</span> |<span class="cm-variable">name</span>| {
Expand All @@ -108,18 +109,19 @@ <h1>Rust <small>a safe, concurrent, practical language</small></h1>
}
}
</pre>

</section>
</div>

</div> <!-- .row -->
</div> <!-- #main -->


<div id="pitch" class="span4">
<div id="pitch" class="span4">

<div class="row">
<div class="span4">

<section>
<img id="logo" src="logos/rust-logo-128x128-blk.png" alt="rust logo"/>
<p>
A type safe and memory safe systems language, like in your dreams.
</p>
Expand All @@ -138,7 +140,7 @@ <h1>Rust <small>a safe, concurrent, practical language</small></h1>
<p id="thats-rust">
That's Rust.
</p>

</section>
</div>
</div> <!-- .row -->
</div> <!-- #pitch -->
Expand Down
82 changes: 75 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
body {
background: url('backgrounds/striped_lens.png');
}

#nav, #nav li.menu-header {
width: 120px !important;
}

#nav li.menu-header span {
color: black;
}

#main {
padding-top: 0em;
}

section, .cm-s-default {
background: whitesmoke;
border: 1px dotted rgba(0, 0, 0, 0.15);
border-top: 1px solid gray;
margin: 1em 0em;
*/}

.cm-s-default {
border: none !important;
}

a {
color: #B45858;
}

a:hover {
color: #791010;
text-decoration: none;
}

div.container {
margin-top: 0em;
}
Expand All @@ -6,7 +42,7 @@ p {
margin-bottom: 20px;
}
h1 {
margin-top: 50px;
margin-top: 30px;
font-size: 24px;
}
h2 {
Expand All @@ -24,17 +60,14 @@ pre {
padding: 15px;
}

#banner {
margin-bottom: 2em;
}
#banner h1>small {
margin-left: 2em;
}

#logo {
margin: 40px 100px 0px 0px;
display: inline;
float: right;
margin: 0em 3.5em;
margin-top: -6em;
}

ul.menu li {
Expand All @@ -49,22 +82,57 @@ ul.menu li.menu-header>ul {
margin-left: 0em;
padding-left: 0em;
}
ul.menu li.menu-header>ul li{
color: #808080;
}
ul.menu li.release>ul {
margin-left: 1em;
}
ul.menu li.release>ul>li {
display: inline;
}

#features {

}

#features ul {
list-style: none;
margin: 0em 0em;
}

#features li span:first-child {
padding: 0px 5px;
padding-right: 1em;
margin-left: -1em;
display: inline-block;
width:24%;
text-align: right;
}

#features li span:last-child {
font-style: italic;
}

#features li {
padding: .5em 0em;
margin: 0em;
}

#features li:nth-child(even) {
background-color: rgba(0, 0, 0, .03);
}

#pitch {
margin-top: 2em;
}
#pitch p {
margin: 2em 1em 2em 1em;
margin: 2em 0em 2em 1em;
line-height: 1.8em;
font-style: italic;
}

#thats-rust {
text-align: right;
padding-right: 2em;
}