doc: Update the welcome page

This commit is contained in:
Oleg Shparber
2017-08-16 00:27:43 +03:00
parent 2a42b600ae
commit 2f953b5857
10 changed files with 5707 additions and 26 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
-18
View File
@@ -1,18 +0,0 @@
<html>
<head>
<title>Start Page</title>
<link href="main.css" rel="stylesheet" type="text/css">
</head>
<body onmousedown="event.preventDefault()" oncontextmenu="event.preventDefault()">
<div class="dynamic"></div>
<div class="container">
<img src="qrc:///icons/logo/128x128.png">
<h1 id="title">Zeal</h1>
</div>
<div class="dynamic"></div>
<footer>
<p><a href="https://zealdocs.org">zealdocs.org</a> | <a href="https://twitter.com/zealdocs">@zealdocs</a><p>
<p><small><a href="https://www.kapeli.com/dash">Get Dash for OS X or iOS</a></small><p>
</footer>
</body>
</html>
+54
View File
@@ -0,0 +1,54 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome</title>
<link rel="stylesheet" type="text/css" href="assets/css/bulma.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css">
</head>
<body onmousedown="event.preventDefault()" oncontextmenu="event.preventDefault()">
<section class="hero is-fullheight">
<div class="hero-head">
<header class="nav">
<div class="container">
<div class="nav-left nav-menu">
<a class="nav-item" href="https://zealdocs.org/">
zealdocs.org
</a>
</div>
</div>
</header>
</div>
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title">
Zeal
</h1>
<h2 class="subtitle">
Docs for everyone
</h2>
</div>
</div>
<div class="hero-foot">
<div class="container">
<div class="content has-text-centered">
<p>
<a class="icon" href="https://github.com/zealdocs/zeal">
<i class="fa fa-github"></i>
</a>
<a class="icon" href="https://twitter.com/zealdocs">
<i class="fa fa-twitter"></i>
</a>
</p>
<p>
<a class="is-size-7" href="https://www.kapeli.com/dash">Get Dash for OS X or iOS</a>
</p>
</p></p>
</div>
</div>
</div>
</section>
</body>
</html>
+7 -4
View File
@@ -1,10 +1,13 @@
<RCC>
<qresource prefix="/">
<file>zeal.ico</file>
<file>browser/darkmode.css</file>
<file>browser/highlight.css</file>
<file>browser/main.css</file>
<file>browser/start.html</file>
<file>browser/assets/css/bulma.css</file>
<file>browser/assets/css/darkmode.css</file>
<file>browser/assets/css/font-awesome.min.css</file>
<file>browser/assets/css/highlight.css</file>
<file>browser/assets/css/main.css</file>
<file>browser/assets/fonts/fontawesome-webfont.woff</file>
<file>browser/welcome.html</file>
<file>icons/type/_DashAnnotations.png</file>
<file>icons/type/_DashAnnotations@2x.png</file>
<file>icons/type/_Struct.png</file>
+4 -4
View File
@@ -57,9 +57,9 @@ using namespace Zeal;
using namespace Zeal::WidgetUi;
namespace {
const char startPageUrl[] = "qrc:///browser/start.html";
const char DarkModeCssUrl[] = ":/browser/darkmode.css";
const char HighlightOnNavigateCssUrl[] = ":/browser/highlight.css";;
const char startPageUrl[] = "qrc:///browser/welcome.html";
const char DarkModeCssUrl[] = ":/browser/assets/css/darkmode.css";
const char HighlightOnNavigateCssUrl[] = ":/browser/assets/css/highlight.css";
}
namespace Zeal {
@@ -608,7 +608,7 @@ void MainWindow::setupTabBar()
m_tabBar->setDrawBase(false);
m_tabBar->setDocumentMode(true);
m_tabBar->setElideMode(Qt::ElideRight);
m_tabBar->setStyleSheet(QStringLiteral("QTabBar::tab { width: 150px; }"));
m_tabBar->setStyleSheet(QStringLiteral("QTabBar::tab { min-width: 150px; }"));
connect(m_tabBar, &QTabBar::currentChanged, this, [this](int index) {
static const char PreviousTabIndexProperty[] = "previousTabIndex";