Skip to content

Commit

Permalink
task
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaraHatamli committed Dec 8, 2023
0 parents commit 3273d5e
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 0 deletions.
Binary file added image/unsplash_XEmaJaM-4nE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section class="banner__container">
<div class="banner__container-text">
<h1 class="banner__container-text-heading"> Question & Answers </h1>
<p class="banner__container-text-paragraph"> Problems trying to resolve the conflict between the two
major realms of Classical physics: </p>
<button class="banner__container-text-button"> Contact us </button>

</div>

<img class="banner__container-image"
src="image/unsplash_XEmaJaM-4nE.png"
alt="unsplash"/>

</section>
</body>
</html>
40 changes: 40 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.banner__container {
position: relative;
max-width: 100%;
margin: auto;
}

img.banner__container {
width: 100%;
display: block;
}

.banner__container-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #000;
z-index: 1;
}

.banner__container-text-heading {
font-size: 2em;
}

.banner__container-text-paragraph {
font-size: 1.2em;
margin-top: 10px;
}

.banner__container-text-button {
display: inline-block;
padding: 10px 20px;
margin-top: 20px;
background-color: blue;
color: #fff;
text-decoration: none;
font-size: 1em;
border-radius: 5px;
}/*# sourceMappingURL=style.css.map */
1 change: 1 addition & 0 deletions style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.banner__container {
position: relative;
max-width: 100%;
margin: auto;
}

img.banner__container {
width: 100%;
display: block;
}

.banner__container-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #000;
z-index: 1;
}

.banner__container-text-heading {
font-size: 2em;
}

.banner__container-text-paragraph {
font-size: 1.2em;
margin-top: 10px;
}

.banner__container-text-button {
display: inline-block;
padding: 10px 20px;
margin-top: 20px;
background-color: blue;
color: #fff;
text-decoration: none;
font-size: 1em;
border-radius: 5px;
}

0 comments on commit 3273d5e

Please sign in to comment.