Está en la página 1de 11

fonts.googleapis.

com
/* cyrillic-ext */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 300;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752FD8Ghe4.wof
f2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF,
U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 300;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752HT8Ghe4.wof
f2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 300;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752Fj8Ghe4.wof
f2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 300;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752Fz8Ghe4.wof
f2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-
20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 300;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752GT8G.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752FD8Ghe4.wof
f2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF,
U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752HT8Ghe4.wof
f2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752Fj8Ghe4.wof
f2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752Fz8Ghe4.wof
f2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-
20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752GT8G.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 500;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752FD8Ghe4.wof
f2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF,
U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 500;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752HT8Ghe4.wof
f2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 500;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752Fj8Ghe4.wof
f2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 500;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752Fz8Ghe4.wof
f2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-
20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 500;
font-display: swap;
src:
url(https://fonts.gstatic.com/s/oswald/v36/TK3iWkUHHAIjg752GT8G.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
styles.css

/* Global */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: "Oswald", sans-serif;
background-color: #000000;
/* Pattern from https://www.heropatterns.com/ */
background-image: url("data:image/svg+xml,%3Csvg
xmlns='http://www.w3.org/2000/svg' width='80' height='105' viewBox='0
0 80 105'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='death-star'
fill='%23540606' fill-opacity='0.4'%3E%3Cpath d='M20 10a5 5 0 0 1 10
0v50a5 5 0 0 1-10 0V10zm15 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zM20
75a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zm30-65a5 5 0 0 1 10 0v50a5 5 0
0 1-10 0V10zm0 65a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zM35 10a5 5 0 0 1
10 0v20a5 5 0 0 1-10 0V10zM5 45a5 5 0 0 1 10 0v50a5 5 0 0 1-10
0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zm60 35a5 5 0 0 1 10
0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10z'
/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
color: #1e272e;
color: #fff;
font-size: 16px;
}

a {
color: #ffffff;
text-decoration: none;
}

ul {
list-style: none;
}

.container {
width: 90%;
margin: auto;
}

/* Navigation */
.nav-main {
font-size: 17px;
display: flex;
justify-content: space-between;
align-items: center;
height: 60px;
padding: 20px 0;
}

.nav-brand {
width: 50px;
}
/* Navbar Left */
.nav-main ul {
display: flex;
}

.nav-main ul li {
padding: 10px;
}

.nav-main ul li a {
padding: 2px;
}

.nav-main ul li a:hover {
border-bottom: 2px solid #fff;
}

.nav-main ul.nav-menu {
flex: 1;
margin-left: 20px;
}

hr {
margin: 10px 0;
}

/* Responsive Button */
.menu-btn {
cursor: pointer;
position: absolute;
top: 15px;
right: 30px;
z-index: 2;
display: none;
}

/* SHOWCASE */

.btn {
cursor: pointer;
display: inline-block;
border: 0;
font-weight: bold;
padding: 10px 20px;
background: #262626;
color: #fff;
font-size: 15px;
border: 1px solid #fff;
}

.btn:hover {
opacity: 0.9;
}

.showcase {
width: 100%;
height: 550px;
background: url("./img/showcase2.jpg") no-repeat center
center/cover;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
justify-content: flex-end;
padding-bottom: 50px;
margin-bottom: 20px;
color: #fff;
}

.showcase h2,
.showcase p {
margin-bottom: 10px;
}

.showcase .btn {
margin-top: 20px;
}

/* News Cards */
.news-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 25px;
margin: 70px 0;
}

.news-cards img {
width: 100%;
height: 180px;
}

.news-cards h3 {
font-size: 20px;
margin: 10px 0;
}

.news-cards a {
padding: 10px 0;
color: #f2f2f2;
text-transform: uppercase;
display: inline-block;
font-weight: bold;
}

/* CARDS BANNER ONE */


.cards-banner-one {
width: 100%;
height: 350px;
background: url("./img/tech-red.jpg");
margin-bottom: 40px;
}

.cards-banner-one .content {
width: 40%;
padding: 90px 0 0 30px;
color: #fff;
}

.cards-banner-one p,
.cards-banner-two p {
margin: 10px 0 20px 0;
}
/* CARDS BANNER TWO*/
.cards-banner-two {
width: 100%;
height: 350px;
background: url("./img/image-five.jpg") no-repeat center
center/cover;
}

.cards-banner-two .content {
width: 50%;
padding: 100px 0 0 30px;
}

/* Follow */
.social {
margin: 50px;
}
.social p {
text-align: center;
font-size: 30px;
margin-bottom: 20px;
}
.links {
display: flex;
align-items: center;
justify-content: center;
}

.links a {
margin: 0 30px;
}

.links a i {
font-size: 3rem;
}

/* Links */
.footer-links {
background: #2f3640;
color: #616161;
font-size: 12px;
padding: 35px 0;
}

.footer-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
align-items: flex-start;
justify-content: center;
}

.footer-container ul {
margin: 0 auto;
}

.footer-links li {
line-height: 2.8;
}
.footer {
background: #2f3640;
color: #616161;
font-size: 12px;
padding: 20px 0;
text-align: center;
font-size: 1rem;
padding-bottom: 20px;
}

/* Mobil */
@media (max-width: 700px) {
.menu-btn {
display: block;
}

.menu-btn:hover {
opacity: 0.5;
}

.nav-main ul.nav-menu {
display: block;
position: absolute;
top: 0;
left: 0;
background: #2f3640;
width: 50%;
height: 100%;
border-right: #ccc 1px solid;
opacity: 0.9;
padding: 30px;
transform: translateX(-500px);
transition: transform 0.5s ease-in-out;
}

.nav-main ul.nav-menu li {
padding: 20px;
border-bottom: #ccc solid 1px;
font-size: 14px;
}
.nav-main ul.nav-menu li:last-child {
border-bottom: 0;
}

.nav-main ul.nav-menu.show {
transform: translateX(-20px);
}

.nav-main ul.nav-menu-right {
margin-right: 50px;
}

.news-cards {
grid-template-columns: repeat(2, 1fr);
}

.cards-banner-one .content,
.cards-banner-two .content {
width: 80%;
}
.footer-links .footer-container {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 500px) {


.news-cards {
grid-template-columns: 1fr;
}

.cards-banner-one .content,
.cards-banner-two .content {
width: 100%;
padding: 60px 20px;
}
.footer-links .footer-container {
grid-template-columns: 1fr;
}

.footer-links .footer-container ul {
text-align: center;
}
}
main.js
document.querySelector(".menu-btn").addEventListener("click", () => {
document.querySelector(".nav-menu").classList.toggle("show");
});

ScrollReveal().reveal('.showcase');
ScrollReveal().reveal('.news-cards', { delay: 500 });
ScrollReveal().reveal('.cards-banner-one', { delay: 500 });
ScrollReveal().reveal('.cards-banner-two', { delay: 500 });

También podría gustarte