Webbserver - Love Blomberg

Show sourcecode

The following files exists in this folder. Click to view.

public_html/gamla-kurser/webbutv1/projekt/projekt-framtidens-infrastruktur/sidor/personliga/css/

frank.css

frank.css

149 lines ASCII Windows (CRLF)
@import url('https://fonts.googleapis.com/css2?family=Jersey+20&family=Reddit+Mono:wght@200..900&display=swap');

* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
}

body {
  background-color: rgb(2, 2, 35);
  background-size: cover;
  margin: 0;
}

p {
  font-family: 'Reddit Mono', monospace;
  color: white;
  font-size: larger;
  padding: 2em;
  z-index: 10;
}

#bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titel {
  font-family: 'Reddit Mono', monospace;
  margin-right: 15%;
  margin-left: 15%;
  font-size: 4vw;
  margin-top: 8rem;
  color: white;
  text-shadow: 2px 2px 5px black;
}

.header {
  position: fixed;
  z-index: 100;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  width: 100%;
  top: 0;
}

.header a:hover {
  filter: invert(1);
  background-color: black;
}

.header-title {
  display: block;
  padding: 14px 16px;
  float: left;
  text-decoration: none;
  text-align: center;
  font-family: 'Jersey 20', sans-serif;
  font-size: 2rem;
  color: white;
  height: 100%;
}

.header-tabs {
  display: flex;
  flex-direction: row;
  float: left;
}

.header-tabs a {
  float: left;
  font-family: 'Reddit Mono', monospace;
  font-size: 1rem;
  margin-left: .5em;
  margin-right: .5em;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.under--titel {
  color: white;
  text-shadow: 2px 2px 5px black;
  font-size: 1.5em;
  margin-left: 15%;
  font-family: 'Reddit Mono', monospace;
  letter-spacing: .25em;
}
.main--text {
  text-align: center;
  font-size: 1.25em;
  font-family: 'Reddit Mono', monospace;
  margin-inline: auto;
  letter-spacing: 2px;
  line-height: 1.5em;

.section1, .section2 {
  width: 80%;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.img--con {
  aspect-ratio: 1/2;
  width: 40%;
}
img {
  aspect-ratio: 1/1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
p {
  width: 50%;
}

@media (width < 600px) {
  .under--titel {
    width: 70%;
  }
  .main--text p {
    width: 100%;
    font-size: 1em;
  }
  .section1, .section2 {
    flex-wrap: wrap;
  }
  .img--con {
    display: none;
  }
  .main--text div p {
    width: 100%;
  }
  p {
    justify-self: center;
  }
}