Browse Source

header: ajustement de la taille et espacement de robot-face

Lou 3 years ago
parent
commit
f541cec8e7

+ 1
- 1
src/components/btnContact/index.jsx View File

@@ -5,7 +5,7 @@ import "./index.scss";
5 5
 
6 6
 const BtnContact = ({ children }) => {
7 7
 	return (
8
-		<Link to="/#contact">
8
+		<Link to="/#contact" id="btn-contact">
9 9
 			<button className="btn cta">
10 10
 				<span>{children}</span>
11 11
 			</button>

+ 4
- 0
src/components/btnContact/index.scss View File

@@ -1,5 +1,9 @@
1 1
 @use "../../scss/abstracts/colors" as *;
2 2
 
3
+#btn-contact {
4
+	width: fit-content;
5
+}
6
+
3 7
 button.cta {
4 8
 	border: 1px solid $primary;
5 9
 	background: $primary;

+ 11
- 8
src/components/header/index.scss View File

@@ -19,13 +19,14 @@ header {
19 19
 		flex-direction: column;
20 20
 		justify-content: center;
21 21
 		align-items: center;
22
-		padding-bottom: 10rem;
22
+		justify-content: space-evenly;
23
+		// padding-bottom: 10rem;
23 24
 		width: 100%;
24 25
 		height: 100vh;
25 26
 		text-align: center;
26 27
 
27 28
 		.hero-container {
28
-			margin: 17rem auto auto auto;
29
+			// margin: 17rem auto auto auto;
29 30
 			max-width: 100vw;
30 31
 
31 32
 			.hero-logo {
@@ -43,6 +44,7 @@ header {
43 44
 			.hero-box {
44 45
 				display: flex;
45 46
 				flex-direction: column;
47
+				align-items: center;
46 48
 				color: $dark;
47 49
 				min-width: fit-content;
48 50
 
@@ -67,12 +69,13 @@ header {
67 69
 			}
68 70
 		}
69 71
 		.robot-face-container {
70
-			padding-top: 4rem;
72
+			// padding-top: 4rem;
71 73
 			margin-bottom: 0;
74
+			width: fit-content;
75
+			height: fit-content;
72 76
 
73 77
 			img {
74
-				width: 70%;
75
-				height: 70%;
78
+				height: 20rem;
76 79
 			}
77 80
 		}
78 81
 	}
@@ -83,7 +86,7 @@ header {
83 86
 		.hero {
84 87
 			display: flex;
85 88
 			flex-direction: row;
86
-			padding-top: 10rem;
89
+			// padding-top: 10rem;
87 90
 
88 91
 			.hero-container {
89 92
 				display: flex;
@@ -101,10 +104,10 @@ header {
101 104
 			.robot-face-container {
102 105
 				margin: 0;
103 106
 				padding-left: 2rem;
107
+				margin-right: 2rem;
104 108
 
105 109
 				img {
106
-					width: 70%;
107
-					height: 70%;
110
+					// width: 70%;
108 111
 				}
109 112
 			}
110 113
 		}

Loading…
Cancel
Save