Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix menu and buttons on mobile viewport sizes #44

Merged
merged 4 commits into from
Feb 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@

Buttercup is a free, open-source and cross-platform password manager. This repository contains Buttercup's static homepage.

![](https://cloud.githubusercontent.com/assets/768052/23095888/90b2ac44-f61a-11e6-9c39-30496362d8de.png)
![](./static/img/buttercup-homepage.png)

### Usage
- `git clone https://github.com/buttercup/buttercup-website.git`
- `cd buttercup-website`
- `npm install`
- `npm dev` to run locally at localhost:3000
8 changes: 7 additions & 1 deletion components/header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import Link from 'next/link';

// Toggles mobile hamburger menu
const toggleMenu = () => {
const menu = document.getElementById('mainMenu')
menu.classList.toggle('is-active')
}

export default () => (
<header>
<nav className="navbar is-transparent has-shadow">
Expand All @@ -23,7 +29,7 @@ export default () => (
</span>
</a>

<div className="navbar-burger burger" data-target="mainMenu">
<div className="navbar-burger burger" data-target="mainMenu" onClick={() => toggleMenu()}>
<span />
<span />
<span />
Expand Down
5 changes: 5 additions & 0 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ $primary: #00b7ac;
}
}

.field.is-grouped {
flex-wrap: wrap;
}

.is-grouped > .button {
margin-right: 0.5rem;
margin-bottom: 0.5rem;
}

.store-links {
Expand Down
Binary file added static/img/buttercup-homepage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.