From b476c9caf91f94b8448dfce6565662d7d8a95156 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 14 Sep 2009 00:05:14 +0200 Subject: Fixing a bit examples, positions, links and so on.. --- data/home.html | 44 ++++++++++++++++++++++++++++---------------- src/homepage.cpp | 12 +++++++----- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/data/home.html b/data/home.html index 43e1b452..3b48b0eb 100644 --- a/data/home.html +++ b/data/home.html @@ -20,6 +20,7 @@ font-size: 100%; #header{ text-align:right; padding: 10px; +margin:5px; } /* ------------------------------------------------------- */ @@ -28,18 +29,27 @@ h1{ color: #00f; } -.float { - float: right; - width: 30%; - background-color: orange; - border-width: 2px; - border-style: solid; - border-color: black; - padding: 10px; - margin: 8px; - font-weight: bold; - color: white; - clear: right; +#float { +float: right; +width: 30%; +clear: right; +} + +.block { +background-color: orange; +border-width: 2px; +border-style: solid; +border-color: black; +padding: 10px; +margin:15px; +font-weight: bold; +color: white; +clear: right; +} + +#left{ +width:70%; +margin-right:30%; } .thumbnail @@ -47,7 +57,7 @@ color: #00f; text-align: center; float:left; width:230px; -margin:0 10px 10px 10px; +margin:15px; } @@ -62,9 +72,11 @@ margin:0 10px 10px 10px; -
%1
-
%2
-
%3
+
+
%1
+
%2
+
+
%3
diff --git a/src/homepage.cpp b/src/homepage.cpp index 430fa9a6..20276f57 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -85,9 +85,9 @@ QString HomePage::rekonqHomePage() QString HomePage::speedDial() { KUrl::List ul ; - ul << KUrl("http://www.google.it") << KUrl("http://www.kde.org") << KUrl("http://rekonq.sourceforge.net") + ul << KUrl("http://www.google.com") << KUrl("http://www.kde.org") << KUrl("http://sourceforge.net") << KUrl("http://www.slacky.eu") << KUrl("http://kde-apps.org") << KUrl("http://www.kernel.org") - << KUrl("http://it.wikipedia.org") << KUrl("http://www.adjam.org") << KUrl("http://adjamblog.wordpress.com"); + << KUrl("http://it.wikipedia.org") << KUrl("http://www.adjam.org") << KUrl("http://wordpress.com"); QString speed = QString(); for(int i = 0; i< ul.count(); ++i) @@ -101,9 +101,11 @@ QString HomePage::speedDial() WebSnap *ws = new WebSnap(url, fileName); } - speed += "
\"""; + speed += ""; + speed += url.prettyUrl() + "
"; } return speed; } @@ -141,7 +143,7 @@ QString HomePage::searchEngines() QString HomePage::recentlyClosedTabs() { - QString closedtabs = "engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines closed"; + QString closedtabs = "

Recently closed tabs

"; return closedtabs; } -- cgit v1.2.1