Spaces:
Running
Running
I need a landing section called main section, where I can have a background picture with a white font to put some motto of inovation inside. It should be placed under the header.
Browse files- index.html +60 -13
index.html
CHANGED
|
@@ -9,12 +9,37 @@
|
|
| 9 |
body {
|
| 10 |
background-color: #00008B;
|
| 11 |
color: white;
|
| 12 |
-
font-family:
|
| 13 |
margin: 0;
|
| 14 |
padding: 0;
|
| 15 |
line-height: 1.6;
|
| 16 |
}
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
background-color: #1E1E1E;
|
| 19 |
padding: 20px;
|
| 20 |
position: sticky;
|
|
@@ -30,12 +55,15 @@
|
|
| 30 |
color: white;
|
| 31 |
text-decoration: none;
|
| 32 |
font-size: 18px;
|
| 33 |
-
transition:
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
nav a:hover {
|
| 36 |
color: #4CAF50;
|
|
|
|
| 37 |
}
|
| 38 |
-
|
| 39 |
max-width: 1200px;
|
| 40 |
margin: 0 auto;
|
| 41 |
padding: 40px 20px;
|
|
@@ -44,12 +72,18 @@
|
|
| 44 |
padding: 60px 0;
|
| 45 |
}
|
| 46 |
.card {
|
| 47 |
-
background-color:
|
| 48 |
-
padding:
|
| 49 |
-
border-radius:
|
| 50 |
-
margin-bottom:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
}
|
| 52 |
-
|
| 53 |
color: #4CAF50;
|
| 54 |
}
|
| 55 |
footer {
|
|
@@ -69,16 +103,22 @@
|
|
| 69 |
button {
|
| 70 |
background-color: #4CAF50;
|
| 71 |
color: white;
|
| 72 |
-
padding:
|
| 73 |
border: none;
|
| 74 |
-
border-radius:
|
| 75 |
cursor: pointer;
|
| 76 |
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
}
|
| 78 |
button:hover {
|
| 79 |
background-color: #45a049;
|
|
|
|
|
|
|
| 80 |
}
|
| 81 |
-
|
| 82 |
</head>
|
| 83 |
<body>
|
| 84 |
<header>
|
|
@@ -89,8 +129,15 @@
|
|
| 89 |
</nav>
|
| 90 |
</header>
|
| 91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
<div class="container">
|
| 93 |
-
|
| 94 |
<h1>Welcome to MP Digital Consulting</h1>
|
| 95 |
<p>We are a digital consulting firm dedicated to helping businesses thrive in the digital landscape. Our mission is to provide innovative solutions that drive growth and efficiency.</p>
|
| 96 |
</section>
|
|
|
|
| 9 |
body {
|
| 10 |
background-color: #00008B;
|
| 11 |
color: white;
|
| 12 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 13 |
margin: 0;
|
| 14 |
padding: 0;
|
| 15 |
line-height: 1.6;
|
| 16 |
}
|
| 17 |
+
.hero {
|
| 18 |
+
background: linear-gradient(rgba(0, 0, 139, 0.7), rgba(0, 0, 139, 0.7)),
|
| 19 |
+
url('http://static.photos/technology/1200x630/10');
|
| 20 |
+
background-size: cover;
|
| 21 |
+
background-position: center;
|
| 22 |
+
height: 70vh;
|
| 23 |
+
display: flex;
|
| 24 |
+
align-items: center;
|
| 25 |
+
justify-content: center;
|
| 26 |
+
text-align: center;
|
| 27 |
+
color: white;
|
| 28 |
+
padding: 0 20px;
|
| 29 |
+
}
|
| 30 |
+
.hero-content h1 {
|
| 31 |
+
font-size: 3.5rem;
|
| 32 |
+
margin-bottom: 20px;
|
| 33 |
+
color: white;
|
| 34 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
|
| 35 |
+
}
|
| 36 |
+
.hero-content p {
|
| 37 |
+
font-size: 1.5rem;
|
| 38 |
+
max-width: 800px;
|
| 39 |
+
margin: 0 auto;
|
| 40 |
+
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
|
| 41 |
+
}
|
| 42 |
+
header {
|
| 43 |
background-color: #1E1E1E;
|
| 44 |
padding: 20px;
|
| 45 |
position: sticky;
|
|
|
|
| 55 |
color: white;
|
| 56 |
text-decoration: none;
|
| 57 |
font-size: 18px;
|
| 58 |
+
transition: all 0.3s;
|
| 59 |
+
padding: 10px 15px;
|
| 60 |
+
border-radius: 5px;
|
| 61 |
}
|
| 62 |
nav a:hover {
|
| 63 |
color: #4CAF50;
|
| 64 |
+
background-color: rgba(76, 175, 80, 0.1);
|
| 65 |
}
|
| 66 |
+
.container {
|
| 67 |
max-width: 1200px;
|
| 68 |
margin: 0 auto;
|
| 69 |
padding: 40px 20px;
|
|
|
|
| 72 |
padding: 60px 0;
|
| 73 |
}
|
| 74 |
.card {
|
| 75 |
+
background-color: rgba(30, 30, 30, 0.8);
|
| 76 |
+
padding: 40px;
|
| 77 |
+
border-radius: 10px;
|
| 78 |
+
margin-bottom: 40px;
|
| 79 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
|
| 80 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 81 |
+
}
|
| 82 |
+
.card:hover {
|
| 83 |
+
transform: translateY(-5px);
|
| 84 |
+
box-shadow: 0 15px 30px rgba(0,0,0,0.3);
|
| 85 |
}
|
| 86 |
+
h1, h2 {
|
| 87 |
color: #4CAF50;
|
| 88 |
}
|
| 89 |
footer {
|
|
|
|
| 103 |
button {
|
| 104 |
background-color: #4CAF50;
|
| 105 |
color: white;
|
| 106 |
+
padding: 15px 30px;
|
| 107 |
border: none;
|
| 108 |
+
border-radius: 5px;
|
| 109 |
cursor: pointer;
|
| 110 |
font-size: 16px;
|
| 111 |
+
font-weight: bold;
|
| 112 |
+
transition: all 0.3s;
|
| 113 |
+
text-transform: uppercase;
|
| 114 |
+
letter-spacing: 1px;
|
| 115 |
}
|
| 116 |
button:hover {
|
| 117 |
background-color: #45a049;
|
| 118 |
+
transform: translateY(-2px);
|
| 119 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
| 120 |
}
|
| 121 |
+
</style>
|
| 122 |
</head>
|
| 123 |
<body>
|
| 124 |
<header>
|
|
|
|
| 129 |
</nav>
|
| 130 |
</header>
|
| 131 |
|
| 132 |
+
<section class="hero">
|
| 133 |
+
<div class="hero-content">
|
| 134 |
+
<h1>Innovating Digital Futures</h1>
|
| 135 |
+
<p>Transforming businesses through cutting-edge digital solutions</p>
|
| 136 |
+
</div>
|
| 137 |
+
</section>
|
| 138 |
+
|
| 139 |
<div class="container">
|
| 140 |
+
<section id="about" class="card">
|
| 141 |
<h1>Welcome to MP Digital Consulting</h1>
|
| 142 |
<p>We are a digital consulting firm dedicated to helping businesses thrive in the digital landscape. Our mission is to provide innovative solutions that drive growth and efficiency.</p>
|
| 143 |
</section>
|