Merge pull request #342 from Budibase/feature/move-homelinks-to-bb

bump bbui version and rework homepage to use HomeLinks
This commit is contained in:
Kevin Åberg Kultalahti 2020-06-08 12:24:47 +02:00 committed by GitHub
commit df2cc03e91
2 changed files with 18 additions and 121 deletions

View File

@ -39,7 +39,7 @@
}, },
"dependencies": { "dependencies": {
"@beyonk/svelte-notifications": "^2.0.3", "@beyonk/svelte-notifications": "^2.0.3",
"@budibase/bbui": "^0.3.5", "@budibase/bbui": "^0.3.7",
"@budibase/client": "^0.0.32", "@budibase/client": "^0.0.32",
"@nx-js/compiler-util": "^2.0.0", "@nx-js/compiler-util": "^2.0.0",
"codemirror": "^5.51.0", "codemirror": "^5.51.0",

View File

@ -1,5 +1,6 @@
<script> <script>
import Modal from "svelte-simple-modal" import Modal from "svelte-simple-modal"
import { Home as Link } from "@budibase/bbui"
import { import {
SettingsIcon, SettingsIcon,
AppsIcon, AppsIcon,
@ -24,89 +25,29 @@
<div class="nav-section"> <div class="nav-section">
<div class="nav-section-title">Build</div> <div class="nav-section-title">Build</div>
<div class="nav-item-home"> <Link icon={AppsIcon} title="Apps" href="/" active />
<span class="nav-item-icon"> <Link icon={SettingsIcon} title="Settings" href="/" />
<AppsIcon /> <Link icon={UpdatesIcon} title="Updates" href="/" />
</span> <Link icon={HostingIcon} title="Hosting" href="/" />
<div class="nav-item-title">Apps</div>
</div>
<div class="nav-item">
<span class="nav-item-icon">
<SettingsIcon />
</span>
<div class="nav-item-title">Settings</div>
</div>
<a href="https://budibase.con/login" target="_blank" class="nav-item">
<span class="nav-item-icon">
<UpdatesIcon />
</span>
<div class="nav-item-title">Updates</div>
</a>
<a href="https://budibase.con/login" target="_blank" class="nav-item">
<span class="nav-item-icon">
<HostingIcon />
</span>
<div class="nav-item-title">Hosting</div>
</a>
</div> </div>
<div class="nav-section"> <div class="nav-section">
<div class="nav-section-title">Learn</div> <div class="nav-section-title">Learn</div>
<a href="https://docs.budibase.com/" target="_blank" class="nav-item"> <Link icon={DocumentationIcon} title="Documentation" href="/" />
<span class="nav-item-icon"> <Link icon={TutorialsIcon} title="Tutorials" href="/" />
<DocumentationIcon /> <Link icon={CommunityIcon} title="Community" href="/" />
</span> <Link icon={ContributionIcon} title="Contact" href="/" />
<div class="nav-item-title">Documentation</div>
</a>
<a
href="https://docs.budibase.com/tutorial/quick-start"
target="_blank"
class="nav-item">
<span class="nav-item-icon">
<TutorialsIcon />
</span>
<div class="nav-item-title">Tutorials</div>
</a>
<a href="https://forum.budibase.com/" target="_blank" class="nav-item">
<span class="nav-item-icon">
<CommunityIcon />
</span>
<div class="nav-item-title">Community</div>
</a>
</div> </div>
<div class="nav-section"> <div class="nav-section">
<div class="nav-section-title">Contact</div> <div class="nav-section-title">Contact</div>
<a <Link
href="https://github.com/Budibase/budibase/blob/master/CONTRIBUTING.md" icon={ContributionIcon}
target="_blank" title="Contribute to our product"
class="nav-item"> href="/" />
<span class="nav-item-icon"> <Link icon={BugIcon} title="Report bug" href="/" />
<ContributionIcon /> <Link icon={EmailIcon} title="Email" href="/" />
</span> <Link icon={TwitterIcon} title="Twitter" href="/" />
<div class="nav-item-title">Contribute to our product</div>
</a>
<a
href="https://github.com/Budibase/budibase/issues"
target="_blank"
class="nav-item">
<span class="nav-item-icon">
<BugIcon />
</span>
<div class="nav-item-title">Report bug</div>
</a>
<a href="mailto:support@budibase.com" target="_blank" class="nav-item">
<span class="nav-item-icon">
<EmailIcon />
</span>
<div class="nav-item-title">Email</div>
</a>
<a href="https://twitter.com/budibase" target="_blank" class="nav-item">
<span class="nav-item-icon">
<TwitterIcon />
</span>
<div class="nav-item-title">Twitter</div>
</a>
</div> </div>
</div> </div>
@ -160,48 +101,4 @@
font-weight: 700; font-weight: 700;
margin-bottom: 12px; margin-bottom: 12px;
} }
.nav-item {
cursor: pointer;
margin: 0px 0px 4px 0px;
padding: 0px 0px 0px 12px;
height: 40px;
display: flex;
flex-direction: row;
align-items: center;
box-sizing: border-box;
}
.nav-item-home {
cursor: pointer;
margin: 0px 0px 4px 0px;
padding: 0px 0px 0px 12px;
height: 40px;
display: flex;
flex-direction: row;
align-items: center;
box-sizing: border-box;
background-color: var(--blue-light);
}
.nav-item:hover {
background-color: var(--grey-light);
border-radius: 3px;
}
.nav-item::selection {
background-color: var(--blue-light);
border-radius: 3px;
}
.nav-item-title {
font-size: 14px;
color: var(--ink);
font-weight: 400;
margin-left: 12px;
}
.nav-item-icon {
color: var(--ink-light);
}
</style> </style>