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

Minimal upgrade to homepage and history page #821

Open
wants to merge 3 commits into
base: dev
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
26 changes: 26 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Android CI

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
100 changes: 42 additions & 58 deletions app/src/main/html/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
</head>
<style>
body {
background: #f5f5f5;
text-align: center;
background: #F5F5F5;
padding: 0px;
margin: 0px;
box-sizing: border-box;
}

#search_input {
Expand All @@ -31,19 +32,19 @@
}

.search_bar {
display: table;
vertical-align: middle;
width: 90%;
display: block;
width: 80%;
height: 35px;
padding: 2px 10px 5px 10px;
max-width: 500px;
margin: 0 auto;
background-color: #fff;
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.25);
font-family: Arial;
color: #444;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}

#search_submit {
Expand All @@ -57,68 +58,51 @@
background-color: transparent;
}

.outer {
display: table;
position: absolute;
height: 100%;
width: 100%;
}

.middle {
display: table-cell;
vertical-align: middle;
}

.inner {
margin-left: auto;
margin-right: auto;
margin-bottom: 10%;
width: 100%;
display: flex;
height: 100vh;
width: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
}

img.smaller {
width: 50%;
max-width: 300px;
display: block;
width: 50%;
max-width: 300px;
justify-items: center;
}

.box {
vertical-align: middle;
position: relative;
display: block;
margin: 10px;
padding-left: 10px;
padding-right: 10px;
padding-top: 5px;
padding-bottom: 5px;
background-color: #fff;
box-shadow: 0px 3px rgba(0, 0, 0, 0.1);
font-family: Arial;
color: #444;
font-size: 12px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
vertical-align: middle;
position: relative;
display: block;
margin: 10px;
padding: 5px 10px;
background-color: #fff;
box-shadow: 0px 3px rgba(0, 0, 0, 0.1);
font-family: Arial;
color: #444;
font-size: 12px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
}

</style>

<body>
<div class="outer">
<div class="middle">
<div class="inner">
<img id="image_url" class="smaller" src="${IMAGE}">
</br>
</br>
<form onsubmit="return search()" class="search_bar" autocomplete="off">
<input type="submit" id="search_submit" value="Search">
<span>
<input class="search" type="text" value="" id="search_input" />
</span>
</form>
</br>
</br>
</div>
</div>
<div class="inner">
<img id="image_url" class="smaller" src="${IMAGE}">
</br>
</br>
<form onsubmit="return search()" class="search_bar" autocomplete="off">
<input type="submit" id="search_submit" value="Search">
<span>
<input class="search" type="text" value="" id="search_input" />
</span>
</form>
</div>
<script type="text/javascript">
function search() {
Expand Down
19 changes: 13 additions & 6 deletions app/src/main/html/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
position: relative;
display: block;
margin: 0px;
padding-left: 14px;
padding-right: 14px;
padding-top: 9px;
padding-bottom: 9px;
padding: 9px 14px;
background-color: #fff;
border-bottom: 1px solid #d2d2d2;
font-family: Arial;
Expand Down Expand Up @@ -63,12 +60,22 @@
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
}

.header--text {
position: sticky;
display: block;
padding: 20px 0 5px 14px;
border-bottom: 1px solid #d2d2d2;
}
.header--text h2 {
font-weight: 300;
}
</style>

<body>
<div id="content">

<div class="header--text">
<h2>History</h2>
</div>
<div id=repeated class=box>
<a href='${URL}'></a>
<p id='title' class='black'>${TITLE}</p>
Expand Down