edge-city

#react#js#ssr

git clone https://git.pyrossh.dev/edge-city

edge-city is a next level meta-framework for react that runs only on edge runtimes


example/src/components/Spinner/Spinner.css
.spinner-container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 50px;
  height: 50px;  
}

.spinner-path {
  stroke: #2563eb;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}