This commit is contained in:
2025-10-03 10:35:25 +02:00
parent 8b0dafe634
commit c6a5501cff
3 changed files with 27 additions and 15 deletions
+21 -13
View File
@@ -6,9 +6,9 @@ import React from "reactn";
import { responsiveHeight } from "../actions/responsiveSizes.js"; import { responsiveHeight } from "../actions/responsiveSizes.js";
import BaseHeader from "../components/BaseHeader"; import BaseHeader from "../components/BaseHeader";
import NavigateHeader from "../components/NavigateHeader"; import NavigateHeader from "../components/NavigateHeader";
import { gutters } from "../styles";
import { isWeb } from "../hooks/useLayoutType.js";
import ShareBtn from "../components/ShareBtn/ShareBtn"; import ShareBtn from "../components/ShareBtn/ShareBtn";
import { isWeb } from "../hooks/useLayoutType.js";
import { gutters } from "../styles";
export default ({ export default ({
children, children,
@@ -35,6 +35,7 @@ export default ({
width = undefined, width = undefined,
maxWidth = 1200, maxWidth = 1200,
shareBtn = false, shareBtn = false,
blurIntensity = 0,
}) => { }) => {
const PageContainer = const PageContainer =
containerType === "SAFE_AREA_VIEW" ? SafeAreaView : View; containerType === "SAFE_AREA_VIEW" ? SafeAreaView : View;
@@ -51,17 +52,24 @@ export default ({
position: "relative", position: "relative",
}} }}
> >
<Image {backgroundImg ? (
source={backgroundImg} <Image
resizeMode="cover" source={backgroundImg}
style={{ resizeMode="cover"
position: "absolute", // blurRadius={!isWeb ? blurIntensity : undefined}
top: 0, blurIntensity={blurIntensity}
left: 0, style={{
width: "100%", position: "absolute",
height: "100%", top: 0,
}} left: 0,
/> width: "100%",
height: "100%",
...(isWeb && blurIntensity
? { filter: `blur(${blurIntensity}px)` }
: {}),
}}
/>
) : null}
<PageContainer <PageContainer
{...(containerType === "SAFE_AREA_VIEW" ? { edges: ["top"] } : {})} {...(containerType === "SAFE_AREA_VIEW" ? { edges: ["top"] } : {})}
style={{ style={{
+4
View File
@@ -186,6 +186,9 @@ const HitParade = () => {
<Page <Page
backgroundImg={isWeb ? background.libraryBgWeb : background.hitParadeBG} backgroundImg={isWeb ? background.libraryBgWeb : background.hitParadeBG}
headerType="NONE" headerType="NONE"
width="100%"
maxWidth={null}
blurIntensity={isWeb ? 2 : 0}
> >
<View style={{ gap: 12, flex: 1 }}> <View style={{ gap: 12, flex: 1 }}>
<Image source={icons.musicLandLogo} style={{ alignSelf: "center" }} /> <Image source={icons.musicLandLogo} style={{ alignSelf: "center" }} />
@@ -228,6 +231,7 @@ const HitParade = () => {
...Style.containerRow, ...Style.containerRow,
justifyContent: "space-between", justifyContent: "space-between",
width: "auto", width: "auto",
gap: 12,
}} }}
> >
{["Chansons", "Playbacks"].map((item, index) => ( {["Chansons", "Playbacks"].map((item, index) => (
+2 -2
View File
@@ -451,7 +451,7 @@ const MusicDetails = ({ route }) => {
> >
{/* Left column: player */} {/* Left column: player */}
<BlurView <BlurView
intensity={1} intensity={40}
style={{ style={{
flex: 1, flex: 1,
paddingRight: 8, paddingRight: 8,
@@ -605,7 +605,7 @@ const MusicDetails = ({ route }) => {
{lines.length > 0 && ( {lines.length > 0 && (
<BlurView <BlurView
intensity={1} intensity={40}
style={{ style={{
flex: 1, flex: 1,
paddingLeft: 8, paddingLeft: 8,