13 Commits

Author SHA1 Message Date
Space-Banane
5f2c63ac05 add pull request check workflow
All checks were successful
Pull Request Check / validate (pull_request) Successful in 24s
Build App / build-android (push) Successful in 8m27s
Build App / build-web (push) Successful in 30s
Build App / release (push) Successful in 22s
2026-03-11 22:04:20 +01:00
root
2d5677cd0f add dismiss button to minion feature 2026-03-11 22:01:00 +01:00
root
53d7e0dcb7 revert changes to ci.yml 2026-03-11 21:59:56 +01:00
root
898bb59149 clean up ci triggers
Some checks failed
Build App / build-web (pull_request) Has been cancelled
Build App / release (pull_request) Has been cancelled
Build App / build-android (pull_request) Has been cancelled
2026-03-11 21:59:16 +01:00
root
7308635cee restore original CI workflow and update triggers
Some checks failed
Build App / build-web (push) Has been cancelled
Build App / release (push) Has been cancelled
Build App / build-android (push) Has been cancelled
Build App / build-web (pull_request) Has been cancelled
Build App / release (pull_request) Has been cancelled
Build App / build-android (pull_request) Has been cancelled
2026-03-11 21:58:35 +01:00
root
f8ecc30a69 restore copilot-instructions.md
All checks were successful
CI / build (push) Successful in 11s
CI / build (pull_request) Successful in 11s
2026-03-11 21:53:22 +01:00
root
1d99c729dd move CI workflow to .gitea and remove .github remnants
All checks were successful
CI / build (push) Successful in 14s
CI / build (pull_request) Successful in 11s
2026-03-11 21:52:45 +01:00
root
bb543182b7 feat: show minion on shake (android/ios) and fix CI workflow 2026-03-11 21:51:35 +01:00
5393910b4c Merge pull request 'docs: add development instructions to README' (#1) from update-readme into main
All checks were successful
Build App / build-android (push) Successful in 6m17s
Build App / build-web (push) Successful in 36s
Build App / release (push) Successful in 1m36s
Reviewed-on: #1
2026-03-11 20:20:26 +01:00
root
f67bcdaddf docs: add development instructions to README 2026-03-11 20:16:25 +01:00
Space-Banane
51c54d4892 Add splash screen handling and logo to HomeScreen, update dependencies
All checks were successful
Build App / build-android (push) Successful in 7m2s
Build App / build-web (push) Successful in 29s
Build App / release (push) Successful in 11s
2026-03-10 21:13:25 +01:00
Space-Banane
60909913a5 Add Docker configuration and entrypoint script for Nginx web service
All checks were successful
Build App / build-android (push) Successful in 7m6s
Build App / build-web (push) Successful in 40s
Build App / release (push) Successful in 31s
2026-03-10 20:44:00 +01:00
Space-Banane
cbf7d08f6a Refactor CI workflow to separate Android and web build jobs, and enhance artifact handling
Some checks failed
Build App / build-web (push) Has been cancelled
Build App / release (push) Has been cancelled
Build App / build-android (push) Has been cancelled
2026-03-10 20:38:55 +01:00
11 changed files with 407 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ on:
- main - main
jobs: jobs:
build: build-android:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 🏗 Setup repo - name: 🏗 Setup repo
@@ -48,7 +48,6 @@ jobs:
--platform=android \ --platform=android \
--profile=preview --profile=preview
# Neuer Schritt: Rename das Binary, damit es wie eine echte App aussieht
- name: 📝 Rename build to APK - name: 📝 Rename build to APK
run: mv app-build app-release.apk run: mv app-build app-release.apk
@@ -59,6 +58,62 @@ jobs:
path: app-release.apk path: app-release.apk
if-no-files-found: error if-no-files-found: error
build-web:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 22
- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
token: ${{ secrets.EXPO_TOKEN }}
eas-version: latest
packager: pnpm
- name: 📦 Install dependencies
run: pnpm install
- name: 👷 Build web
run: npx expo export --platform web
- name: 📦 Zip dist
run: cd dist && zip -r ../dist.zip .
- name: 📤 Upload build artifact
uses: actions/upload-artifact@v3
with:
name: web-build
path: dist.zip
if-no-files-found: error
release:
runs-on: ubuntu-latest
needs: [build-android, build-web]
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
- name: 📥 Download Android artifact
uses: actions/download-artifact@v3
with:
name: android-preview-build
- name: 📥 Download Web artifact
uses: actions/download-artifact@v3
with:
name: web-build
- name: 🏷 Create tag - name: 🏷 Create tag
run: | run: |
TAG="build-$(git rev-parse --short HEAD)" TAG="build-$(git rev-parse --short HEAD)"
@@ -71,7 +126,9 @@ jobs:
with: with:
tag_name: ${{ env.RELEASE_TAG }} tag_name: ${{ env.RELEASE_TAG }}
name: ${{ env.RELEASE_TAG }} name: ${{ env.RELEASE_TAG }}
files: app-release.apk files: |
app-release.apk
dist.zip
generate_release_notes: true generate_release_notes: true
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

28
.gitea/workflows/pr.yml Normal file
View File

@@ -0,0 +1,28 @@
name: Pull Request Check
on:
pull_request:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 22
- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: 📦 Install dependencies
run: pnpm install
- name: 🧪 Check for linting/type errors
run: npx expo export --platform web

42
App.js
View File

@@ -1,6 +1,8 @@
import React, { useEffect, useMemo, useRef, useState } from 'react'; import React, { useEffect, useMemo, useRef, useState } from 'react';
import { BackHandler, Platform, StatusBar } from 'react-native'; import { BackHandler, Platform, StatusBar, Modal, View, Image, StyleSheet, Button } from 'react-native';
import * as ScreenOrientation from 'expo-screen-orientation'; import * as ScreenOrientation from 'expo-screen-orientation';
import * as SplashScreen from 'expo-splash-screen';
import { Accelerometer } from 'expo-sensors';
import FocusScreen from './src/screens/FocusScreen'; import FocusScreen from './src/screens/FocusScreen';
import HomeScreen from './src/screens/HomeScreen'; import HomeScreen from './src/screens/HomeScreen';
import TimeUntilScreen from './src/screens/TimeUntilScreen'; import TimeUntilScreen from './src/screens/TimeUntilScreen';
@@ -8,6 +10,11 @@ import TimerScreen from './src/screens/TimerScreen';
import { createStyles } from './src/styles'; import { createStyles } from './src/styles';
import { getTheme } from './src/theme'; import { getTheme } from './src/theme';
// Keep the splash screen visible while we fetch resources
SplashScreen.preventAutoHideAsync().catch(() => {
/* reloading the app might cause this to error in dev */
});
export default function App() { export default function App() {
const styles = useMemo(() => createStyles(), []); const styles = useMemo(() => createStyles(), []);
@@ -18,6 +25,8 @@ export default function App() {
const [isFullscreen, setIsFullscreen] = useState(false); const [isFullscreen, setIsFullscreen] = useState(false);
const [now, setNow] = useState(new Date()); const [now, setNow] = useState(new Date());
const [showMinion, setShowMinion] = useState(false);
const [targetTime, setTargetTime] = useState(null); const [targetTime, setTargetTime] = useState(null);
const [tuHour, setTuHour] = useState(''); const [tuHour, setTuHour] = useState('');
const [tuMinute, setTuMinute] = useState(''); const [tuMinute, setTuMinute] = useState('');
@@ -33,12 +42,31 @@ export default function App() {
const timerRef = useRef(null); const timerRef = useRef(null);
const theme = getTheme(darkMode, pinkMode); const theme = getTheme(darkMode, pinkMode);
useEffect(() => {
// Hide splash screen after initialization
SplashScreen.hideAsync().catch(() => {});
}, []);
useEffect(() => { useEffect(() => {
if (Platform.OS !== 'web') { if (Platform.OS !== 'web') {
ScreenOrientation.unlockAsync(); ScreenOrientation.unlockAsync();
} }
}, []); }, []);
useEffect(() => {
if (Platform.OS === 'android' || Platform.OS === 'ios') {
Accelerometer.setUpdateInterval(500);
const subscription = Accelerometer.addListener(({ x, y, z }) => {
const acceleration = Math.sqrt(x * x + y * y + z * z);
if (acceleration > 2.5) {
setShowMinion(true);
setTimeout(() => setShowMinion(false), 3000);
}
});
return () => subscription.remove();
}
}, []);
useEffect(() => { useEffect(() => {
const interval = setInterval(() => setNow(new Date()), 1000); const interval = setInterval(() => setNow(new Date()), 1000);
return () => clearInterval(interval); return () => clearInterval(interval);
@@ -240,6 +268,18 @@ export default function App() {
return ( return (
<> <>
<Modal visible={showMinion} transparent={true} animationType="fade">
<View style={StyleSheet.absoluteFill}>
<Image
source={{ uri: 'https://shx.reversed.dev/u/XHuDcA.jpg' }}
style={{ flex: 1 }}
resizeMode="contain"
/>
<View style={{ position: 'absolute', top: 50, right: 20 }}>
<Button title="Dismiss" onPress={() => setShowMinion(false)} />
</View>
</View>
</Modal>
<StatusBar barStyle={barStyle} backgroundColor={theme.bg} /> <StatusBar barStyle={barStyle} backgroundColor={theme.bg} />
<TimerScreen <TimerScreen
styles={styles} styles={styles}

View File

@@ -20,6 +20,18 @@ https://gitea.reversed.dev/space/time-until/releases
- Shared UI components are in `src/components`. - Shared UI components are in `src/components`.
- Theme + styling are managed via `src/theme.js` and `src/styles.js`. - Theme + styling are managed via `src/theme.js` and `src/styles.js`.
## Development
1. Install dependencies:
```bash
npm install
```
2. Start the development server:
```bash
npx expo start
```
### Time Until Mode ### Time Until Mode
- Enter hour/minute in 24-hour format. - Enter hour/minute in 24-hour format.

View File

@@ -19,7 +19,7 @@
"android": { "android": {
"package": "com.spacebanane.timeuntil", "package": "com.spacebanane.timeuntil",
"adaptiveIcon": { "adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png", "foregroundImage": "./assets/icon.png",
"backgroundColor": "#0d0d0d" "backgroundColor": "#0d0d0d"
} }
}, },

8
docker-compose.yml Normal file
View File

@@ -0,0 +1,8 @@
services:
web:
image: nginx:alpine
ports:
- "45554:80"
volumes:
- ./entrypoint.sh:/entrypoint.sh:ro
entrypoint: ["/bin/sh", "/entrypoint.sh"]

29
entrypoint.sh Normal file
View File

@@ -0,0 +1,29 @@
#!/bin/sh
set -e
WEBROOT="/usr/share/nginx/html"
GITEA_URL="https://gitea.reversed.dev"
GITEA_REPO="space/time-until"
echo "Fetching latest release"
RELEASE_JSON=$(wget -qO- \
"$GITEA_URL/api/v1/repos/$GITEA_REPO/releases/latest")
ASSET_URL=$(echo "$RELEASE_JSON" | sed -n 's/.*"browser_download_url" *: *"\([^"]*dist\.zip[^"]*\)".*/\1/p' | head -1)
if [ -z "$ASSET_URL" ]; then
echo "ERROR: No dist.zip found in latest release"
exit 1
fi
echo "Downloading $ASSET_URL ..."
wget -qO /tmp/dist.zip --header="$AUTH_HEADER" "$ASSET_URL"
echo "Extracting to $WEBROOT ..."
rm -rf "${WEBROOT:?}"/*
unzip -o /tmp/dist.zip -d "$WEBROOT"
rm /tmp/dist.zip
echo "Starting nginx ..."
exec nginx -g "daemon off;"

215
package-lock.json generated
View File

@@ -10,6 +10,8 @@
"dependencies": { "dependencies": {
"expo": "~54.0.33", "expo": "~54.0.33",
"expo-screen-orientation": "~9.0.8", "expo-screen-orientation": "~9.0.8",
"expo-sensors": "^55.0.8",
"expo-splash-screen": "^55.0.10",
"expo-status-bar": "~3.0.9", "expo-status-bar": "~3.0.9",
"react": "19.1.0", "react": "19.1.0",
"react-dom": "19.1.0", "react-dom": "19.1.0",
@@ -2171,6 +2173,193 @@
"xmlbuilder": "^15.1.1" "xmlbuilder": "^15.1.1"
} }
}, },
"node_modules/@expo/prebuild-config": {
"version": "55.0.8",
"resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-55.0.8.tgz",
"integrity": "sha512-VJNJiOmmZgyDnR7JMmc3B8Z0ZepZ17I8Wtw+wAH/2+UCUsFg588XU+bwgYcFGw+is28kwGjY46z43kfufpxOnA==",
"license": "MIT",
"dependencies": {
"@expo/config": "~55.0.8",
"@expo/config-plugins": "~55.0.6",
"@expo/config-types": "^55.0.5",
"@expo/image-utils": "^0.8.12",
"@expo/json-file": "^10.0.12",
"@react-native/normalize-colors": "0.83.2",
"debug": "^4.3.1",
"resolve-from": "^5.0.0",
"semver": "^7.6.0",
"xml2js": "0.6.0"
},
"peerDependencies": {
"expo": "*"
}
},
"node_modules/@expo/prebuild-config/node_modules/@expo/config": {
"version": "55.0.8",
"resolved": "https://registry.npmjs.org/@expo/config/-/config-55.0.8.tgz",
"integrity": "sha512-D7RYYHfErCgEllGxNwdYdkgzLna7zkzUECBV3snbUpf7RvIpB5l1LpCgzuVoc5KVew5h7N1Tn4LnT/tBSUZsQg==",
"license": "MIT",
"dependencies": {
"@expo/config-plugins": "~55.0.6",
"@expo/config-types": "^55.0.5",
"@expo/json-file": "^10.0.12",
"@expo/require-utils": "^55.0.2",
"deepmerge": "^4.3.1",
"getenv": "^2.0.0",
"glob": "^13.0.0",
"resolve-from": "^5.0.0",
"resolve-workspace-root": "^2.0.0",
"semver": "^7.6.0",
"slugify": "^1.3.4"
}
},
"node_modules/@expo/prebuild-config/node_modules/@expo/config-plugins": {
"version": "55.0.6",
"resolved": "https://registry.npmjs.org/@expo/config-plugins/-/config-plugins-55.0.6.tgz",
"integrity": "sha512-cIox6FjZlFaaX40rbQ3DvP9e87S5X85H9uw+BAxJE5timkMhuByy3GAlOsj1h96EyzSiol7Q6YIGgY1Jiz4M+A==",
"license": "MIT",
"dependencies": {
"@expo/config-types": "^55.0.5",
"@expo/json-file": "~10.0.12",
"@expo/plist": "^0.5.2",
"@expo/sdk-runtime-versions": "^1.0.0",
"chalk": "^4.1.2",
"debug": "^4.3.5",
"getenv": "^2.0.0",
"glob": "^13.0.0",
"resolve-from": "^5.0.0",
"semver": "^7.5.4",
"slugify": "^1.6.6",
"xcode": "^3.0.1",
"xml2js": "0.6.0"
}
},
"node_modules/@expo/prebuild-config/node_modules/@expo/config-types": {
"version": "55.0.5",
"resolved": "https://registry.npmjs.org/@expo/config-types/-/config-types-55.0.5.tgz",
"integrity": "sha512-sCmSUZG4mZ/ySXvfyyBdhjivz8Q539X1NondwDdYG7s3SBsk+wsgPJzYsqgAG/P9+l0xWjUD2F+kQ1cAJ6NNLg==",
"license": "MIT"
},
"node_modules/@expo/prebuild-config/node_modules/@expo/plist": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/@expo/plist/-/plist-0.5.2.tgz",
"integrity": "sha512-o4xdVdBpe4aTl3sPMZ2u3fJH4iG1I768EIRk1xRZP+GaFI93MaR3JvoFibYqxeTmLQ1p1kNEVqylfUjezxx45g==",
"license": "MIT",
"dependencies": {
"@xmldom/xmldom": "^0.8.8",
"base64-js": "^1.5.1",
"xmlbuilder": "^15.1.1"
}
},
"node_modules/@expo/prebuild-config/node_modules/@react-native/normalize-colors": {
"version": "0.83.2",
"resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.83.2.tgz",
"integrity": "sha512-gkZAb9LoVVzNuYzzOviH7DiPTXQoZPHuiTH2+O2+VWNtOkiznjgvqpwYAhg58a5zfRq5GXlbBdf5mzRj5+3Y5Q==",
"license": "MIT"
},
"node_modules/@expo/prebuild-config/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/@expo/prebuild-config/node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"license": "MIT",
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/@expo/prebuild-config/node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"license": "MIT",
"dependencies": {
"color-name": "~1.1.4"
},
"engines": {
"node": ">=7.0.0"
}
},
"node_modules/@expo/prebuild-config/node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"license": "MIT"
},
"node_modules/@expo/prebuild-config/node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/@expo/prebuild-config/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"license": "MIT",
"dependencies": {
"has-flag": "^4.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/@expo/require-utils": {
"version": "55.0.2",
"resolved": "https://registry.npmjs.org/@expo/require-utils/-/require-utils-55.0.2.tgz",
"integrity": "sha512-dV5oCShQ1umKBKagMMT4B/N+SREsQe3lU4Zgmko5AO0rxKV0tynZT6xXs+e2JxuqT4Rz997atg7pki0BnZb4uw==",
"license": "MIT",
"dependencies": {
"@babel/code-frame": "^7.20.0",
"@babel/core": "^7.25.2",
"@babel/plugin-transform-modules-commonjs": "^7.24.8"
},
"peerDependencies": {
"typescript": "^5.0.0 || ^5.0.0-0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
}
},
"node_modules/@expo/require-utils/node_modules/@babel/code-frame": {
"version": "7.29.0",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
"integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
"license": "MIT",
"dependencies": {
"@babel/helper-validator-identifier": "^7.28.5",
"js-tokens": "^4.0.0",
"picocolors": "^1.1.1"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@expo/schema-utils": { "node_modules/@expo/schema-utils": {
"version": "0.1.8", "version": "0.1.8",
"resolved": "https://registry.npmjs.org/@expo/schema-utils/-/schema-utils-0.1.8.tgz", "resolved": "https://registry.npmjs.org/@expo/schema-utils/-/schema-utils-0.1.8.tgz",
@@ -4400,6 +4589,19 @@
"react-native": "*" "react-native": "*"
} }
}, },
"node_modules/expo-sensors": {
"version": "55.0.8",
"resolved": "https://registry.npmjs.org/expo-sensors/-/expo-sensors-55.0.8.tgz",
"integrity": "sha512-aYDw/IBqJtWQgCIJh12oyj5N4ldT88Aa0V/Vag88xG8K2hOQuM2SLGeNlxGRFRtgLJ4m7pzXhQW7CJRj6p1uHQ==",
"license": "MIT",
"dependencies": {
"invariant": "^2.2.4"
},
"peerDependencies": {
"expo": "*",
"react-native": "*"
}
},
"node_modules/expo-server": { "node_modules/expo-server": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/expo-server/-/expo-server-1.0.5.tgz", "resolved": "https://registry.npmjs.org/expo-server/-/expo-server-1.0.5.tgz",
@@ -4409,6 +4611,18 @@
"node": ">=20.16.0" "node": ">=20.16.0"
} }
}, },
"node_modules/expo-splash-screen": {
"version": "55.0.10",
"resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-55.0.10.tgz",
"integrity": "sha512-RN5qqrxudxFlRIjLFr/Ifmt+mUCLRc0gs66PekP6flzNS/JYEuoCbwJ+NmUwwJtPA+vyy60DYiky0QmS98ydmQ==",
"license": "MIT",
"dependencies": {
"@expo/prebuild-config": "^55.0.8"
},
"peerDependencies": {
"expo": "*"
}
},
"node_modules/expo-status-bar": { "node_modules/expo-status-bar": {
"version": "3.0.9", "version": "3.0.9",
"resolved": "https://registry.npmjs.org/expo-status-bar/-/expo-status-bar-3.0.9.tgz", "resolved": "https://registry.npmjs.org/expo-status-bar/-/expo-status-bar-3.0.9.tgz",
@@ -7331,6 +7545,7 @@
"resolved": "https://registry.npmjs.org/react-native/-/react-native-0.81.5.tgz", "resolved": "https://registry.npmjs.org/react-native/-/react-native-0.81.5.tgz",
"integrity": "sha512-1w+/oSjEXZjMqsIvmkCRsOc8UBYv163bTWKTI8+1mxztvQPhCRYGTvZ/PL1w16xXHneIj/SLGfxWg2GWN2uexw==", "integrity": "sha512-1w+/oSjEXZjMqsIvmkCRsOc8UBYv163bTWKTI8+1mxztvQPhCRYGTvZ/PL1w16xXHneIj/SLGfxWg2GWN2uexw==",
"license": "MIT", "license": "MIT",
"peer": true,
"dependencies": { "dependencies": {
"@jest/create-cache-key-function": "^29.7.0", "@jest/create-cache-key-function": "^29.7.0",
"@react-native/assets-registry": "0.81.5", "@react-native/assets-registry": "0.81.5",

View File

@@ -11,6 +11,8 @@
"dependencies": { "dependencies": {
"expo": "~54.0.33", "expo": "~54.0.33",
"expo-screen-orientation": "~9.0.8", "expo-screen-orientation": "~9.0.8",
"expo-sensors": "^55.0.8",
"expo-splash-screen": "^55.0.10",
"expo-status-bar": "~3.0.9", "expo-status-bar": "~3.0.9",
"react": "19.1.0", "react": "19.1.0",
"react-dom": "19.1.0", "react-dom": "19.1.0",

View File

@@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { ScrollView, Text, TouchableOpacity, View } from 'react-native'; import { ScrollView, Text, TouchableOpacity, View, Image } from 'react-native';
import TopControls from '../components/TopControls'; import TopControls from '../components/TopControls';
export default function HomeScreen({ export default function HomeScreen({
@@ -18,6 +18,10 @@ export default function HomeScreen({
return ( return (
<View style={[styles.root, { backgroundColor: theme.bg }]}> <View style={[styles.root, { backgroundColor: theme.bg }]}>
<ScrollView contentContainerStyle={styles.scroll} keyboardShouldPersistTaps="handled"> <ScrollView contentContainerStyle={styles.scroll} keyboardShouldPersistTaps="handled">
<Image
source={require('../../assets/icon.png')}
style={[styles.logo, pinkMode && { borderColor: theme.accent, borderWidth: 2 }]}
/>
<Text <Text
style={[ style={[
styles.title, styles.title,

View File

@@ -16,6 +16,12 @@ export function createStyles() {
marginBottom: 20, marginBottom: 20,
letterSpacing: 1, letterSpacing: 1,
}, },
logo: {
width: 100,
height: 100,
marginBottom: 20,
borderRadius: 22,
},
topRow: { topRow: {
width: '100%', width: '100%',
maxWidth: 640, maxWidth: 640,