From 762bcba0074a0d922ce9c37e57642f5f2bf0afb4 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 11 Jul 2009 00:43:53 +0200 Subject: More work on the website. --- website/download.html | 39 +++++++++++++++++++++++++++++++++++++++ website/favicon.ico | Bin 0 -> 4286 bytes website/index.css | 35 ++++++++++++++++++++++++++++++++++- website/index.html | 25 ++++++++++++++++--------- website/index.js | 44 +++++++++++++++++++++++++++++++++++++++++++- website/logi/reset.css | 1 + 6 files changed, 133 insertions(+), 11 deletions(-) create mode 100644 website/download.html create mode 100644 website/favicon.ico (limited to 'website') diff --git a/website/download.html b/website/download.html new file mode 100644 index 00000000..7a2d13e9 --- /dev/null +++ b/website/download.html @@ -0,0 +1,39 @@ + + + + + + + + + Project Lombok + + + +
+

Download Lombok

+

+ Just double-click the lombok.jar file you've downloaded to install lombok into + your IDE. lombok.jar is also the jar you use as a project dependency + (include it in your classpath when compiling with javac or add it to your project + library list in your java IDE). It's the only jar you need! +

+ + Download now! + +
+ diff --git a/website/favicon.ico b/website/favicon.ico new file mode 100644 index 00000000..bf83a474 Binary files /dev/null and b/website/favicon.ico differ diff --git a/website/index.css b/website/index.css index b70c52b7..c3a7697b 100644 --- a/website/index.css +++ b/website/index.css @@ -13,7 +13,7 @@ h1 { text-align: center; } -.buttonBar a { +#buttonBar a.js { color: black; text-decoration: none; } @@ -21,6 +21,10 @@ h1 { .buttonBar { -webkit-border-top-right-radius: 15px 15px; -webkit-border-top-left-radius: 15px 15px; + -moz-border-radius-topright: 15px; + -moz-border-radius-topleft: 15px; + border-top-right-radius: 15px 15px; + border-top-left-radius: 15px 15px; background-image: url(buttonbar.jpg); width: 800px; height: 170px; @@ -29,6 +33,10 @@ h1 { .endBar { -webkit-border-bottom-right-radius: 15px 15px; -webkit-border-bottom-left-radius: 15px 15px; + -moz-border-radius-bottomright: 15px; + -moz-border-radius-bottomleft: 15px; + border-bottom-right-radius: 15px 15px; + border-bottom-left-radius: 15px 15px; background-image: url(buttonbar.jpg); width: 800px; height: 30px; @@ -69,6 +77,10 @@ h1 { height: 56px; } +code { + font-weight: bold; +} + .download img { margin: 4px 20px 4px 16px; float: left; @@ -81,6 +93,27 @@ h1 { font-weight: bold; } +#downloadInfo { + display: block; + position: absolute; + left: 50%; + top: 35px; + font-size: 16px; + margin-left: -400px; +} + +#downloadInfo p { + margin: 12px; +} + +.downloadActions { + margin-top: 16px; + margin-left: 32px; +} +.downloadActions a { + display: block; +} + .proxyVideo { width: 800px; height: 480px; diff --git a/website/index.html b/website/index.html index 683c0318..817d6289 100644 --- a/website/index.html +++ b/website/index.html @@ -5,31 +5,38 @@ - + Project Lombok +

Project Lombok

-
- +
+ Feature Overview - + - Mailing List + Discuss / Help - + Contribute - + - Report a Bug + Report an issue - + Download! diff --git a/website/index.js b/website/index.js index 73cb3bbe..ee36dd3c 100644 --- a/website/index.js +++ b/website/index.js @@ -1,8 +1,50 @@ $(function() { + addGlow(); + fixDownloadLink(); +}); + +function fixDownloadLink() { + $("#downloadLink").attr("href", "http://projectlombok.googlecode.com/files/lombok.jar") + .click(function(event) { + showDownloadInfo(); + event.preventDefault(); + }); + + $(".backToBar").click(function(event) { + $("#downloadInfo").hide(); + }); +} + +function showDownloadInfo() { + if ( !$("#downloadInfo").data("filled") ) { + $("#downloadInfo").data("filled", true); + $.ajax({ + type: "GET", + url: "download.html", + success: function(html) { + var pos = html.search(/]*>/i); + if ( pos == -1 ) return; + html = html.substring(pos); + pos = html.search(">"); + html = html.substring(pos + 1); + pos = html.search(/<\s*\/\s*p\s*>/); + html = html.substring(0, pos); + var p = $("

").html(html).append($("#downloadInfo .downloadActions")); + $("#downloadInfo span:first-child").replaceWith(p); + $("#downloadInfo").show(); + } + }); + } else { + $("#downloadInfo").show(); + } +} + +function addGlow() { + $("a").addClass("js"); $(".button,.download").addGlow({ radius: 20, textColor: '#00f', haloColor: '#00f', duration: 500 }); -}); +} \ No newline at end of file diff --git a/website/logi/reset.css b/website/logi/reset.css index 8c1c8395..768810c0 100644 --- a/website/logi/reset.css +++ b/website/logi/reset.css @@ -33,6 +33,7 @@ del{ } img{ + border: 0; display:inline-block; vertical-align:bottom; } -- cgit