選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

home.html 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {% extends "main.html" %}
  2. {% block tabs %}
  3. {{ super() }}
  4. <style>
  5. .md-main {
  6. display: none;
  7. }
  8. .md-nav {
  9. display: none;
  10. }
  11. .md-header {
  12. box-shadow: none !important;
  13. }
  14. :root {
  15. --md-secondary-fg-color: #8ef;
  16. }
  17. .md-button {
  18. --md-primary-bg-color: #4051b5;
  19. --md-primary-fg-color: var(--md-secondary-fg-color);
  20. --md-accent-fg-color: var(--md-secondary-fg-color);
  21. --md-accent-bg-color: var(--md-primary-fg-color--light);
  22. margin-top: 8px;
  23. margin-bottom: 8px;
  24. }
  25. #splash {
  26. display: flex;
  27. align-items: center;
  28. flex-grow: 1;
  29. background-color: var(--md-primary-fg-color);
  30. color: var(--md-primary-bg-color);
  31. padding-left: 16px;
  32. padding-right: 16px;
  33. }
  34. .splash-container {
  35. display: flex;
  36. align-items: stretch;
  37. flex-direction: column;
  38. }
  39. .splash-text {
  40. font-size: 16pt;
  41. padding: 0 14px 0 14px; /* align to header */
  42. text-align: center;
  43. }
  44. .splash-image {
  45. text-align: center;
  46. margin-top: 32px;
  47. margin-bottom: 32px;
  48. }
  49. .splash-text em {
  50. font-style: normal;
  51. color: var(--md-secondary-fg-color);
  52. }
  53. .splash-text h2 {
  54. margin: 0.5em 0 0.5em 0;
  55. }
  56. .splash-image > video {
  57. width: 80%;
  58. border-radius: 32px;
  59. border: 4px solid var(--md-primary-fg-color--light);
  60. }
  61. @media screen and (min-width: 1220px) {
  62. .splash-container {
  63. align-items: center;
  64. flex-direction: row;
  65. }
  66. .splash-text {
  67. flex: 14;
  68. text-align: left;
  69. }
  70. .splash-image {
  71. flex: 9;
  72. text-align: right;
  73. margin-top: 0;
  74. margin-bottom: 0;
  75. }
  76. .splash-image > video {
  77. width: 100%;
  78. }
  79. }
  80. @keyframes appear {
  81. from { transform: translateY(10%); opacity: 0.01; }
  82. to { transform: translateX(0); opacity: 1; }
  83. }
  84. .appear {
  85. animation: appear 0.5s ease-out 0.2s;
  86. animation-fill-mode: both;
  87. }
  88. </style>
  89. <section id="splash" data-md-color-primary="indigo">
  90. <div class="splash-container md-grid">
  91. <div class="splash-text md-typeset appear">
  92. <h2><em>Create Augmented Reality experiences that run in web browsers.</em></h2>
  93. <p>Use the web technologies that you're already familiar with. No need to download apps. Free and open-source WebAR engine.</p>
  94. <a href="{{ './getting-started' | url }}" class="md-button md-button--primary">Get started</a>
  95. <a href="{{ './demo/instructions' | url }}" class="md-button">Try a demo</a>
  96. </div>
  97. <div class="splash-image">
  98. <video poster="{{ './img/demo-cool3.webp' | url }}" muted loop playsinline autoplay>
  99. <source src="{{ './img/demo-cool3.webm' | url }}" type="video/webm" />
  100. <source src="{{ './img/demo-cool3.mp4' | url }}" type="video/mp4" />
  101. </video>
  102. </div>
  103. </div>
  104. </section>
  105. {% endblock %}
  106. {% block announce %}{% endblock %}
  107. {% block site_nav %}{% endblock %}
  108. {% block content %}{% endblock %}
  109. {% block footer %}{% endblock %}