1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 10:54:39 +00:00

feat(components): index page components

This commit is contained in:
2022-11-09 20:02:28 +07:00
parent 10498fe8b3
commit f8a03bf7f7
20 changed files with 1358 additions and 783 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
.slide-leave-active,
.slide-enter-active {
transition: 1s;
}
.slide-enter {
transform: translate(100%, 0);
}
.slide-leave-to {
transform: translate(-100%, 0);
}

View File

@@ -39,3 +39,13 @@ $fonts: (
);
@include MakeFont('Formular', $fonts, '@/assets/fonts/formular');
@font-face {
font-family: 'Computer Modern Serif';
src: url('@/assets/fonts/computer-modern/cmunrm.eot');
src: url('@/assets/fonts/computer-modern/cmunrm.eot?#iefix') format('embedded-opentype'),
url('@/assets/fonts/computer-modern/cmunrm.woff') format('woff'),
url('@/assets/fonts/computer-modern/cmunrm.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

View File

@@ -1,3 +1,8 @@
body {
* {
margin: 0;
padding: 0;
border: 0;
outline: none;
background: none;
box-sizing: border-box;
}

View File

@@ -0,0 +1,12 @@
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
background-color: var(--scroll-color);
transition: background-color 0.1s;
}

View File

@@ -1,4 +1,10 @@
:root {
--background-color-primary: #f3f3f3;
--font-color-primary: #3d3d3d;
--border-color: #e4e1e1;
--icon-color: #5e5f60;
--seconary-color: #8d8d8d;
--shadow-color: rgba(163, 167, 174, 0.2);
--border: 1px solid var(--border-color);
--shadow: 0 0 9px 0 var(--shadow-color);
}

View File

@@ -1,6 +1,8 @@
@import 'reset';
@import 'variables';
@import 'fonts';
@import 'scroll';
@import 'animations';
html, body, #__nuxt {
width: 100%;
@@ -12,3 +14,9 @@ body {
color: var(--font-color-primary);
font-family: Formular, Helvetica, Arial, sans-serif;
}
button {
width: 20px;
height: 20px;
cursor: pointer;
}