index.svelte 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <script lang="typescript">
  2. import ExampleComponent from "../components/ExampleComponent.svelte";
  3. </script>
  4. <style>
  5. .centerer {
  6. flex: 1 1 0%;
  7. display: flex;
  8. flex-direction: column;
  9. align-items: center;
  10. justify-content: center;
  11. }
  12. .button {
  13. margin-top: 2.5rem;
  14. padding: 0.75rem;
  15. border-radius: 0.5rem;
  16. box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  17. transition-property: background-color, color, box-shadow;
  18. transition-duration: 200ms;
  19. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  20. text-decoration: none;
  21. }
  22. .button:focus {
  23. outline: 0;
  24. box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
  25. }
  26. .button-pink {
  27. color: #97266D;
  28. background-color: #FED7E2;
  29. }
  30. .button-pink:hover, .button-pink:focus {
  31. background-color: #FBB6CE;
  32. }
  33. </style>
  34. <div class="centerer">
  35. <ExampleComponent
  36. title="🌐 Sapper with TypeScript and GraphQL project base"
  37. paragraph="This is an example route and component to make sure everything's working." />
  38. <a class="button button-pink" href="/graphql">Check out the GraphQL playground!</a>
  39. </div>