Skip to content
Merged
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
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0.0"
versionName "deriva_sonora_v1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
Expand Down
2 changes: 1 addition & 1 deletion build-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ timestamp=$(date +"%Y%m%d-%H%M%S")

# Development feature keyword system - Recording Error Fixes
# You can modify this keyword based on the current development focus
DEV_KEYWORD="topbar-rebalance"
DEV_KEYWORD="map-zoom-derive-colors"

# Alternative keywords for different features:
# DEV_KEYWORD="spatial-audio-nearby" # For proximity-based spatial audio
Expand Down
16 changes: 8 additions & 8 deletions src/components/AliasPrompt.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const AliasPrompt = ({ onSubmit, onCancel }) => {
left: 0,
right: 0,
bottom: 0,
backgroundColor: 'rgba(0, 0, 0, 0.7)',
backgroundColor: 'rgb(20 50 20 / 65%)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
zIndex: 10000
}}>
<div style={{
backgroundColor: 'white',
backgroundColor: '#f0f1ec',
borderRadius: '12px',
padding: '24px',
maxWidth: '340px',
Expand All @@ -35,7 +35,7 @@ const AliasPrompt = ({ onSubmit, onCancel }) => {
margin: '0 0 8px 0',
fontSize: '18px',
fontWeight: '600',
color: '#111827'
color: '#000000c9'
}}>
Tu nombre de caminante
</h3>
Expand All @@ -57,7 +57,7 @@ const AliasPrompt = ({ onSubmit, onCancel }) => {
style={{
width: '100%',
padding: '10px 12px',
border: '1px solid #D1D5DB',
border: '1px solid rgba(78,78,134,0.22)',
borderRadius: '8px',
fontSize: '16px',
outline: 'none',
Expand All @@ -72,7 +72,7 @@ const AliasPrompt = ({ onSubmit, onCancel }) => {
style={{
flex: 1,
padding: '10px',
backgroundColor: alias.trim() ? '#10B981' : '#9CA3AF',
backgroundColor: alias.trim() ? '#9dc04cd4' : '#9CA3AF',
color: 'white',
border: 'none',
borderRadius: '8px',
Expand All @@ -88,9 +88,9 @@ const AliasPrompt = ({ onSubmit, onCancel }) => {
onClick={onCancel}
style={{
padding: '10px 16px',
backgroundColor: 'white',
color: '#374151',
border: '1px solid #D1D5DB',
backgroundColor: '#f0f1ec',
color: 'rgb(1 9 2 / 84%)',
border: '1px solid rgba(78,78,134,0.22)',
borderRadius: '8px',
fontSize: '14px',
cursor: 'pointer'
Expand Down
16 changes: 8 additions & 8 deletions src/components/BreadcrumbVisualization.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import L from 'leaflet';
// Create custom icons for breadcrumb markers
const createBreadcrumbIcon = (isMoving, audioLevel, size = 8) => {
// Color based on movement and audio level
let color = '#3B82F6'; // blue (default)
let color = '#4e4e86'; // blue (default)

if (isMoving) {
if (audioLevel > 0.7) color = '#EF4444'; // red (high audio, moving)
if (audioLevel > 0.7) color = '#c24a6e'; // red (high audio, moving)
else if (audioLevel > 0.4) color = '#F59E0B'; // amber (medium audio, moving)
else color = '#10B981'; // green (low audio, moving)
else color = '#9dc04cd4'; // green (low audio, moving)
} else {
if (audioLevel > 0.7) color = '#8B5CF6'; // purple (high audio, stationary)
if (audioLevel > 0.7) color = '#6a6aad'; // purple (high audio, stationary)
else if (audioLevel > 0.4) color = '#EC4899'; // pink (medium audio, stationary)
else color = '#6B7280'; // gray (low audio, stationary)
}
Expand Down Expand Up @@ -40,7 +40,7 @@ const createDirectionIcon = (direction, size = 16) => {
html: `<div style="
width: ${size}px;
height: ${size}px;
background-color: #1F2937;
background-color: #000000c9;
border: 2px solid white;
border-radius: 50%;
display: flex;
Expand Down Expand Up @@ -110,11 +110,11 @@ const BreadcrumbVisualization = ({
const audioLevel = breadcrumbs[index].audioLevel || 0;

if (isMoving) {
if (audioLevel > 0.7) return '#EF4444'; // red
if (audioLevel > 0.7) return '#c24a6e'; // red
if (audioLevel > 0.4) return '#F59E0B'; // amber
return '#10B981'; // green
return '#9dc04cd4'; // green
} else {
if (audioLevel > 0.7) return '#8B5CF6'; // purple
if (audioLevel > 0.7) return '#6a6aad'; // purple
if (audioLevel > 0.4) return '#EC4899'; // pink
return '#6B7280'; // gray
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/DetailView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class DetailView extends React.Component {
var point = this.props.point.properties

innerInfo =
<div className="absolute w-full p-2 pt-4 md:pt-16 pin-b pin-l gradient flex items-center justify-center" style={{ height: "50%", backgroundColor: "rgba(0, 0, 0, 0.85)"}}>
<div className="absolute w-full p-2 pt-4 md:pt-16 pin-b pin-l gradient flex items-center justify-center" style={{ height: "50%", backgroundColor: "rgb(20 50 20 / 85%)"}}>
<i onClick={() => this.props.getPreviousRecording(this.props.point)} className="fas fa-chevron-left text-4xl text-white hover:text-black cursor-pointer m-2 md:m-12"></i>
<div className="max-w-xl flex flex-col sm:flex-row flex items-start md:items-center h-full">
<div className="h-1/2 p-4 text-black leading-normal pb-3 font-sans overflow-auto" style={{ flex:2 }}>
Expand Down
42 changes: 21 additions & 21 deletions src/components/LandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
boxSizing: 'border-box'
}}>
<div style={{
backgroundColor: 'rgba(0, 0, 0, 0.07)',
backgroundColor: 'rgb(20 50 20 / 35%)',
borderRadius: '16px',
padding: '30px',
maxWidth: '500px',
Expand Down Expand Up @@ -115,7 +115,7 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
alignItems: 'center',
justifyContent: 'center',
gap: '12px',
backgroundColor: 'rgba(16, 185, 129, 0.8)',
backgroundColor: 'rgba(157, 192, 76, 0.83)',
color: 'white',
border: 'none',
borderRadius: '8px',
Expand All @@ -125,8 +125,8 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
cursor: 'pointer',
transition: 'all 0.2s',
}}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = 'rgba(16, 185, 129, 1)'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = 'rgba(16, 185, 129, 0.8)'}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = 'rgba(157, 192, 76, 1)'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = 'rgba(157, 192, 76, 0.83)'}
>
Entrar
</button>
Expand All @@ -139,7 +139,7 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
display: 'flex',
alignItems: 'center',
gap: '12px',
backgroundColor: 'rgba(16, 185, 129, 0.8)',
backgroundColor: 'rgba(157, 192, 76, 0.83)',
color: 'white',
border: 'none',
borderRadius: '8px',
Expand All @@ -150,8 +150,8 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
transition: 'all 0.2s',
textAlign: 'left'
}}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = 'rgba(16, 185, 129, 1)'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = 'rgba(16, 185, 129, 0.8)'}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = 'rgba(157, 192, 76, 1)'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = 'rgba(157, 192, 76, 0.83)'}
>
<div style={{
backgroundColor: 'rgba(255, 255, 255, 0.2)',
Expand Down Expand Up @@ -179,7 +179,7 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
display: 'flex',
alignItems: 'center',
gap: '12px',
backgroundColor: 'rgba(59, 130, 246, 0.8)',
backgroundColor: 'rgba(78, 78, 134, 0.84)',
color: 'white',
border: 'none',
borderRadius: '8px',
Expand All @@ -190,8 +190,8 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
transition: 'all 0.2s',
textAlign: 'left'
}}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = 'rgba(59, 130, 246, 1)'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = 'rgba(59, 130, 246, 0.8)'}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = 'rgba(78, 78, 134, 1)'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = 'rgba(78, 78, 134, 0.84)'}
>
<div style={{
backgroundColor: 'rgba(255, 255, 255, 0.2)',
Expand All @@ -212,15 +212,15 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
</button>
) : (
<div style={{
backgroundColor: 'rgba(255, 255, 255, 0.9)',
backgroundColor: 'rgba(220, 225, 235, 0.92)',
borderRadius: '12px',
padding: '20px',
boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)'
}}>
<h3 style={{
fontSize: '16px',
fontWeight: '600',
color: '#1F2937',
color: '#000000c9',
marginTop: '0',
marginBottom: '16px'
}}>
Expand All @@ -238,18 +238,18 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
style={{
width: '100%',
padding: '12px 16px',
border: passwordError ? '2px solid #EF4444' : '2px solid #E5E7EB',
border: passwordError ? '2px solid #c24a6e' : '2px solid rgba(78,78,134,0.15)',
borderRadius: '8px',
fontSize: '14px',
outline: 'none',
marginBottom: '8px',
boxSizing: 'border-box',
backgroundColor: '#fff'
backgroundColor: '#f0f1ec'
}}
/>
{passwordError && (
<div style={{
color: '#EF4444',
color: '#c24a6e',
fontSize: '12px',
marginTop: '4px',
marginBottom: '12px'
Expand All @@ -266,7 +266,7 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
type="submit"
style={{
flex: 1,
backgroundColor: '#3B82F6',
backgroundColor: '#4e4e86',
color: 'white',
border: 'none',
borderRadius: '6px',
Expand All @@ -276,8 +276,8 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
cursor: 'pointer',
transition: 'background-color 0.2s'
}}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = '#2563EB'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = '#3B82F6'}
onMouseOver={(e) => e.currentTarget.style.backgroundColor = '#3d3d6b'}
onMouseOut={(e) => e.currentTarget.style.backgroundColor = '#4e4e86'}
>
Ingresar
</button>
Expand Down Expand Up @@ -343,9 +343,9 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
bottom: '50%',
left: '50%',
transform: 'translate(-50%, 50%)',
backgroundColor: '#ffffffbf',
backgroundColor: 'rgba(220,225,235,0.78)',
borderRadius: '16px',
boxShadow: 'rgb(157 58 58 / 30%) 0px 10px 30px',
boxShadow: 'rgba(78,78,134,0.25) 0px 10px 30px',
backdropFilter: 'blur(12px)',
width: '90%',
maxWidth: '400px',
Expand Down Expand Up @@ -374,7 +374,7 @@ const LandingPage = ({ onModeSelect, hasRequestedPermission, setHasRequestedPerm
</button>

<div style={{ fontSize: '13px', lineHeight: '1.6', color: '#2D3748' }}>
<div style={{ fontSize: '13px', lineHeight: '1.6', color: 'rgb(1 9 2 / 84%)' }}>
<p style={{ marginTop: 0, marginBottom: '14px', fontSize: '13px' }}>
<strong>SoundWalk</strong> es un dispositivo para crear mapas sonoros comunitarios.
Genera derivas sonoras que capturan la diversidad acustica y facilitan
Expand Down
Loading
Loading