Skip to content

Commit 481ef8f

Browse files
committedAug 19, 2021
fixbg
1 parent 7b8cfad commit 481ef8f

File tree

8 files changed

+14
-33
lines changed

8 files changed

+14
-33
lines changed
 

‎components/common/Container.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React, { memo } from 'react'
22
import PropTypes from 'prop-types'
3-
// import classnames from 'classnames'
3+
import classnames from 'classnames'
44
// import BackgroundImage from 'components/common/BackgroundImage'
55

66
const Container = memo(({ className, children }) => {
77
return (
8-
<div className="relative w-screen h-screen">
9-
<div className={ className }>{children}</div>
8+
<div className={classnames('relative w-screen h-screen', className)}>
9+
<div>{children}</div>
1010
</div>
1111
)
1212
})

‎components/sessions/create/Step1.js

-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import Button from 'components/common/Button'
2323
import MapBox from 'components/common/MapBox'
2424
import LoadingOverlay from 'components/common/LoadingOverlay'
2525
import DetailIcon from 'components/icons/DetailIcon'
26-
// import Popup from 'components/common/Popup'
2726
import { useRouter } from 'next/router'
2827
import urls from 'consts/urls'
2928

@@ -43,8 +42,6 @@ const Step1 = memo(({ formData, setFormData }) => {
4342
const [userLocation, setUserLocation] = useState(null)
4443
const [isToggleView, setIsToggleView] = useState(true)
4544
const [dataOldSessions, setDataOldSessions] = useState([])
46-
// // const [openPopup, setOpenPopup] = useState(false)
47-
// const [idDetail, setIdDetail] = useState('')
4845
const router = useRouter()
4946
sessionStorage.getItem('redirectURL') && sessionStorage.removeItem('redirectURL')
5047
sessionStorage.getItem('isSessionExpired') && sessionStorage.removeItem('isSessionExpired')

‎pages/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Home() {
3838
</Head>
3939
<Container className="bg-image">
4040
<Center>
41-
<div className="py-36 md:py-60">
41+
<div className="py-34 md:py-40">
4242
<h1 className="mb-3 text-gray-800 text-2xl md:text-5xl font-bold">GO OUT TOGETHER</h1>
4343
<h1 className="mb-3 text-gray-800 text-2xl md:text-5xl font-bold">
4444
Tạo nhóm và cùng bạn bè chọn địa điểm vui chơi

‎public/assets/images/bg32.png

437 KB
Loading

‎public/assets/images/bg33.png

194 KB
Loading

‎public/assets/images/bg34.png

124 KB
Loading

‎public/assets/images/bg36.png

51.8 KB
Loading

‎style/home.css

+10-26
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,34 @@
11
.bg-image {
22
/* The image used */
3-
background: url('/assets/images/bg25.png') no-repeat;
3+
background: url('/assets/images/bg34.png') no-repeat;
44
background-size: cover;
55
background-position: center;
66
background-repeat: no-repeat;
77
min-height: 100%;
88
}
99
.bg-image1 {
1010
/* The image used */
11-
background: url('/assets/images/bg30.png') no-repeat;
12-
/* background-attachment: fixed; */
11+
background: url('/assets/images/bg32.png') no-repeat;
12+
/* background-attachment: local; */
1313
background-size: cover;
1414
background-position: center;
1515
background-repeat: no-repeat;
16-
/* min-width: 100%; */
16+
min-width: 100%;
1717
min-height: 100%;
18+
overflow-y: auto;
1819
}
1920
.bg-image2 {
2021
/* The image used */
21-
width: 100%;
22-
background: url('/assets/images/bg31.png') no-repeat;
23-
/* background-attachment: fixed; */
22+
background: url('/assets/images/bg25.png') no-repeat;
23+
background-attachment: local;
2424
background-size: cover;
2525
background-position: center;
2626
background-repeat: no-repeat;
2727
min-height: 100%;
28+
min-width: 100%;
2829
}
29-
body::before {
30-
content: '';
31-
position: fixed;
32-
left: 0;
33-
right: 0;
34-
z-index: -1;
35-
width: 100%;
36-
height: 100%;
37-
38-
display: block;
39-
background-size: cover;
40-
background-position: center;
41-
background-repeat: no-repeat;
42-
43-
-webkit-filter: blur(2px);
44-
-moz-filter: blur(2px);
45-
-o-filter: blur(2px);
46-
-ms-filter: blur(2px);
47-
filter: blur(2px);
30+
body {
31+
overflow-x: hidden;
4832
}
4933

5034
.popup-direction {

0 commit comments

Comments
 (0)
Please sign in to comment.