瀏覽代碼

fix of an overlapping issue

Lou 3 年之前
父節點
當前提交
8d7f412969

+ 1
- 2
src/components/footer/index.scss 查看文件

@@ -2,8 +2,7 @@
2 2
 @use "../../scss/abstracts/fonts" as *;
3 3
 
4 4
 #footer {
5
-	position:relative;
6
-	bottom: 0;
5
+	position: relative;
7 6
 	background: $light;
8 7
 	padding: 1.5rem 0;
9 8
 	margin: 2rem auto 0 auto;

+ 4
- 5
src/components/header/index.scss 查看文件

@@ -10,7 +10,7 @@ header {
10 10
 	overflow-y: auto;
11 11
 	background-position: center;
12 12
 	background-size: cover;
13
-	padding-top: 5rem;
13
+	// padding-top: -4.5rem;
14 14
 	color: $light;
15 15
 
16 16
 	.hero {
@@ -26,7 +26,7 @@ header {
26 26
 			font-size: 2.5rem;
27 27
 			font-weight: 900;
28 28
 			font-family: "Cutive Mono";
29
-			color: $dark;	
29
+			color: $dark;
30 30
 		}
31 31
 
32 32
 		.hero-box {
@@ -61,12 +61,11 @@ header {
61 61
 		height: 100vh;
62 62
 
63 63
 		.hero {
64
-
65
-			h1{
64
+			h1 {
66 65
 				font-size: 2rem;
67 66
 			}
68 67
 
69
-			.hero-box > .hero-text{
68
+			.hero-box > .hero-text {
70 69
 				font-size: 1.1rem;
71 70
 			}
72 71
 		}

+ 2
- 2
src/pages/nous-contacter.jsx 查看文件

@@ -4,13 +4,13 @@ import Layout from "../components/layout";
4 4
 import Seo from "../components/seo";
5 5
 import ContactForm from "../components/contactForm";
6 6
 
7
-import "../scss/nous-contacter.scss";
7
+// import "../scss/nous-contacter.scss";
8 8
 
9 9
 const NousContacter = () => {
10 10
 	return (
11 11
 		<Layout>
12 12
 			<Seo title="Nous contacter" />
13
-			<div className="page-contact">
13
+			<div className="page-content">
14 14
 				<h2 className="page-title">Contactez nous</h2>
15 15
 				<ContactForm />
16 16
 			</div>

+ 5
- 1
src/scss/main.scss 查看文件

@@ -34,6 +34,8 @@ button:focus {
34 34
 main {
35 35
 	display: flex;
36 36
 	justify-content: center;
37
+	position: relative;
38
+	// padding-top: 4.5rem;
37 39
 }
38 40
 
39 41
 .btn {
@@ -51,8 +53,10 @@ main {
51 53
 }
52 54
 
53 55
 .page-content {
56
+	margin-bottom: 3rem;
57
+
54 58
 	.page-title {
55
-		padding-top: 5rem;
59
+		padding-top: 4.5rem;
56 60
 		text-align: center;
57 61
 	}
58 62
 

+ 0
- 6
src/scss/nous-contacter.scss 查看文件

@@ -1,6 +0,0 @@
1
-.page-contact {
2
-	padding-top: 5rem;
3
-	display: flex;
4
-	flex-direction: column;
5
-	align-items: center;
6
-}

Loading…
取消
儲存