summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-14 00:05:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-14 18:36:47 +0200
commitb476c9caf91f94b8448dfce6565662d7d8a95156 (patch)
tree98770b954e3d6e8f5f0fb4aa22bc93b624684c7c
parentSearch Engine, first draft (diff)
downloadrekonq-b476c9caf91f94b8448dfce6565662d7d8a95156.tar.xz
Fixing a bit examples, positions, links and so on..
-rw-r--r--data/home.html44
-rw-r--r--src/homepage.cpp12
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;
}
</style>
@@ -62,9 +72,11 @@ margin:0 10px 10px 10px;
</div>
-<div class="float">%1</div>
-<div class="float">%2</div>
-<div>%3</div>
+<div id="float">
+<div class="block">%1</div>
+<div class="block">%2</div>
+</div>
+<div id="left">%3</div>
</body>
</html>
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 += "<div class=\"thumbnail\"><img src=\"" + path + "\" width=\"200\" alt=\"" + url.prettyUrl() + "\" />";
+ speed += "<div class=\"thumbnail\">";
+ speed += "<a href=\"" + url.prettyUrl() + "\">";
+ speed += "<img src=\"" + path + "\" width=\"200\" alt=\"" + url.prettyUrl() + "\" />";
speed += "<br />";
- speed += "<a href=\"" + url.prettyUrl() + "\">" + url.prettyUrl() + "</a></div>";
+ speed += url.prettyUrl() + "</a></div>";
}
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 = "<h2>Recently closed tabs</h2>";
return closedtabs;
}