aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-08 04:34:09 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-08 04:34:09 +0800
commit977e13469d48102bc3812140bdf3faf955e9f11a (patch)
tree133d157d8c0399adf9792a32207fcfa41ccbfeab /data
parentc088c9ab24ffeafeef6b7b092facb6f3f57efc28 (diff)
downloadgsoc2013-epiphany-977e13469d48102bc3812140bdf3faf955e9f11a.tar
gsoc2013-epiphany-977e13469d48102bc3812140bdf3faf955e9f11a.tar.gz
gsoc2013-epiphany-977e13469d48102bc3812140bdf3faf955e9f11a.tar.bz2
gsoc2013-epiphany-977e13469d48102bc3812140bdf3faf955e9f11a.tar.lz
gsoc2013-epiphany-977e13469d48102bc3812140bdf3faf955e9f11a.tar.xz
gsoc2013-epiphany-977e13469d48102bc3812140bdf3faf955e9f11a.tar.zst
gsoc2013-epiphany-977e13469d48102bc3812140bdf3faf955e9f11a.zip
More work on the start here page.
2003-01-07 Marco Pesenti Gritti <marco@it.gnome.org> * data/starthere/Makefile.am: * data/starthere/index.xml.in: * data/starthere/section.css: * data/starthere/section.xsl: * embed/mozilla/StartHereProtocolHandler.cpp: * embed/mozilla/mozilla-embed-shell.cpp: * lib/ephy-file-helpers.c: (ephy_ensure_dir_exists), (ephy_find_file_recursive), (ephy_file_find): * lib/ephy-file-helpers.h: * lib/ephy-start-here.c: (ephy_start_here_init), (ephy_start_here_finalize), (is_my_lang), (mozilla_bookmarks), (attach_content), (build_content), (ephy_start_here_get_page), (ephy_start_here_get_base_uri): * lib/ephy-start-here.h: More work on the start here page.
Diffstat (limited to 'data')
-rw-r--r--data/starthere/Makefile.am7
-rw-r--r--data/starthere/index.xml.in19
-rw-r--r--data/starthere/section.css29
-rw-r--r--data/starthere/section.xsl45
4 files changed, 93 insertions, 7 deletions
diff --git a/data/starthere/Makefile.am b/data/starthere/Makefile.am
index 411c442cf..77b723f8b 100644
--- a/data/starthere/Makefile.am
+++ b/data/starthere/Makefile.am
@@ -4,9 +4,10 @@ xmldir = $(pkgdatadir)/starthere
xml_in_files = index.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)
-xsldir = $(pkgdatadir)/starthere
-xsl_DATA = section.xsl
+pagedir = $(pkgdatadir)/starthere
+page_DATA = section.xsl section.css
EXTRA_DIST = $(xml_DATA) \
- $(xml_in_files)
+ $(xml_in_files) \
+ $(page_DATA)
diff --git a/data/starthere/index.xml.in b/data/starthere/index.xml.in
index b24de14f1..dd8a0f9a8 100644
--- a/data/starthere/index.xml.in
+++ b/data/starthere/index.xml.in
@@ -1,8 +1,23 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="section.xsl"?>
<section>
+<bar>
+<item section="start-here:">Start Here</item>
+<item section="start-here:smartbookmarks">Smart Bookmarks</item>
+</bar>
<_title>The web browser</_title>
-<_paragraph>What you use it for ?</_paragraph>
+<_paragraph>
+You can start browsing web pages either by typing a location (example: www.google.com)
+or a keyword (example: best computer shop) in the toolbar text entry.
+</_paragraph>
<_title>Getting started</_title>
-<_paragraph>How I begin ? Import bookmarks, proxy settings</_paragraph>
+<_paragraph>
+To import bookmarks from another browser installed on your system just
+click on one of the links below:
+<content id="bookmarks-import"/>
+</_paragraph>
+<_paragraph>
+If your internet connection requires it, make sure to setup your proxy in the
+desktop wide <_action>configuration dialog</_action>.
+</_paragraph>
</section>
diff --git a/data/starthere/section.css b/data/starthere/section.css
new file mode 100644
index 000000000..6b0cf8608
--- /dev/null
+++ b/data/starthere/section.css
@@ -0,0 +1,29 @@
+body {
+ margin-left: 150;
+ margin-right: 150;
+ background: #000000;
+ color: #FFFFFF;
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: 14px;
+}
+
+div.topbar {
+ height: 25px;
+ padding: 7px;
+ color: #000000;
+ background-color: #e57f20;
+ font-weight: bold;
+ margin-bottom: 50;
+}
+
+div.topbar a {
+ margin-right: 15;
+ font-size: 20px;
+ font-weight: bold;
+ color: #000000;
+}
+
+h2 {
+ color: #e57f20;
+ font-size: 18px;
+}
diff --git a/data/starthere/section.xsl b/data/starthere/section.xsl
index 6b349c626..62bdcf598 100644
--- a/data/starthere/section.xsl
+++ b/data/starthere/section.xsl
@@ -3,15 +3,14 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
-<!-- root rule -->
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
-<!-- main rule for document element -->
<xsl:template match="section">
<html>
<head>
+ <link rel="stylesheet" href="section.css" type="text/css"/>
</head>
<body>
<xsl:apply-templates/>
@@ -19,5 +18,47 @@
</html>
</xsl:template>
+<xsl:template match="content">
+<div class="body">
+ <xsl:apply-templates/>
+</div>
+</xsl:template>
+
+<xsl:template match="bar">
+<div class="topbar">
+ <xsl:apply-templates/>
+</div>
+</xsl:template>
+
+<xsl:template match="item">
+<a href="{@section}">
+ <xsl:apply-templates/>
+</a>
+</xsl:template>
+
+<xsl:template match="title">
+<h2>
+ <xsl:apply-templates/>
+</h2>
+</xsl:template>
+
+<xsl:template match="paragraph">
+<p>
+ <xsl:apply-templates/>
+</p>
+</xsl:template>
+
+<xsl:template match="buildcontent">
+<p>
+ <xsl:apply-templates/>
+</p>
+</xsl:template>
+
+<xsl:template match="action">
+<a href="action:{@id}?{@param}">
+ <xsl:apply-templates/>
+</a>
+</xsl:template>
+
</xsl:stylesheet>