2
0
Prechádzať zdrojové kódy

add twitter wall example + thumbnails for examples

Laurent Laffont 13 rokov pred
rodič
commit
dc19536ff2
5 zmenil súbory, kde vykonal 121 pridanie a 90 odobranie
  1. 18 0
      css/style.css
  2. BIN
      images/presentation.png
  3. BIN
      images/profstef.png
  4. BIN
      images/twitterwall.png
  5. 103 90
      index.html

+ 18 - 0
css/style.css

@@ -267,6 +267,24 @@ h1 {
 	border: 1px solid #919293; 
 }
 
+
+.examples li {
+	list-style: none;
+	float: left;
+}
+
+.examples li img {
+		border-radius: 5px;
+		border: 5px solid rgba(0,0,0,0.4);
+		margin: 5px;
+}
+
+.examples a:hover img {
+		border-color: rgba(0,0,0,0.8);
+}
+
+
+
 #footer {
 	height: 200px;
 	border: 1px solid #ccc;

BIN
images/presentation.png


BIN
images/profstef.png


BIN
images/twitterwall.png


+ 103 - 90
index.html

@@ -8,95 +8,108 @@
     <link rel="stylesheet" type="text/css" href='css/style.css' /> 
     <link type="image/x-icon" rel="shortcut icon" href="/favicon.ico"/> 
     <link href='http://fonts.googleapis.com/css?family=Istok+Web' rel='stylesheet' type='text/css'> 
-    <script type='text/javascript' src='js/amber.js'></script> 
-  </head> 
-  <body> 
-    
-    <a href="http://github.com/NicolasPetton/amber"><img style="position: absolute; top: 0; lef
-								t: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_left_darkblue_121621.png&path=" alt="Fork me on GitHub"></a> 
-    
-    <div id="wrapper"> 
-      
-      <div id="header"> 
-	<div class="main"> 
-	  <div class="logo"> 
-	    <img src="images/amber.png"/> 
-	  </div> 
-	  
-	  <ul id="tabs"> 
-	    <li><a target="_blank" href="http://amber-lang.net/index.html">Overview</a></li> · 
-	    <li><a target="_blank" href="http://amber-lang.net/index.html#download">Download</a></li> · 
-	    <li><a target="_blank" href="http://amber-lang.net/learn.html">Learn</a></li> ·
-	    <li><a target="_blank" href="http://amber-lang.net/documentation.html">Documentation</a></li> ·
-	    <li><a target="_blank" target="_blank" href="https://github.com/NicolasPetton/amber">Source</a></li> 
-	  </ul> 
-	  
-	  <div class="clear"></div> 
-	  
-	</div> 
-      </div> 
-      
-      <div class="teaser"> 
-	<div class="main"> 
-	  <h1>Welcome aboard!</h1> 
-	  <div class="column">
-	    <h2>What is Amber?</h2>
-	    <p>Amber, formerly known as Jtalk, is an implementation of the Smalltalk-80 language. It is designed to make client-side development faster and easier. It allows developers to write client-side heavy web applications in Smalltalk. </p> 
-	    <p>Amber includes an integrated development environment with a class browser, workspace, transcript, object inspector and debugger.</p> 
-	    <p>Amber is written in itself, including the compiler, and compiles into efficient JavaScript, mapping one-to-one with the JS equivalent.</p> 
-	    <h2>Give it a try!</h2>
-	    <p><b>Try a <button onClick="smalltalk.Browser._open()"> Class browser</button> right now!</b></p> 
-	  </div> 
-	  <div class="column">
-	    <h2>Getting started</h2>
-	    <p>The <a href="https://github.com/NicolasPetton/amber/wiki">Wiki on GitHub</a> includes a <a href="https://github.com/NicolasPetton/amber/wiki/Getting-started">Getting started</a> tutorial for OSX, Linux and Windows.</p>
-	    <p>If you're new to Smalltalk, You can learn it online with <a href="http://amber-lang.net/learn.html">ProfStef</a>.</p>
-	    <h2>Join the community</h2>
-	    <ul>
-	      <li><a href="http://amber-lang.net">Amber's website</a></li>
-	      <li><a href="https://github.com/NicolasPetton/amber/wiki">Wiki on GitHub</a></li>
-	      <li><a href="http://groups.google.com/group/amber-lang">Mailing list</a></li>
-	      <li>Join us on IRC at #amber-lang on Freenode</li>
-	    </ul>
-	  </div>
-	  <div class="clear"></div> 
-	</div> 
-	
-	
-      </div> 
-      
-      <div id="content"> 
-	<div class="main"> 
-	  <div class="box"> 
-	    <h2>Client-side usage</h2> 
-	    <div class="content"> 
-	      <p>Load the full Amber Smalltalk environment with the IDE in your page:</p> 
-	      
-	      <code><pre>&lt;script src="js/amber.js" type="text/javascript"&gt;&lt;/script&gt;
+			<script type='text/javascript' src='js/amber.js'></script> 
+		</head> 
+		<body> 
+			
+			<a href="http://github.com/NicolasPetton/amber"><img style="position: absolute; top: 0; lef
+			t: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_left_darkblue_121621.png&path=" alt="Fork me on GitHub"></a> 
+			
+			<div id="wrapper"> 
+				
+				<div id="header"> 
+					<div class="main"> 
+						<div class="logo"> 
+							<img src="images/amber.png"/> 
+						</div> 
+						
+						<ul id="tabs"> 
+							<li><a target="_blank" href="http://amber-lang.net/index.html">Overview</a></li> · 
+							<li><a target="_blank" href="http://amber-lang.net/index.html#download">Download</a></li> · 
+							<li><a target="_blank" href="http://amber-lang.net/learn.html">Learn</a></li> ·
+							<li><a target="_blank" href="http://amber-lang.net/documentation.html">Documentation</a></li> ·
+							<li><a target="_blank" target="_blank" href="https://github.com/NicolasPetton/amber">Source</a></li> 
+						</ul> 
+						
+						<div class="clear"></div> 
+						
+					</div> 
+				</div> 
+				
+				<div class="teaser"> 
+					<div class="main"> 
+						<h1>Welcome aboard!</h1> 
+						<div class="column">
+							<h2>What is Amber?</h2>
+							<p>Amber, formerly known as Jtalk, is an implementation of the Smalltalk-80 language. It is designed to make client-side development faster and easier. It allows developers to write client-side heavy web applications in Smalltalk. </p> 
+							<p>Amber includes an integrated development environment with a class browser, workspace, transcript, object inspector and debugger.</p> 
+							<p>Amber is written in itself, including the compiler, and compiles into efficient JavaScript, mapping one-to-one with the JS equivalent.</p> 
+							<h2>Give it a try!</h2>
+							<p><b>Try a <button onClick="smalltalk.Browser._open()"> Class browser</button> right now!</b></p> 
+						</div> 
+						<div class="column">
+							<h2>Getting started</h2>
+							<p>The <a href="https://github.com/NicolasPetton/amber/wiki">Wiki on GitHub</a> includes a <a href="https://github.com/NicolasPetton/amber/wiki/Getting-started">Getting started</a> tutorial for OSX, Linux and Windows.</p>
+							<p>If you're new to Smalltalk, You can learn it online with <a href="http://amber-lang.net/learn.html">ProfStef</a>.</p>
+							<h2>Join the community</h2>
+							<ul>
+								<li><a href="http://amber-lang.net">Amber's website</a></li>
+								<li><a href="https://github.com/NicolasPetton/amber/wiki">Wiki on GitHub</a></li>
+								<li><a href="http://groups.google.com/group/amber-lang">Mailing list</a></li>
+								<li>Join us on IRC at #amber-lang on Freenode</li>
+							</ul>
+						</div>
+						<div class="clear"></div> 
+					</div> 
+					
+					
+				</div> 
+				
+				<div id="content"> 
+					<div class="main"> 
+						<div class="box"> 
+							<h2>Client-side usage</h2> 
+							<div class="content"> 
+								<p>Load the full Amber Smalltalk environment with the IDE in your page:</p> 
+								
+								<code><pre>&lt;script src="js/amber.js" type="text/javascript"&gt;&lt;/script&gt;
 &lt;script type="text/javascript"&gt; loadAmber()&lt;/script&gt;</pre></code>
-	    </div> 
-	    
-	    
-	    <p>Or the deployment JavaScript file only (without the Smalltalk sources, parser, compiler and IDE):</p>
-	    <code><pre>&lt;script src="js/amber.js" type="text/javascript"&gt;&lt;/script&gt;
+							</div> 
+							
+							
+							<p>Or the deployment JavaScript file only (without the Smalltalk sources, parser, compiler and IDE):</p>
+							<code><pre>&lt;script src="js/amber.js" type="text/javascript"&gt;&lt;/script&gt;
 &lt;script type="text/javascript"&gt; loadAmber({deploy: true})&lt;/script&gt;</pre></code>
-	  </div> 
-	  
-	  <div class="box last"> 
-	    <h2 id="download">Examples</h2> 
-	    <div class="content"> 
-	      <ul>
-		<li><a href="examples/trysmalltalk/index.html">ProfStef tutorial</a></li>
-		<li><a href="examples/presentation/index.html">Presentation at ESUG 2011</a></li>
-	      </ul>
-	    </div> 
-	  </div> 
-	  
-	</div> 
-      </div> 
-    </div> 
-    
-    <script type='text/javascript'> loadAmber() </script> 
-    
-  </body> 
-</html> 
+						</div> 
+						
+						<div class="box last examples"> 
+							<h2>Examples</h2> 
+							<div class="content"> 
+								<ul>
+									<li>
+										<a href="examples/trysmalltalk/index.html">
+											<img src="images/profstef.png" alt="Learn Smalltalk with ProfStef"/>
+										</a>
+									</li>
+									<li>
+										<a href="examples/presentation/index.html">
+											<img src="images/presentation.png" alt="ESUG 2011 presentation"/>
+										</a>
+									</li>
+									<li>
+										<a href="examples/twitterwall/index.html">
+											<img src="images/twitterwall.png" alt="Twitter Wall"/>
+										</a>
+									</li>
+								</ul>
+							</div> 
+						</div> 
+						
+					</div> 
+				</div> 
+			</div> 
+			
+			<script type='text/javascript'> loadAmber() </script> 
+			
+		</body> 
+	</html>