mirror of
https://github.com/Rushilwiz/neurosecure.git
synced 2025-04-03 20:10:16 -04:00
initial commit
This commit is contained in:
commit
bb7138ff38
142
.gitignore
vendored
Normal file
142
.gitignore
vendored
Normal file
|
@ -0,0 +1,142 @@
|
|||
### Sass ###
|
||||
.sass-cache/
|
||||
*.css.map
|
||||
*.sass.map
|
||||
*.scss.map
|
||||
|
||||
### VisualStudioCode ###
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
### VisualStudioCode Patch ###
|
||||
# Ignore all local history of files
|
||||
.history
|
||||
.ionide
|
||||
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# Snowpack dependency directory (https://snowpack.dev/)
|
||||
web_modules/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
.env.production
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
out
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# Stores VSCode versions used for testing VSCode extensions
|
||||
.vscode-test
|
||||
|
||||
# yarn v2
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
202
css/fonts/Open_Sans/LICENSE.txt
Executable file
202
css/fonts/Open_Sans/LICENSE.txt
Executable file
|
@ -0,0 +1,202 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
BIN
css/fonts/Open_Sans/OpenSans-Bold.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-Bold.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-BoldItalic.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-BoldItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-ExtraBold.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-ExtraBold.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-Italic.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-Italic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-Light.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-Light.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-LightItalic.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-LightItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-Regular.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-Regular.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-SemiBold.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-SemiBold.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Open_Sans/OpenSans-SemiBoldItalic.ttf
Executable file
BIN
css/fonts/Open_Sans/OpenSans-SemiBoldItalic.ttf
Executable file
Binary file not shown.
93
css/fonts/Poppins/OFL.txt
Executable file
93
css/fonts/Poppins/OFL.txt
Executable file
|
@ -0,0 +1,93 @@
|
|||
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
BIN
css/fonts/Poppins/Poppins-Black.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-Black.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-BlackItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-BlackItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-Bold.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-Bold.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-BoldItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-BoldItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-ExtraBold.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-ExtraBold.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-ExtraBoldItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-ExtraBoldItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-ExtraLight.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-ExtraLight.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-ExtraLightItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-ExtraLightItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-Italic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-Italic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-Light.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-Light.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-LightItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-LightItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-Medium.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-Medium.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-MediumItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-MediumItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-Regular.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-Regular.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-SemiBold.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-SemiBold.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-SemiBoldItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-SemiBoldItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-Thin.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-Thin.ttf
Executable file
Binary file not shown.
BIN
css/fonts/Poppins/Poppins-ThinItalic.ttf
Executable file
BIN
css/fonts/Poppins/Poppins-ThinItalic.ttf
Executable file
Binary file not shown.
BIN
css/fonts/astro.ttf
Executable file
BIN
css/fonts/astro.ttf
Executable file
Binary file not shown.
133
css/index.css
Normal file
133
css/index.css
Normal file
|
@ -0,0 +1,133 @@
|
|||
@import url("https://fonts.googleapis.com/css2?family=Lora&family=Poppins:wght@400700&display=swap");
|
||||
@font-face {
|
||||
font-family: "Poppins";
|
||||
src: url("fonts/Poppins/Poppins-Regular.ttf");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
src: url("fonts/Open_Sans/OpenSans-Regular.ttf");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Astro";
|
||||
src: url("fonts/astro.ttf");
|
||||
}
|
||||
* {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
box-sizing: border-box;
|
||||
overflow-x: hidden;
|
||||
background-color: #131313;
|
||||
}
|
||||
|
||||
.nav-wrapper {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
min-height: 8vh;
|
||||
background-color: #131313;
|
||||
font-family: "Poppins", sans-serif;
|
||||
}
|
||||
nav .logo {
|
||||
color: #d4d4d4;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 3px;
|
||||
font-size: 1.75em;
|
||||
}
|
||||
nav .logo span {
|
||||
padding-left: 20px;
|
||||
}
|
||||
nav ul {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
width: 30%;
|
||||
}
|
||||
nav ul li {
|
||||
list-style: none;
|
||||
}
|
||||
nav ul a {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
color: #d4d4d4;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
nav ul a:hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hero {
|
||||
color: #d4d4d4;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#hero {
|
||||
position: absolute;
|
||||
left: 10%;
|
||||
top: 20%;
|
||||
background-color: transparent;
|
||||
z-index: 1;
|
||||
}
|
||||
#hero h1 {
|
||||
font-family: "Astro", sans-serif;
|
||||
text-align: left;
|
||||
font-size: 8em;
|
||||
padding: 0.5em;
|
||||
background: -webkit-linear-gradient(#eee 70%, #333 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
#hero h3 {
|
||||
font-family: "Open Sans", serif;
|
||||
text-align: left;
|
||||
font-size: 2em;
|
||||
background-color: transparent;
|
||||
}
|
||||
#hero canvas {
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#about {
|
||||
color: #d4d4d4;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
}
|
||||
#about h1 {
|
||||
font-size: 4em;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
}
|
||||
#about h4 {
|
||||
font-size: 1em;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
margin-left: 20%;
|
||||
width: 60%;
|
||||
}
|
||||
#about button {
|
||||
padding: 10px 20px;
|
||||
border: 3px solid #d4d4d4;
|
||||
text-transform: uppercase;
|
||||
margin-top: 30px;
|
||||
border-radius: 20px;
|
||||
font-family: "Astro", sans-serif;
|
||||
}
|
||||
#about button a {
|
||||
color: #d4d4d4;
|
||||
text-decoration: none;
|
||||
}
|
||||
#about div canvas {
|
||||
margin-top: -20%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=index.css.map */
|
138
css/index.sass
Normal file
138
css/index.sass
Normal file
|
@ -0,0 +1,138 @@
|
|||
// colors
|
||||
|
||||
$dark: #131313
|
||||
$light: #d4d4d4
|
||||
|
||||
// fonts
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Lora&family=Poppins:wght@400700&display=swap')
|
||||
|
||||
@font-face
|
||||
font-family: 'Poppins'
|
||||
src: url('fonts/Poppins/Poppins-Regular.ttf')
|
||||
|
||||
@font-face
|
||||
font-family: 'Open Sans'
|
||||
src: url('fonts/Open_Sans/OpenSans-Regular.ttf')
|
||||
|
||||
@font-face
|
||||
font-family: 'Astro'
|
||||
src: url('fonts/astro.ttf')
|
||||
|
||||
$hero-stack: 'Astro', sans-serif
|
||||
$title-stack: 'Poppins', sans-serif
|
||||
$subtitle-stack: 'Open Sans', sans-serif
|
||||
$body-stack: 'Poppins', sans-serif
|
||||
|
||||
*
|
||||
margin: 0px
|
||||
padding: 0px
|
||||
box-sizing: border-box
|
||||
overflow-x: hidden
|
||||
background-color: $dark
|
||||
|
||||
.nav-wrapper
|
||||
position: fixed
|
||||
width: 100%
|
||||
top: 0
|
||||
z-index: 999
|
||||
|
||||
nav
|
||||
display: flex
|
||||
justify-content: space-around
|
||||
align-items: center
|
||||
min-height: 8vh
|
||||
background-color: $dark
|
||||
font-family: $title-stack
|
||||
|
||||
.logo
|
||||
color: $light
|
||||
text-transform: uppercase
|
||||
letter-spacing: 3px
|
||||
font-size: 1.75em
|
||||
|
||||
span
|
||||
padding-left: 20px
|
||||
|
||||
ul
|
||||
display: flex
|
||||
justify-content: space-around
|
||||
width: 30%
|
||||
|
||||
li
|
||||
list-style: none
|
||||
|
||||
a
|
||||
font-family: $subtitle-stack
|
||||
color: $light
|
||||
text-decoration: none
|
||||
font-weight: bold
|
||||
font-size: 1.1em
|
||||
|
||||
&:hover
|
||||
color: white
|
||||
|
||||
.hero
|
||||
color: $light
|
||||
position: relative
|
||||
width: 100%
|
||||
height: 100%
|
||||
|
||||
#hero
|
||||
position: absolute
|
||||
left: 10%
|
||||
top: 20%
|
||||
background-color: transparent
|
||||
z-index: 1
|
||||
|
||||
h1
|
||||
font-family: $hero-stack
|
||||
text-align: left
|
||||
font-size: 8em
|
||||
padding: 0.5em
|
||||
background: -webkit-linear-gradient(#eee 70%, #333 100%)
|
||||
-webkit-background-clip: text
|
||||
-webkit-text-fill-color: transparent
|
||||
|
||||
h3
|
||||
font-family: "Open Sans", serif
|
||||
text-align: left
|
||||
font-size: 2em
|
||||
background-color: transparent
|
||||
|
||||
canvas
|
||||
z-index: 999
|
||||
|
||||
#about
|
||||
color: $light
|
||||
position: absolute
|
||||
overflow: hidden
|
||||
height: 100%
|
||||
background-color: transparent
|
||||
text-align: center
|
||||
|
||||
h1
|
||||
font-size: 4em
|
||||
font-family: $subtitle-stack
|
||||
|
||||
h4
|
||||
font-size: 1em
|
||||
font-family: $subtitle-stack
|
||||
margin-left: 20%
|
||||
width: 60%
|
||||
|
||||
button
|
||||
padding: 10px 20px
|
||||
border: 3px solid $light
|
||||
text-transform: uppercase
|
||||
margin-top: 30px
|
||||
border-radius: 20px
|
||||
font-family: $hero-stack
|
||||
|
||||
a
|
||||
color: $light
|
||||
text-decoration: none
|
||||
|
||||
div canvas
|
||||
margin-top: -20%
|
||||
z-index: -1
|
119
css/res/brain.svg
Normal file
119
css/res/brain.svg
Normal file
|
@ -0,0 +1,119 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 0 0;" xml:space="preserve">
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M306,83c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.52,0,10-4.48,10-10S311.52,83,306,83z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M206,83c-5.52,0-10,4.48-10,10s4.48,10,10,10s10-4.48,10-10S211.52,83,206,83z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M473.123,298.882C481.706,286,486,269.927,486,256c0-20.996-9.327-40.503-25.332-53.731
|
||||
C464.21,193.805,466,185.002,466,176c0-27.855-16.256-53.803-40.425-65.92c3.667-30.414-16.151-58.292-45.52-65.403
|
||||
C368.56,18.104,342.975,0,316,0c-25.11,0-47.631,14.646-60,36.016C243.63,14.646,221.109,0,196,0
|
||||
c-26.977,0-52.562,18.104-64.055,44.678c-29.545,7.156-49.177,35.173-45.52,65.402C62.257,122.196,46,148.145,46,176
|
||||
c0,9.002,1.79,17.805,5.332,26.269C35.327,215.498,26,235.004,26,256c0,14,4.33,30.052,12.877,42.881
|
||||
C30.525,310.671,26,324.644,26,339c0,18.616,7.548,36.35,20.899,49.518C40.035,430.01,73.125,472,116,472
|
||||
c0.31,0,0.615-0.005,0.914-0.014C131.129,496.508,157.515,512,186,512c29.688,0,56.216-17.82,70-43.494
|
||||
C269.784,494.18,296.312,512,326,512c28.485,0,54.871-15.492,69.086-40.014c0.3,0.009,0.604,0.014,0.914,0.014
|
||||
c37.944,0,70-33.43,70-73c0-3.369-0.296-6.834-0.899-10.482C478.452,375.35,486,357.617,486,339
|
||||
C486,324.644,481.475,310.671,473.123,298.882z M246,151.381c-5.888-3.415-12.717-5.381-20-5.381c-5.523,0-10,4.477-10,10
|
||||
s4.477,10,10,10c11.028,0,20,8.972,20,20v190.169C231.329,359.528,209.877,349,186,349c-5.523,0-10,4.477-10,10s4.477,10,10,10
|
||||
c33.084,0,60,26.916,60,60c0,34.149-27.477,63-60,63c-23.152,0-44.465-13.691-54.299-34.88c-1.813-3.905-5.919-6.208-10.2-5.726
|
||||
c-0.707,0.081-1.41,0.175-2.113,0.271c-28.46,3.892-60.51-28.335-51.834-64.387c0.891-3.703-0.399-7.589-3.326-10.025
|
||||
C52.644,367.614,46,353.671,46,339c0-9.071,2.565-17.948,7.338-25.732C65.332,323.098,80.251,329,96,329c5.523,0,10-4.477,10-10
|
||||
s-4.477-10-10-10c-27.139,0-50-24.77-50-53c0-17.125,8.729-32.879,23.352-42.142c4.505-2.854,5.978-8.741,3.347-13.38
|
||||
C68.254,192.639,66,184.403,66,176c0-26.99,22.002-53,50-53c26.636,0,50,24.767,50,53c0,5.523,4.477,10,10,10s10-4.477,10-10
|
||||
c0-39.57-32.056-73-70-73c-3.348,0-6.678,0.271-9.975,0.784C106.02,103.521,106,103.265,106,103c0-22.317,18.117-40,40-40
|
||||
c10.682,0,20.73,4.161,28.292,11.715c3.907,3.903,10.238,3.899,14.142-0.007c3.903-3.908,3.9-10.239-0.007-14.142
|
||||
c-9.123-9.113-20.662-14.925-33.167-16.851C164.079,30.624,178.744,20,196,20c26.636,0,50,24.766,50,53V151.381z M416,329
|
||||
c15.75,0,30.669-5.903,42.663-15.729C463.435,321.054,466,329.93,466,339c0,14.671-6.644,28.614-18.227,38.253
|
||||
c-2.928,2.436-4.217,6.323-3.326,10.025c1.06,4.403,1.553,8.128,1.553,11.721c0,31.04-28.075,56.126-53.387,52.666
|
||||
c-0.703-0.096-1.407-0.191-2.114-0.271c-4.287-0.485-8.388,1.821-10.199,5.726C370.466,478.309,349.151,492,326,492
|
||||
c-32.523,0-60-28.851-60-63c0-33.084,26.916-60,60-60c5.522,0,10-4.477,10-10s-4.478-10-10-10c-23.877,0-45.329,10.528-60,27.169
|
||||
V186c0-11.028,8.972-20,20-20c5.522,0,10-4.477,10-10s-4.478-10-10-10c-7.283,0-14.112,1.966-20,5.381V73
|
||||
c0-28.234,23.364-53,50-53c17.256,0,31.92,10.624,40.739,23.714c-12.504,1.926-24.042,7.738-33.166,16.851
|
||||
c-3.908,3.903-3.912,10.234-0.009,14.142c3.903,3.908,10.236,3.911,14.142,0.008C345.271,67.161,355.318,63,366,63
|
||||
c21.993,0,40,17.787,40,40c0,0.264-0.02,0.521-0.025,0.784C402.678,103.271,399.348,103,396,103c-37.944,0-70,33.43-70,73
|
||||
c0,5.523,4.478,10,10,10c5.522,0,10-4.477,10-10c0-28.233,23.364-53,50-53c27.982,0,50,25.997,50,53
|
||||
c0,8.403-2.254,16.639-6.699,24.478c-2.63,4.639-1.157,10.526,3.348,13.38C457.271,223.121,466,238.875,466,256
|
||||
c0,28.331-22.941,53-50,53c-5.522,0-10,4.477-10,10S410.478,329,416,329z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M223.453,214.053c-3.682-4.116-10.003-4.468-14.12-0.786C177.265,241.952,126,219.027,126,176c0-5.523-4.477-10-10-10
|
||||
s-10,4.477-10,10c0,34.715,25.407,63.595,58.6,69.057C160.75,257.185,149.386,266,136,266c-5.523,0-10,4.477-10,10s4.477,10,10,10
|
||||
c24.357,0,44.69-17.51,49.102-40.602c13.907-1.819,26.996-7.77,37.565-17.225C226.783,224.491,227.135,218.169,223.453,214.053z"
|
||||
/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M116,389c-5.523,0-10,4.477-10,10s4.477,10,10,10c26.636,0,50,24.767,50,53c0,5.523,4.477,10,10,10s10-4.477,10-10
|
||||
C186,422.43,153.944,389,116,389z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M196,309c-33.886,0-62.98,18.585-78.3,45.608c-2.723,4.805-1.036,10.908,3.768,13.631
|
||||
c4.805,2.723,10.907,1.037,13.631-3.768C147.034,343.415,169.68,329,196,329c5.523,0,10-4.477,10-10S201.523,309,196,309z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M376,266c-13.386,0-24.75-8.815-28.6-20.943C380.593,239.595,406,210.715,406,176c0-5.523-4.478-10-10-10
|
||||
c-5.522,0-10,4.477-10,10c0,27.57-22.43,50-50,50c-12.316,0-24.153-4.522-33.333-12.733c-4.115-3.682-10.438-3.331-14.12,0.786
|
||||
c-3.683,4.116-3.33,10.438,0.786,14.12c10.569,9.455,23.659,15.406,37.565,17.225C331.31,268.49,351.643,286,376,286
|
||||
c5.522,0,10-4.477,10-10S381.522,266,376,266z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M396,389c-37.944,0-70,33.43-70,73c0,5.523,4.478,10,10,10c5.522,0,10-4.477,10-10c0-28.233,23.364-53,50-53
|
||||
c5.522,0,10-4.477,10-10S401.522,389,396,389z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#d4d4d4" d="M394.3,354.609C379.018,327.65,349.964,309,316,309c-5.522,0-10,4.477-10,10s4.478,10,10,10
|
||||
c26.301,0,48.964,14.411,60.899,35.471c2.727,4.811,8.834,6.489,13.631,3.769C395.335,365.517,397.022,359.414,394.3,354.609z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.8 KiB |
72
index.html
Normal file
72
index.html
Normal file
|
@ -0,0 +1,72 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>NeuroSecure</title>
|
||||
<link rel="stylesheet" href="css/index.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav-wrapper">
|
||||
<nav>
|
||||
<div class="logo">
|
||||
<h4>
|
||||
<img width="24" height="24" src="css/res/brain.svg">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-plus" viewBox="0 0 16 16">
|
||||
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-lock-fill" viewBox="0 0 16 16">
|
||||
<path d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"/>
|
||||
</svg>
|
||||
<span>NeuroSecure.</span>
|
||||
</h4>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">About</a></li>
|
||||
<li><a href="#">Timeline</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<section class="hero">
|
||||
<div id="hero">
|
||||
<h1>
|
||||
Neuro<br />Secure
|
||||
</h1>
|
||||
<h3>
|
||||
A product to revolutionize the field of cybersecurity.
|
||||
</h3>
|
||||
</div>
|
||||
</section>
|
||||
<section class="about">
|
||||
<div id="about">
|
||||
<h1>
|
||||
The future of authentication.
|
||||
</h1>
|
||||
<h4>
|
||||
A cloud based authentication platform that will allow users to login with their minds. Lorem ipsum dolor sit, amet consectetur adipisicing elit. Similique ex, nihil ullam dolores nisi, porro tenetur tempore facilis delectus optio, alias nemo ipsum error laudantium quia soluta! Atque, soluta consequatur?
|
||||
</h4>
|
||||
<button><a href="">Watch a demo</a></button>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
<script type="x-shader/x-vertex" id="vertexshader">
|
||||
attribute float scale;
|
||||
void main() {
|
||||
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
|
||||
gl_PointSize = scale * ( 300.0 / - mvPosition.z );
|
||||
gl_Position = projectionMatrix * mvPosition;
|
||||
}
|
||||
</script>
|
||||
<script type="x-shader/x-fragment" id="fragmentshader">
|
||||
uniform vec3 color;
|
||||
void main() {
|
||||
if ( length( gl_PointCoord - vec2( 0.5, 0.5 ) ) > 0.475 ) discard;
|
||||
gl_FragColor = vec4( color, 1.0 );
|
||||
}
|
||||
</script>
|
||||
<script src="js/app.js" type="module"></script>
|
||||
<script src="js/particles.js" type="module"></script>
|
||||
</html>
|
20
js/app.js
Normal file
20
js/app.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
import * as THREE from "three";
|
||||
import { APP } from "./landing.js";
|
||||
|
||||
window.THREE = THREE; // Used by APP Scripts.
|
||||
|
||||
var loader = new THREE.FileLoader();
|
||||
loader.load("./js/scenes/brain.json", function (text) {
|
||||
var player = new APP.Player();
|
||||
player.load(JSON.parse(text));
|
||||
player.setSize(window.innerWidth, window.innerHeight);
|
||||
player.play();
|
||||
|
||||
const hero = document.getElementById("hero");
|
||||
|
||||
hero.after(player.dom);
|
||||
|
||||
window.addEventListener("resize", function () {
|
||||
player.setSize(window.innerWidth, window.innerHeight);
|
||||
});
|
||||
});
|
222
js/landing.js
Normal file
222
js/landing.js
Normal file
|
@ -0,0 +1,222 @@
|
|||
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
|
||||
|
||||
var APP = {
|
||||
Player: function () {
|
||||
var renderer = new THREE.WebGLRenderer({ antialias: true });
|
||||
var controls;
|
||||
renderer.setPixelRatio(window.devicePixelRatio); // TODO: Use player.setPixelRatio()
|
||||
renderer.outputEncoding = THREE.sRGBEncoding;
|
||||
|
||||
var loader = new THREE.ObjectLoader();
|
||||
var camera, scene;
|
||||
|
||||
var events = {};
|
||||
|
||||
var dom = document.createElement("div");
|
||||
dom.appendChild(renderer.domElement);
|
||||
|
||||
this.dom = dom;
|
||||
|
||||
this.width = 500;
|
||||
this.height = 500;
|
||||
|
||||
this.load = function (json) {
|
||||
var project = json.project;
|
||||
|
||||
if (project.shadows !== undefined)
|
||||
renderer.shadowMap.enabled = project.shadows;
|
||||
if (project.shadowType !== undefined)
|
||||
renderer.shadowMap.type = project.shadowType;
|
||||
if (project.toneMapping !== undefined)
|
||||
renderer.toneMapping = project.toneMapping;
|
||||
if (project.toneMappingExposure !== undefined)
|
||||
renderer.toneMappingExposure = project.toneMappingExposure;
|
||||
if (project.physicallyCorrectLights !== undefined)
|
||||
renderer.physicallyCorrectLights = project.physicallyCorrectLights;
|
||||
|
||||
this.setScene(loader.parse(json.scene));
|
||||
this.setCamera(loader.parse(json.camera));
|
||||
|
||||
events = {
|
||||
init: [],
|
||||
start: [],
|
||||
stop: [],
|
||||
keydown: [],
|
||||
keyup: [],
|
||||
pointerdown: [],
|
||||
pointerup: [],
|
||||
pointermove: [],
|
||||
update: [],
|
||||
};
|
||||
|
||||
var scriptWrapParams = "player,renderer,scene,camera";
|
||||
var scriptWrapResultObj = {};
|
||||
|
||||
for (var eventKey in events) {
|
||||
scriptWrapParams += "," + eventKey;
|
||||
scriptWrapResultObj[eventKey] = eventKey;
|
||||
}
|
||||
|
||||
var scriptWrapResult = JSON.stringify(scriptWrapResultObj).replace(
|
||||
/\"/g,
|
||||
""
|
||||
);
|
||||
|
||||
for (var uuid in json.scripts) {
|
||||
var object = scene.getObjectByProperty("uuid", uuid, true);
|
||||
|
||||
if (object === undefined) {
|
||||
console.warn("APP.Player: Script without object.", uuid);
|
||||
continue;
|
||||
}
|
||||
|
||||
var scripts = json.scripts[uuid];
|
||||
|
||||
for (var i = 0; i < scripts.length; i++) {
|
||||
var script = scripts[i];
|
||||
|
||||
var functions = new Function(
|
||||
scriptWrapParams,
|
||||
script.source + "\nreturn " + scriptWrapResult + ";"
|
||||
).bind(object)(this, renderer, scene, camera);
|
||||
|
||||
for (var name in functions) {
|
||||
if (functions[name] === undefined) continue;
|
||||
|
||||
if (events[name] === undefined) {
|
||||
console.warn("APP.Player: Event type not supported (", name, ")");
|
||||
continue;
|
||||
}
|
||||
|
||||
events[name].push(functions[name].bind(object));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dispatch(events.init, arguments);
|
||||
};
|
||||
|
||||
this.setCamera = function (value) {
|
||||
camera = value;
|
||||
camera.aspect = this.width / this.height;
|
||||
camera.updateProjectionMatrix();
|
||||
};
|
||||
|
||||
this.setScene = function (value) {
|
||||
scene = value;
|
||||
};
|
||||
|
||||
this.setPixelRatio = function (pixelRatio) {
|
||||
renderer.setPixelRatio(pixelRatio);
|
||||
};
|
||||
|
||||
this.setSize = function (width, height) {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
||||
if (camera) {
|
||||
camera.aspect = this.width / this.height;
|
||||
camera.updateProjectionMatrix();
|
||||
}
|
||||
|
||||
if (renderer) {
|
||||
controls = new OrbitControls(camera, renderer.domElement);
|
||||
controls.target = new THREE.Vector3(0, 0, 0);
|
||||
controls.enableZoom = false;
|
||||
|
||||
controls.update();
|
||||
renderer.setSize(width, height);
|
||||
}
|
||||
};
|
||||
|
||||
function dispatch(array, event) {
|
||||
for (var i = 0, l = array.length; i < l; i++) {
|
||||
array[i](event);
|
||||
}
|
||||
}
|
||||
|
||||
var time, startTime, prevTime;
|
||||
|
||||
function animate() {
|
||||
controls.update();
|
||||
|
||||
time = performance.now();
|
||||
|
||||
try {
|
||||
dispatch(events.update, {
|
||||
time: time - startTime,
|
||||
delta: time - prevTime,
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e.message || e, e.stack || "");
|
||||
}
|
||||
|
||||
|
||||
renderer.render(scene, camera);
|
||||
prevTime = time;
|
||||
}
|
||||
|
||||
this.play = function () {
|
||||
startTime = prevTime = performance.now();
|
||||
|
||||
document.addEventListener("keydown", onKeyDown);
|
||||
document.addEventListener("keyup", onKeyUp);
|
||||
document.addEventListener("pointerdown", onPointerDown);
|
||||
document.addEventListener("pointerup", onPointerUp);
|
||||
document.addEventListener("pointermove", onPointerMove);
|
||||
|
||||
dispatch(events.start, arguments);
|
||||
|
||||
renderer.setAnimationLoop(animate);
|
||||
};
|
||||
|
||||
this.stop = function () {
|
||||
document.removeEventListener("keydown", onKeyDown);
|
||||
document.removeEventListener("keyup", onKeyUp);
|
||||
document.removeEventListener("pointerdown", onPointerDown);
|
||||
document.removeEventListener("pointerup", onPointerUp);
|
||||
document.removeEventListener("pointermove", onPointerMove);
|
||||
|
||||
dispatch(events.stop, arguments);
|
||||
|
||||
renderer.setAnimationLoop(null);
|
||||
};
|
||||
|
||||
this.render = function (time) {
|
||||
dispatch(events.update, { time: time * 1000, delta: 0 /* TODO */ });
|
||||
|
||||
renderer.render(scene, camera);
|
||||
};
|
||||
|
||||
this.dispose = function () {
|
||||
renderer.dispose();
|
||||
|
||||
camera = undefined;
|
||||
scene = undefined;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
function onKeyDown(event) {
|
||||
dispatch(events.keydown, event);
|
||||
}
|
||||
|
||||
function onKeyUp(event) {
|
||||
dispatch(events.keyup, event);
|
||||
}
|
||||
|
||||
function onPointerDown(event) {
|
||||
dispatch(events.pointerdown, event);
|
||||
}
|
||||
|
||||
function onPointerUp(event) {
|
||||
dispatch(events.pointerup, event);
|
||||
}
|
||||
|
||||
function onPointerMove(event) {
|
||||
dispatch(events.pointermove, event);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export { APP };
|
147
js/particles.js
Normal file
147
js/particles.js
Normal file
|
@ -0,0 +1,147 @@
|
|||
import * as THREE from "three";
|
||||
|
||||
|
||||
const SEPARATION = 100,
|
||||
AMOUNTX = 50,
|
||||
AMOUNTY = 50;
|
||||
|
||||
let container;
|
||||
let camera, scene, renderer;
|
||||
|
||||
let particles,
|
||||
count = 0;
|
||||
|
||||
|
||||
let windowHalfX = window.innerWidth / 2;
|
||||
let windowHalfY = window.innerHeight / 4;
|
||||
|
||||
init();
|
||||
animate();
|
||||
|
||||
function init() {
|
||||
container = document.createElement("div");
|
||||
const about = document.getElementById("about");
|
||||
about.appendChild(container);
|
||||
|
||||
camera = new THREE.PerspectiveCamera(
|
||||
75,
|
||||
window.innerWidth / window.innerHeight,
|
||||
500,
|
||||
10000
|
||||
);
|
||||
camera.position.z = 1000;
|
||||
camera.position.y = 250;
|
||||
|
||||
scene = new THREE.Scene();
|
||||
scene.background = new THREE.Color(0x131313);
|
||||
|
||||
//
|
||||
|
||||
const numParticles = AMOUNTX * AMOUNTY;
|
||||
|
||||
const positions = new Float32Array(numParticles * 3);
|
||||
const scales = new Float32Array(numParticles);
|
||||
|
||||
let i = 0,
|
||||
j = 0;
|
||||
|
||||
for (let ix = 0; ix < AMOUNTX; ix++) {
|
||||
for (let iy = 0; iy < AMOUNTY; iy++) {
|
||||
positions[i] = ix * SEPARATION - (AMOUNTX * SEPARATION) / 2; // x
|
||||
positions[i + 1] = 0; // y
|
||||
positions[i + 2] = iy * SEPARATION - (AMOUNTY * SEPARATION) / 2; // z
|
||||
|
||||
scales[j] = 1;
|
||||
|
||||
i += 3;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
||||
const geometry = new THREE.BufferGeometry();
|
||||
geometry.setAttribute("position", new THREE.BufferAttribute(positions, 3));
|
||||
geometry.setAttribute("scale", new THREE.BufferAttribute(scales, 1));
|
||||
|
||||
const material = new THREE.ShaderMaterial({
|
||||
uniforms: {
|
||||
color: { value: new THREE.Color(0xffffff) },
|
||||
},
|
||||
vertexShader: document.getElementById("vertexshader").textContent,
|
||||
fragmentShader: document.getElementById("fragmentshader").textContent,
|
||||
});
|
||||
|
||||
//
|
||||
|
||||
particles = new THREE.Points(geometry, material);
|
||||
scene.add(particles);
|
||||
|
||||
//
|
||||
|
||||
renderer = new THREE.WebGLRenderer({ antialias: true });
|
||||
renderer.setPixelRatio(window.devicePixelRatio);
|
||||
renderer.setSize(window.innerWidth, window.innerHeight/2);
|
||||
container.appendChild(renderer.domElement);
|
||||
|
||||
|
||||
container.style.touchAction = "none";
|
||||
|
||||
//
|
||||
|
||||
window.addEventListener("resize", onWindowResize);
|
||||
}
|
||||
|
||||
function onWindowResize() {
|
||||
windowHalfX = window.innerWidth / 2;
|
||||
windowHalfY = window.innerHeight / 2;
|
||||
|
||||
camera.aspect = window.innerWidth / window.innerHeight;
|
||||
camera.updateProjectionMatrix();
|
||||
|
||||
renderer.setSize(window.innerWidth, window.innerHeight);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
function onPointerMove(event) {
|
||||
if (event.isPrimary === false) return;
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
function animate() {
|
||||
requestAnimationFrame(animate);
|
||||
|
||||
render();
|
||||
}
|
||||
|
||||
function render() {
|
||||
//camera.lookAt(scene.position);
|
||||
|
||||
const positions = particles.geometry.attributes.position.array;
|
||||
const scales = particles.geometry.attributes.scale.array;
|
||||
|
||||
let i = 0,
|
||||
j = 0;
|
||||
|
||||
for (let ix = 0; ix < AMOUNTX; ix++) {
|
||||
for (let iy = 0; iy < AMOUNTY; iy++) {
|
||||
positions[i + 1] =
|
||||
Math.sin((ix + count) * 0.3) * 50 + Math.sin((iy + count) * 0.5) * 50;
|
||||
|
||||
scales[j] =
|
||||
(Math.sin((ix + count) * 0.3) + 1) * 20 +
|
||||
(Math.sin((iy + count) * 0.5) + 1) * 20;
|
||||
|
||||
i += 3;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
||||
particles.geometry.attributes.position.needsUpdate = true;
|
||||
particles.geometry.attributes.scale.needsUpdate = true;
|
||||
|
||||
renderer.render(scene, camera);
|
||||
|
||||
count += 0.1;
|
||||
}
|
270
js/scenes/brain.json
Executable file
270
js/scenes/brain.json
Executable file
File diff suppressed because one or more lines are too long
49611
js/three.module.js
Executable file
49611
js/three.module.js
Executable file
File diff suppressed because one or more lines are too long
15
package.json
Normal file
15
package.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"name": "neurosecure",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"serve": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^2.4.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"three": "^0.131.3"
|
||||
}
|
||||
}
|
12
particles.html
Normal file
12
particles.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document<title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="js/particles.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
93
yarn.lock
Normal file
93
yarn.lock
Normal file
|
@ -0,0 +1,93 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
colorette@^1.2.2:
|
||||
version "1.2.2"
|
||||
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94"
|
||||
integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==
|
||||
|
||||
esbuild@^0.12.8:
|
||||
version "0.12.19"
|
||||
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.19.tgz#ab849766705a5093df5acd8ec2f6ba2159a38a6c"
|
||||
integrity sha512-5NuT1G6THW7l3fsSCDkcPepn24R0XtyPjKoqKHD8LfhqMXzCdz0mrS9HgO6hIhzVT7zt0T+JGbzCqF5AH8hS9w==
|
||||
|
||||
fsevents@~2.3.2:
|
||||
version "2.3.2"
|
||||
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
|
||||
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
|
||||
|
||||
function-bind@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
|
||||
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
|
||||
|
||||
has@^1.0.3:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
|
||||
integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
|
||||
dependencies:
|
||||
function-bind "^1.1.1"
|
||||
|
||||
is-core-module@^2.2.0:
|
||||
version "2.5.0"
|
||||
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.5.0.tgz#f754843617c70bfd29b7bd87327400cda5c18491"
|
||||
integrity sha512-TXCMSDsEHMEEZ6eCA8rwRDbLu55MRGmrctljsBX/2v1d9/GzqHOxW5c5oPSgrUt2vBFXebu9rGqckXGPWOlYpg==
|
||||
dependencies:
|
||||
has "^1.0.3"
|
||||
|
||||
nanoid@^3.1.23:
|
||||
version "3.1.23"
|
||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81"
|
||||
integrity sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==
|
||||
|
||||
path-parse@^1.0.6:
|
||||
version "1.0.7"
|
||||
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
|
||||
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
|
||||
|
||||
postcss@^8.3.6:
|
||||
version "8.3.6"
|
||||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.6.tgz#2730dd76a97969f37f53b9a6096197be311cc4ea"
|
||||
integrity sha512-wG1cc/JhRgdqB6WHEuyLTedf3KIRuD0hG6ldkFEZNCjRxiC+3i6kkWUUbiJQayP28iwG35cEmAbe98585BYV0A==
|
||||
dependencies:
|
||||
colorette "^1.2.2"
|
||||
nanoid "^3.1.23"
|
||||
source-map-js "^0.6.2"
|
||||
|
||||
resolve@^1.20.0:
|
||||
version "1.20.0"
|
||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
|
||||
integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==
|
||||
dependencies:
|
||||
is-core-module "^2.2.0"
|
||||
path-parse "^1.0.6"
|
||||
|
||||
rollup@^2.38.5:
|
||||
version "2.56.1"
|
||||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.56.1.tgz#f29dbc04a5d532dfa904f76b62395f359506211e"
|
||||
integrity sha512-KkrsNjeiTfGJMUFBi/PNfj3fnt70akqdoNXOjlzwo98uA1qrlkmgt6SGaK5OwhyDYCVnJb6jb2Xa2wbI47P4Nw==
|
||||
optionalDependencies:
|
||||
fsevents "~2.3.2"
|
||||
|
||||
source-map-js@^0.6.2:
|
||||
version "0.6.2"
|
||||
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e"
|
||||
integrity sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==
|
||||
|
||||
three@^0.131.3:
|
||||
version "0.131.3"
|
||||
resolved "https://registry.yarnpkg.com/three/-/three-0.131.3.tgz#406fd210c603ca9154937ae3582996fbfd3cb716"
|
||||
integrity sha512-VkZAv8ZTJqiE/fyEmoWLxcNHImpVcjqW7RO0GzMu3tRpwO0KUvK9pjTmJzJcAbc51BOeB2G38zh80yjHTbP8gQ==
|
||||
|
||||
vite@^2.4.4:
|
||||
version "2.4.4"
|
||||
resolved "https://registry.yarnpkg.com/vite/-/vite-2.4.4.tgz#8c402a07ad45f168f6eb5428bead38f3e4363e47"
|
||||
integrity sha512-m1wK6pFJKmaYA6AeZIUXyiAgUAAJzVXhIMYCdZUpCaFMGps0v0IlNJtbmPvkUhVEyautalajmnW5X6NboUPsnw==
|
||||
dependencies:
|
||||
esbuild "^0.12.8"
|
||||
postcss "^8.3.6"
|
||||
resolve "^1.20.0"
|
||||
rollup "^2.38.5"
|
||||
optionalDependencies:
|
||||
fsevents "~2.3.2"
|
Loading…
Reference in New Issue
Block a user