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

Header links now center in mobile view #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 4 additions & 4 deletions src/blocks/header/dark/a.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function DarkHeaderA(props) {
<span className="ml-3 text-xl">Tailblocks</span>
</a>
<nav className="md:ml-auto flex flex-wrap items-center text-base justify-center">
<a href className="mr-5 hover:text-white">First Link</a>
<a href className="mr-5 hover:text-white">Second Link</a>
<a href className="mr-5 hover:text-white">Third Link</a>
<a href className="mr-5 hover:text-white">Fourth Link</a>
<a href className="mx-2 hover:text-white">First Link</a>
<a href className="mx-2 hover:text-white">Second Link</a>
<a href className="mx-2 hover:text-white">Third Link</a>
<a href className="mx-2 hover:text-white">Fourth Link</a>
</nav>
<button className="inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0">
Button
Expand Down
8 changes: 4 additions & 4 deletions src/blocks/header/dark/b.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function DarkHeaderB(props) {
<span className="ml-3 text-xl">Tailblocks</span>
</a>
<nav className="md:mr-auto md:ml-4 md:py-1 md:pl-4 md:border-l md:border-gray-700 flex flex-wrap items-center text-base justify-center">
<a href className="mr-5 hover:text-white">First Link</a>
<a href className="mr-5 hover:text-white">Second Link</a>
<a href className="mr-5 hover:text-white">Third Link</a>
<a href className="mr-5 hover:text-white">Fourth Link</a>
<a href className="mx-2 hover:text-white">First Link</a>
<a href className="mx-2 hover:text-white">Second Link</a>
<a href className="mx-2 hover:text-white">Third Link</a>
<a href className="mx-2 hover:text-white">Fourth Link</a>
</nav>
<button className="inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0">
Button
Expand Down
6 changes: 3 additions & 3 deletions src/blocks/header/dark/c.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function DarkHeaderC(props) {
<header className="text-gray-400 bg-gray-900 body-font">
<div className="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
<nav className="flex lg:w-2/5 flex-wrap items-center text-base md:ml-auto">
<a href className="mr-5 hover:text-white">First Link</a>
<a href className="mr-5 hover:text-white">Second Link</a>
<a href className="mr-5 hover:text-white">Third Link</a>
<a href className="mx-2 hover:text-white">First Link</a>
<a href className="mx-2 hover:text-white">Second Link</a>
<a href className="mx-2 hover:text-white">Third Link</a>
<a href className="hover:text-white">Fourth Link</a>
</nav>
<a href className="flex order-first lg:order-none lg:w-1/5 title-font font-medium items-center text-white lg:items-center lg:justify-center mb-4 md:mb-0">
Expand Down
8 changes: 4 additions & 4 deletions src/blocks/header/dark/d.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function DarkHeaderD(props) {
<span className="ml-3 text-xl">Tailblocks</span>
</a>
<nav className="md:ml-auto md:mr-auto flex flex-wrap items-center text-base justify-center">
<a href className="mr-5 hover:text-white">First Link</a>
<a href className="mr-5 hover:text-white">Second Link</a>
<a href className="mr-5 hover:text-white">Third Link</a>
<a href className="mr-5 hover:text-white">Fourth Link</a>
<a href className="mx-2 hover:text-white">First Link</a>
<a href className="mx-2 hover:text-white">Second Link</a>
<a href className="mx-2 hover:text-white">Third Link</a>
<a href className="mx-2 hover:text-white">Fourth Link</a>
</nav>
<button className="inline-flex items-center bg-gray-800 border-0 py-1 px-3 focus:outline-none hover:bg-gray-700 rounded text-base mt-4 md:mt-0">
Button
Expand Down
8 changes: 4 additions & 4 deletions src/blocks/header/light/a.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function LightHeaderA(props) {
<span className="ml-3 text-xl">Tailblocks</span>
</a>
<nav className="md:ml-auto flex flex-wrap items-center text-base justify-center">
<a href className="mr-5 hover:text-gray-900">First Link</a>
<a href className="mr-5 hover:text-gray-900">Second Link</a>
<a href className="mr-5 hover:text-gray-900">Third Link</a>
<a href className="mr-5 hover:text-gray-900">Fourth Link</a>
<a href className="mx-2 hover:text-gray-900">First Link</a>
<a href className="mx-2 hover:text-gray-900">Second Link</a>
<a href className="mx-2 hover:text-gray-900">Third Link</a>
<a href className="mx-2 hover:text-gray-900">Fourth Link</a>
</nav>
<button className="inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">
Button
Expand Down
8 changes: 4 additions & 4 deletions src/blocks/header/light/b.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function LightHeaderB(props) {
<span className="ml-3 text-xl">Tailblocks</span>
</a>
<nav className="md:mr-auto md:ml-4 md:py-1 md:pl-4 md:border-l md:border-gray-400 flex flex-wrap items-center text-base justify-center">
<a href className="mr-5 hover:text-gray-900">First Link</a>
<a href className="mr-5 hover:text-gray-900">Second Link</a>
<a href className="mr-5 hover:text-gray-900">Third Link</a>
<a href className="mr-5 hover:text-gray-900">Fourth Link</a>
<a href className="mx-2 hover:text-gray-900">First Link</a>
<a href className="mx-2 hover:text-gray-900">Second Link</a>
<a href className="mx-2 hover:text-gray-900">Third Link</a>
<a href className="mx-2 hover:text-gray-900">Fourth Link</a>
</nav>
<button className="inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">
Button
Expand Down
6 changes: 3 additions & 3 deletions src/blocks/header/light/c.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function LightHeaderC(props) {
<header className="text-gray-600 body-font">
<div className="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
<nav className="flex lg:w-2/5 flex-wrap items-center text-base md:ml-auto">
<a href className="mr-5 hover:text-gray-900">First Link</a>
<a href className="mr-5 hover:text-gray-900">Second Link</a>
<a href className="mr-5 hover:text-gray-900">Third Link</a>
<a href className="mx-2 hover:text-gray-900">First Link</a>
<a href className="mx-2 hover:text-gray-900">Second Link</a>
<a href className="mx-2 hover:text-gray-900">Third Link</a>
<a href className="hover:text-gray-900">Fourth Link</a>
</nav>
<a href className="flex order-first lg:order-none lg:w-1/5 title-font font-medium items-center text-gray-900 lg:items-center lg:justify-center mb-4 md:mb-0">
Expand Down
8 changes: 4 additions & 4 deletions src/blocks/header/light/d.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ function LightHeaderD(props) {
<span className="ml-3 text-xl">Tailblocks</span>
</a>
<nav className="md:ml-auto md:mr-auto flex flex-wrap items-center text-base justify-center">
<a href className="mr-5 hover:text-gray-900">First Link</a>
<a href className="mr-5 hover:text-gray-900">Second Link</a>
<a href className="mr-5 hover:text-gray-900">Third Link</a>
<a href className="mr-5 hover:text-gray-900">Fourth Link</a>
<a href className="mx-2 hover:text-gray-900">First Link</a>
<a href className="mx-2 hover:text-gray-900">Second Link</a>
<a href className="mx-2 hover:text-gray-900">Third Link</a>
<a href className="mx-2 hover:text-gray-900">Fourth Link</a>
</nav>
<button className="inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">
Button
Expand Down