summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}