1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 11:39:36 +02:00

Small changes to CSS. README.md with screenshots

This commit is contained in:
unknown 2021-06-08 12:51:50 +02:00
parent 1636b705de
commit 22920f2660
16 changed files with 70 additions and 40 deletions

View file

@ -1 +1,2 @@
node_modules node_modules
github

View file

@ -8,10 +8,15 @@ RUN npm install --only=production
COPY . . COPY . .
RUN mkdir -p ./public ./data RUN mkdir -p ./public ./data \
RUN mv ./client/build/* ./public && cd ./client \
RUN rm -rf ./client && npm run build \
&& cd .. \
&& mv ./client/build/* ./public \
&& rm -rf ./client
EXPOSE 5005 EXPOSE 5005
ENV NODE_ENV=production
CMD ["node", "server.js"] CMD ["node", "server.js"]

View file

@ -1,5 +1,7 @@
# Flame # Flame
![Homescreen screenshot](./github/_home.png)
## Description ## Description
Flame is self-hosted startpage for your server. It's inspired (heavily) by [SUI](https://github.com/jeroenpardon/sui) Flame is self-hosted startpage for your server. It's inspired (heavily) by [SUI](https://github.com/jeroenpardon/sui)
@ -20,7 +22,7 @@ git clone https://github.com/pawelmalak/flame
cd flame cd flame
# run only once # run only once
<TODO> npm run dev-init
# start backend and frontend development servers # start backend and frontend development servers
npm run dev npm run dev
@ -32,11 +34,25 @@ npm run dev
docker build -t flame . docker build -t flame .
# run container # run container
docker run \ docker run -p 5005:5005 -v <host_dir>:/app/data flame
-p 5005:5005 \
-v <host_dir>:/app/data \
flame
``` ```
## Functionality ## Functionality
todo - Applications
- Create, update and delete applications using GUI
- Pin your favourite apps to homescreen
![Homescreen screenshot](./github/_apps.png)
- Bookmarks
- Create, update and delete bookmarks and categories using GUI
- Pin your favourite categories to homescreen
![Homescreen screenshot](./github/_bookmarks.png)
- Weather
- Get current temperature, cloud coverage and weather status with animated icons
- Themes
- Customize your page by choosing from 12 color themes
![Homescreen screenshot](./github/_themes.png)

View file

@ -1,25 +1,18 @@
.AppCard { .AppCard {
width: 100%; width: 100%;
/* height: 50px; */
/* max-width: 150px; */
/* border: 1px solid red; */
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
} }
.AppCardIcon { .AppCardIcon {
/* height: 64px; */ width: 35px;
width: 40px; height: 35px;
height: 40px;
margin-right: 0.5em; margin-right: 0.5em;
} }
.AppCardDetails { .AppCardDetails {
text-transform: uppercase; text-transform: uppercase;
/* display: flex;
flex-direction: column;
justify-content: center; */
} }
.AppCardDetails h5 { .AppCardDetails h5 {

View file

@ -1,5 +1,4 @@
.BookmarkCard { .BookmarkCard {
/* margin-top: 10px; */
margin-bottom: 30px; margin-bottom: 30px;
} }
@ -21,8 +20,7 @@
transition: all 0.25s; transition: all 0.25s;
} }
.BookmarkCard a:hover, .BookmarkCard a:hover {
.BookmarkCard a:focus {
text-decoration: underline; text-decoration: underline;
padding-left: 10px; padding-left: 10px;
} }

View file

@ -54,3 +54,7 @@
visibility: hidden; visibility: hidden;
} }
} }
.HomeSpace {
height: 20px;
}

View file

@ -51,17 +51,7 @@ const Home = (props: ComponentProps): JSX.Element => {
const now = new Date(); const now = new Date();
const ordinal = (day: number): string => { return `${days[now.getDay()]}, ${now.getDate()} ${months[now.getMonth()]} ${now.getFullYear()}`;
if (day > 3 && day < 21) return 'th';
switch (day % 10) {
case 1: return "st";
case 2: return "nd";
case 3: return "rd";
default: return "th";
}
}
return `${days[now.getDay()]}, ${now.getDate()}${ordinal(now.getDate())} ${months[now.getMonth()]} ${now.getFullYear()}`;
} }
const greeter = (): string => { const greeter = (): string => {
@ -94,6 +84,8 @@ const Home = (props: ComponentProps): JSX.Element => {
: <AppGrid apps={props.apps.filter((app: App) => app.isPinned)} /> : <AppGrid apps={props.apps.filter((app: App) => app.isPinned)} />
} }
<div className={classes.HomeSpace}></div>
<SectionHeadline title='Bookmarks' link='/bookmarks' /> <SectionHeadline title='Bookmarks' link='/bookmarks' />
{props.categoriesLoading {props.categoriesLoading
? <Spinner /> ? <Spinner />

View file

@ -89,7 +89,7 @@ const WeatherSettings = (props: ComponentProps): JSX.Element => {
.catch(err => console.log(err)); .catch(err => console.log(err));
// set localStorage // set localStorage
localStorage.setItem('isCelsius', JSON.stringify(formData.isCelsius === 1)) localStorage.setItem('isCelsius', JSON.stringify(parseInt(`${formData.isCelsius}`) === 1))
} }
return ( return (

View file

@ -2,9 +2,8 @@
background-color: var(--color-background); background-color: var(--color-background);
color: var(--color-primary); color: var(--color-primary);
border-radius: 6px; border-radius: 6px;
width: 60%; width: 95%;
position: relative; position: relative;
/* height: 50vh; */
padding: 50px 50px; padding: 50px 50px;
} }
@ -18,3 +17,27 @@
.ModalFormIcon:hover { .ModalFormIcon:hover {
cursor: pointer; cursor: pointer;
} }
@media (min-width: 430px) {
.ModalForm {
width: 90%;
}
}
@media (min-width: 800px) {
.ModalForm {
width: 70%;
}
}
@media (min-width: 1000px) {
.ModalForm {
width: 60%;
}
}
@media (min-width: 1400px) {
.ModalForm {
width: 40%;
}
}

View file

@ -1,7 +1,7 @@
.Modal { .Modal {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
z-index: 100; z-index: 100;

View file

@ -2,7 +2,6 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
/* user-select: none; */
} }
body { body {

BIN
github/_apps.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
github/_bookmarks.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

BIN
github/_home.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
github/_themes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

View file

@ -10,8 +10,7 @@
"dev-init": "npm run init-server && npm run init-client", "dev-init": "npm run init-server && npm run init-client",
"dev-server": "nodemon server.js", "dev-server": "nodemon server.js",
"dev-client": "npm start --prefix client", "dev-client": "npm start --prefix client",
"dev": "concurrently \"npm run dev-server\" \"npm run dev-client\"", "dev": "concurrently \"npm run dev-server\" \"npm run dev-client\""
"build": "docker build -t flame ."
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",