Skip to content

Commit

Permalink
Updates screens (#54)
Browse files Browse the repository at this point in the history
* Updates images

* Adds list actions

* Config update

* fixes e2e tests

* fixes screens

* delete old images
  • Loading branch information
ashwin-pc authored May 12, 2023
1 parent ad82b1a commit 0826f5d
Show file tree
Hide file tree
Showing 40 changed files with 34 additions and 26 deletions.
54 changes: 31 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,39 @@ A static start page to get to your most important links, **FAST**. You can use t
- Read Only mode
- Full keyboard navigation support

## Screens

Landing page

| Desktop | Mobile |
| ----------------------------------------------------- | --------------------------------------------------- |
| ![Landing Page Desktop](docs/assets/main-desktop.png) | ![Landing Page Mobile](docs/assets/main-mobile.png) |

Quickly find links
![Main screen](docs/assets/main-desktop.png)

| Desktop | Mobile |
| ------------------------------------------------------- | ----------------------------------------------------- |
| ![Landing Page Desktop](docs/assets/search-desktop.png) | ![Landing Page Mobile](docs/assets/search-mobile.png) |

Easily edit links

| Desktop | Mobile |
| ----------------------------------------------------- | --------------------------------------------------- |
| ![Landing Page Desktop](docs/assets/edit-desktop.png) | ![Landing Page Mobile](docs/assets/edit-mobile.png) |

Locally manage config using JSON
## Screens

| Desktop | Mobile |
| --------------------------------------------------------------- | ------------------------------------------------------------- |
| ![Landing Page Desktop](docs/assets/config-manager-desktop.png) | ![Landing Page Mobile](docs/assets/config-manager-mobile.png) |
<div align="center">
<table style="width:100%; border: none;">
<tr>
<td></td>
<td><b>Desktop</b></td>
<td><b>Mobile</b></td>
</tr>
<tr>
<td><b>Landing Page</b></td>
<td><img src="docs/assets/main-desktop.png" alt="Landing Page Desktop"></td>
<td><img src="docs/assets/main-mobile.png" alt="Landing Page Mobile"></td>
</tr>
<tr>
<td><b>Quickly find links</b></td>
<td><img src="docs/assets/search-desktop.png" alt="Landing Page Desktop"></td>
<td><img src="docs/assets/search-mobile.png" alt="Landing Page Mobile"></td>
</tr>
<tr>
<td><b>Easily edit links</b></td>
<td><img src="docs/assets/edit-desktop.png" alt="Landing Page Desktop"></td>
<td><img src="docs/assets/edit-mobile.png" alt="Landing Page Mobile"></td>
</tr>
<tr>
<td><b>Locally manage config using JSON</b></td>
<td><img src="docs/assets/config-manager-desktop.png" alt="Landing Page Desktop"></td>
<td><img src="docs/assets/config-manager-mobile.png" alt="Landing Page Mobile"></td>
</tr>
</table>
</div>

Drag & drop config file

Expand Down
Binary file modified docs/assets/config-manager-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/config-manager-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/edit-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/edit-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/hotkey-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/hotkey-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/main-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/main-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/search-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/search-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/Blue_1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/Blue_1.png
Binary file not shown.
Binary file added public/assets/Blue_1_medium.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/Blue_2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/Blue_2.png
Binary file not shown.
Binary file added public/assets/Blue_2_medium.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/Blue_3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/Blue_3.png
Binary file not shown.
Binary file added public/assets/Blue_3_medium.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/Red_1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/Red_1.png
Binary file not shown.
Binary file added public/assets/Red_1_medium.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/Red_2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/Red_2.png
Binary file not shown.
Binary file added public/assets/Red_2_medium.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/Red_3.jpeg
Binary file removed public/assets/Red_3.png
Diff not rendered.
Binary file added public/assets/Red_3_medium.jpeg
Binary file added public/assets/White_1.jpeg
Binary file removed public/assets/White_1.png
Diff not rendered.
Binary file added public/assets/White_1_medium.jpeg
Binary file added public/assets/White_2.jpeg
Binary file removed public/assets/White_2.png
Diff not rendered.
Binary file added public/assets/White_2_medium.jpeg
Binary file added public/assets/White_3.jpeg
Binary file removed public/assets/White_3.png
Diff not rendered.
Binary file added public/assets/White_3_medium.jpeg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface Props extends EditContainerProps {
}

const FeaturedCard: FC<Props> = ({ link, editing, ...editingProps }) => {
const { name, link: linkUrl, background = getRandomBg() } = link || {}
const { name, link: linkUrl, background = getRandomBg('medium') } = link || {}

const backgroundUrl = isAbsoluteURL(background)
? background
Expand Down
4 changes: 2 additions & 2 deletions src/modules/config/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ let combinations = generateCombinations(colors, size)

// Get random array
let randomArray = getRandomArray(combinations.size)
export function getRandomBg() {
export function getRandomBg(size = 'normal') {
// every time we call this function, we get a new combination from the random array from count and then increment count
let combination =
Array.from(combinations)[randomArray[count++ % randomArray.length]]

// get url from combination
let url = `/assets/${combination}.png`
let url = `/assets/${combination}${size === 'medium' ? '_medium' : ''}.jpeg`
return url
}

0 comments on commit 0826f5d

Please sign in to comment.