<div class="border">
  <div class="container center background">
    <img src="http://rust-lang.org/logos/rust-logo-256x256.png" alt="react logo" width="200px" />
    <div class="text center">
      <h1>Rust is oxide</h1>
      <p>Learn Rust right now!</p>
    </div>
    <a href="https://www.rust-lang.org/" target="_blank">Get Started</a>
  </div>
</div>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: #4a4a48;
}

.background {
  background: linear-gradient(to bottom right, #000, #0f172a);
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body {
  min-height: 100dvh;
  color: var(--text-color);
  font-family: monospace;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #000, #0f172a);
}

/* for animated gradient border */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.border {
  padding: 0.3rem;
  border-radius: 1rem;
  background: linear-gradient(var(--angle), #4a4a48, #874826);
  -webkit-animation: rotate 5s linear infinite;
  animation: rotate 5s linear infinite;
}

@-webkit-keyframes rotate {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}

@keyframes rotate {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}

/* for container */
.container {
  gap: 2rem;
  padding: 2rem 3rem;
  border-radius: 1rem;
}

/* for text */
.text {
  gap: 0.5rem;
  text-align: center;
}

.text h1 {
  font-size: 2rem;
}

.text p {
  font-size: 1rem;
}

a {
  color: var(--text-color);
  text-decoration: none;
  padding: 1rem 2rem;
  border: solid 2px #584237;
  border-radius: 2rem;
  font-size: 1rem;
  transition: 200ms;
}

a:hover {
  cursor: pointer;
  box-shadow: 0 0 20px #584237;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.