Skip to content

Commit

Permalink
First pass at adding a decent UI. Prototype ready
Browse files Browse the repository at this point in the history
Signed-off-by: Kaustav Das Modak <[email protected]>
  • Loading branch information
Kaustav Das Modak committed Oct 3, 2014
1 parent 3081884 commit 9df9e50
Show file tree
Hide file tree
Showing 8 changed files with 317 additions and 79 deletions.
103 changes: 99 additions & 4 deletions css/app.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,107 @@
body {
font-family: "Fira Sans", "Open Sans", sans;
font-family: "Fira Sans", "Open Sans", "Helvetica Neue", sans-serif;
background-color: #fff;
overflow: hidden;
text-rendering: optimizeLegibility;
}

.main-section {
margin-top: 15px;
min-height: 100vh;
x-appbar.sticky {
position: absolute;
top: 0;
left: 0;
}

x-flipbox {
position: absolute;
height: calc(100vh - 45px);
padding: 20px;
top: 45px;
left: 0;
overflow: auto;
}

#searchform-inner {
width: 100%;
height: 45px;
position: relative;
}

#searchbox-wrapper {
width: 80%;
margin: 0;
padding: 0;
float: left;
}

#searchsubmit-wrapper {
width: 20%;
margin: 0;
padding: 0;
float: left;
}

#searchbox {
width: 100%;
height: 45px;
outline: 0;
border: 1px solid #999;
padding: 0;
margin: 0;
box-shadow: 0;
border-radius: 0;
text-indent: 10px;
}

#searchsubmit {
display: block;
width: 100%;
height: 45px;
line-height: 45px;
text-align: center;
text-decoration: none;
background-color: #04B309;
color: #fff;
outline: 0;
border: 1px solid #038207;
border-radius: 0;
}

#resultsbox {
list-style-type: none;
margin: 0;
padding: 0;
}

.resultitem {
word-wrap: break-word;
background-color: #f2f2f2;
border: 1px solid #ebebeb;
margin: 0.3em;
padding: 0.3em;
}

.resultitem:focus {
border-color: #0095DD;
}

.resultitem h4 {
padding: 0;
margin: 0;
font-weight: normal;
}

.wobblebar {
transition: opacity .25s ease-in-out;
opacity: 0.9;
padding-top: 5px;
animation-iteration-count: infinite;
}

.wobblebar.hide {
opacity: 0;
animation-iteration-count: 0;
}

small {
color: #707070;
}
31 changes: 31 additions & 0 deletions css/brick.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion css/foundation.min.css

This file was deleted.

134 changes: 134 additions & 0 deletions css/wobblebar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
@keyframes wobblebar {
0% {
left: 5%;
}

3% {
left: 95%;
}

6% {
left: 5%;
}

9% {
left: 95%;
}

12% {
left: 25%;
}

15% {
left: 75%;
}

18% {
left: 25%;
}

27% {
left: 5%;
}

30% {
left: 95%;
}

33% {
left: 5%;
}

36% {
left: 95%;
}

39% {
left: 25%;
}

42% {
left: 75%;
}

45% {
left: 25%;
}

48% {
left: 5%;
}

51% {
left: 95%;
}

63% {
left: 5%;
}

66% {
left: 95%;
}

69% {
left: 25%;
}

72% {
left: 75%;
}

75% {
left: 25%;
}

78% {
left: 5%;
}

81% {
left: 95%;
}

84% {
left: 5%;
}

94% {
left: 75%;
}

97% {
left: 25%;
}
}

/* Styles for old versions of IE */
.wobblebar {
font-family: sans-serif;
font-weight: 100;
}

/* :not(:required) hides this rule from IE9 and below */
.wobblebar:not(:required) {
background: #999;
display: inline-block;
overflow: hidden;
text-indent: -9999px;
width: 100%;
height: 10px;
position: relative;
}
.wobblebar:not(:required)::after {
animation: wobblebar 15000ms infinite ease;
background: white;
border-radius: 5px;
display: block;
content: '';
position: absolute;
top: 3.55556px;
left: 4px;
width: 21.33333px;
height: 5px;
}
87 changes: 28 additions & 59 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,46 @@
<title>Finder</title>
<meta name="description" content="Search and pick files from device">

<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/foundation.min.css">
<link rel="stylesheet" type="text/css" href="css/brick.css">
<link rel="stylesheet" type="text/css" href="css/wobblebar.css">
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>

<body>

<div class="off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">

<nav class="tab-bar">

<section class="left tab-bar-section">
<h1 class="title">Finder</h1>
</section>

<section class="right-small">
<a class="right-off-canvas-toggle menu-icon"><span></span></a>
</section>
</nav><!-- /.tab-bar -->

<aside id="right-canvas" class="right-off-canvas-menu">
<ul class="off-canvas-list">
<li><a href="index.html">Reset</a></li>
<li><a href="#" data-reveal-id="credits-modal">Credits</a></li>
</ul>
</aside><!-- /.right-off-canvas-menu -->

<section class="main-section">

<div class="row sticky">
<div class="small-12 columns">
<form id="searchform">
<div class="row">
<div class="small-12 columns">
<div class="row collapse">
<div class="small-10 columns">
<input id="searchbox" type="text" placeholder="Search...">
</div>
<div class="small-2 columns">
<a id="searchsubmit" href="#" class="button postfix">Go</a>
</div>
</div>
</div>
</div>
</form>
<x-appbar>
<button id="menu-btn"></button>
<h1>Finder</h1>
<button id="reset-btn">Reset</button>
</x-appbar>
<x-flipbox>
<div class="main-content">
<form id="searchform">
<div id="searchform-inner">
<div id="searchbox-wrapper">
<input id="searchbox" type="text" placeholder="Search..." maxlength="20" required>
</div>
</div>

<div class="row">
<div class="small-12 columns" id="resultsbox">
<div id="searchsubmit-wrapper">
<a id="searchsubmit" class="button" href="#">Go</a>
</div>
</div>

</section><!-- /.main-section -->

<a class="exit-off-canvas"></a>

</div><!-- /.inner-wrap -->
</div><!-- /.off-canvas-wrap -->

<div id="credits-modal" class="reveal-modal" data-reveal>
<p class="lead">Built with love by <a href="http://applait.com" target="_blank">Applait</a>.</p>
<p>Finder is powered by <a href="http://github.com/applait/finderjs" target="_blank">FinderJS</a>.</p>
<a class="close-reveal-modal">&#215;</a>
</div><!-- /#credits-modal -->
</form>
<div class="wobblebar hide">Loading...</div>
<ul id="resultsbox"></ul>
</div>
<div class="menu">
<p id="credits" class="lead">
Made with love, by <a href="http://applait.io/" target="_blank">applait</a>.
</p>
<p>Powered by <a href="http://github.com/applait/finderjs" target="_blank">FinderJS</a>.</p>
</div>
</x-flipbox>

<script type="text/javascript" src="js/libs/jquery.js"></script>
<script type="text/javascript" src="js/libs/foundation.min.js"></script>
<script type="text/javascript" src="js/libs/brick.js"></script>
<script type="text/javascript" src="js/libs/EventEmitter.min.js"></script>
<script type="text/javascript" src="js/libs/applait.finder.js"></script>
<script type="text/javascript" src="js/app.js"></script>
Expand Down
Loading

0 comments on commit 9df9e50

Please sign in to comment.