blur
This commit is contained in:
+10
-2
@@ -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",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
{backgroundImg ? (
|
||||||
<Image
|
<Image
|
||||||
source={backgroundImg}
|
source={backgroundImg}
|
||||||
resizeMode="cover"
|
resizeMode="cover"
|
||||||
|
// blurRadius={!isWeb ? blurIntensity : undefined}
|
||||||
|
blurIntensity={blurIntensity}
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "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={{
|
||||||
|
|||||||
@@ -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) => (
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user