Skip to content

Commit

Permalink
add css
Browse files Browse the repository at this point in the history
  • Loading branch information
PFC-developer committed Nov 21, 2024
1 parent fc4608a commit a95ed20
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title</title>
<link rel="stylesheet" href="styles.css"/>
<link rel="stylesheet" href="./styles.css"/>
</head>
<body>
<div class="hero">
<video autoplay loop muted playsinline class="back-video">
<source src="flames.mp4" type="video/mp4">
<source src="./flames.mp4" type="video/mp4">
</video>
<nav><img src="logo.png" class="logo" alt="logo"/>
<nav><img src="./logo.png" class="logo" alt="logo"/>
<ul>
<li><a href="https://pfc.zone">Home</a></li>
</ul>
Expand Down
93 changes: 93 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Palatino', sans-serif;
}

.hero {
width: 100%;
height: 100vh;
background-image: linear-gradient(rgba(12, 3, 51, 0.3), rgba(12, 3, 51, 0.3));
position: relative;
padding: 0 5%;
display: flex;
align-items: center;
justify-content: center;
}

nav {
width: 100%;
position: absolute;
top: 0;
left: 0;
padding: 20px 8%;
display: flex;
align-items: center;
justify-content: space-between;
}

nav .logo {
width: 80px;
}

nav ul li {
list-style: none;
display: inline-block;
margin-left: 40px;
}

nav ul li a {
text-decoration: none;
text-transform: uppercase;
color: white;
font-size: 17px;
}

.content {
text-align: center;
}

.content h1 {
font-size: 160px;
color: white;
font-weight: 600;
transition: 0.5s;
}

.content h1:hover {
-webkit-text-stroke: 2px white;
color: transparent;
}

.content a {
text-decoration: none;
color: white;;
display: inline-block;
font-size: 24px;
border: 2px solid white;
padding: 14px 70px;
border-radius: 50px;
margin-top: 20px;
}

.back-video {
position: absolute;
right: 0;
bottom: 0;
z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
.back-video {
width: 100%;
height: auto;
}
}

@media (max-aspect-ratio: 16/9) {
.back-video {
width: auto;
height: 100%;
}
}

0 comments on commit a95ed20

Please sign in to comment.