Aligned address block and made it responsive

main
oabrivard 2 years ago
parent c730d136d6
commit 068ddb7e1e

@ -6,16 +6,17 @@
@font-face {
font-family: sourcecodevf;
src: url(css/SourceCodeVF-Upright.otf);
src: url(SourceCodeVF-Upright.otf);
}
/* General Body Styling */
body {
font-family: 'Arial', sans-serif;
font-family: sourcecodevf, 'Arial', sans-serif;
margin: 0 auto;
max-width: 1581px;
padding: 0;
background-color: var(--secondary-bg-color);
color: var(--main-text-color);
}
/* Container */
@ -28,7 +29,6 @@ body {
/* Header */
.header {
background: var(--main-bg-color);
color: var(--main-text-color);
padding-top: 30px;
min-height: 70px;
border-bottom: var(--secondary-bg-color) 3px solid;
@ -94,9 +94,7 @@ body {
position: absolute;
top: 34%;
left: 36%;
font-family: sourcecodevf;
font-size: 54px; /* Responsive font size */
color: white;
text-align: center;
}
@ -106,16 +104,14 @@ body {
.banner-content-bottom {
position: absolute;
bottom: 10px;
right: 10px;
font-size: 1.3vw; /* Responsive font size */
color: white;
bottom: 7%;
right: 11%;
font-size: 20px; /* Responsive font size */
}
.banner-content-bottom a {
color: var(--main-text-color);
text-decoration: none;
font-family: sourcecodevf;
}
.banner-content-bottom a:hover {
@ -132,10 +128,10 @@ body {
/* Footer */
.footer {
background: var(--main-bg-color);
color: var(--main-text-color);
text-align: center;
padding: 30px 0;
overflow: hidden; /* Clear the float */
margin-top: -1px;
}
.footer-left {
@ -167,18 +163,21 @@ body {
/* Media Queries */
@media (max-width: 1581px) {
.banner-content-middle {
position: absolute;
top: 35%;
left: 35%;
font-family: sourcecodevf;
font-size: 4.0vw; /* Responsive font size */
color: white;
text-align: center;
}
.banner-content-middle .company-name {
font-size: 5.0vw; /* Responsive font size */
}
.banner-content-bottom {
position: absolute;
bottom: 8%;
right: 4%;
font-size: 1.4vw; /* Responsive font size */
}
}
@media (max-width: 768px) {
@ -212,9 +211,7 @@ body {
position: relative;
padding-top: 10px;
left: 0%;
font-family: sourcecodevf;
font-size: 4.0vw; /* Responsive font size */
color: white;
text-align: center;
}
@ -222,6 +219,17 @@ body {
font-size: 5.0vw; /* Responsive font size */
}
.banner-content-bottom {
position: relative;
left: 0%;
padding-top: 10px;
font-size: 2.5vw; /* Responsive font size */
text-align: center;
}
.banner-content-bottom .company-name {
display: none;
}
.footer-left, .footer-right {
float: none;

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 B

@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CelticInfo</title>
<link rel="stylesheet" href="css/style.css">
<script src="https://kit.fontawesome.com/69f3c65ce4.js" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
@ -35,7 +36,18 @@
<div>IT Consulting</div>
</div>
<div class="banner-content-bottom">
<a href="mailto:info@celticinfo.fr?subject=Information request">info@celticinfo.fr</a>
<div class="company-name">Celtic info</div>
<div>
5, rue du Bondon</br>56000 Vannes, France
</div>
<div>
<i class="fa fa-phone" aria-hidden="true"></i>
<a href="tel:+33607765340">+33 6 07 76 53 40</a>
</div>
<div>
<i class="fa fa-envelope" aria-hidden="true"></i>
<a href="mailto:info@celticinfo.fr?subject=Information request">info@celticinfo.fr</a>
</div>
</div>
</picture>
</div>

Loading…
Cancel
Save