Skip to content

Commit

Permalink
feat: login page and recovery password
Browse files Browse the repository at this point in the history
  • Loading branch information
daanrox committed Jan 2, 2024
1 parent 679e752 commit f235c75
Show file tree
Hide file tree
Showing 15 changed files with 6,305 additions and 251 deletions.
563 changes: 563 additions & 0 deletions auth/login/index.html

Large diffs are not rendered by default.

601 changes: 601 additions & 0 deletions auth/recover/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions auth/register/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
content="Já imaginou ganhar R$1.000 com apenas R$1 único real? O jogo do surfista vai fazer você faturar muito."
name="description"
/>
<meta property="og:image" content="/game/assets/images/app-icon-72.png" />
<meta property="og:image" content="../../game/assets/images/app-icon-72.png" />
<meta property="og:url" content="https://daanrox.com/" />
<meta content="SubwayPay 🌊" property="og:title" />
<meta
content="Já imaginou ganhar R$1.000 com apenas R$1 único real? O jogo do surfista vai fazer você faturar muito."
property="og:description"
/>
<meta name="twitter:site" content="@daanrox" />
<meta name="twitter:image" content="/game/assets/images/app-icon-72.png" />
<meta name="twitter:image" content="../../game/assets/images/app-icon-72.png" />
<meta content="SubwayPay 🌊" property="twitter:title" />
<meta
content="Já imaginou ganhar R$1.000 com apenas R$1 único real? O jogo do surfista vai fazer você faturar muito."
Expand Down
23 changes: 13 additions & 10 deletions legal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
property="og:description"
/>
<meta name="twitter:site" content="@daanrox" />
<meta name="twitter:image" content="../game/assets/images/app-icon-72.png" />
<meta
name="twitter:image"
content="../game/assets/images/app-icon-72.png"
/>
<meta content="SubwayPay 🌊" property="twitter:title" />
<meta
content="Já imaginou ganhar R$1.000 com apenas R$1 único real? O jogo do surfista vai fazer você faturar muito."
Expand Down Expand Up @@ -266,9 +269,7 @@
style="max-width: 100%"
>Login</a
>
<a
href="/subway-pay/auth/register"
class="button nav w-button"
<a href="/subway-pay/auth/register" class="button nav w-button"
>Cadastrar</a
>
</nav>
Expand Down Expand Up @@ -298,13 +299,18 @@
<div class="w-nav-overlay" data-wf-ignore="" id="w-nav-overlay-0"></div>
</div>
<div class="nav-bar">
<a href="/subway-pay/gamemaker" class="link-block rarity w-inline-block">
<a
href="/subway-pay/gamemaker"
class="link-block rarity w-inline-block"
>
<div>Jogar</div>
</a>
<a href="/subway-pay/auth/login" class="link-block last w-inline-block">
<div class="text-block-8">Login</div>
</a>
<a href="/subway-pay/auth/register" class="button w-button">Cadastrar</a>
<a href="/subway-pay/auth/register" class="button w-button"
>Cadastrar</a
>
</div>
<section id="hero" class="hero-section dark wf-section">
<div class="minting-container w-container">
Expand Down Expand Up @@ -1250,7 +1256,7 @@ <h2>26. Regras em geral</h2>
</a>
<br />
</div>
<div class="follow-test">contato@subwaypay.net</div>
<div class="follow-test">contato@daanrox.com</div>
</div>
<script src="../assets/js/jquery.js" type="text/javascript"></script>

Expand All @@ -1260,9 +1266,6 @@ <h2>26. Regras em geral</h2>
></script>

<script src="../assets/js/flow.js" type="text/javascript"></script>
<!--[if lte IE 9
]><script src="//cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script
><![endif]-->
</div>
<iframe
data-product="web_widget"
Expand Down
241 changes: 241 additions & 0 deletions match/funnel/hoverboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
/// <reference path="webgl.d.ts" />

let Hoverboard = class {
constructor(gl, pos, h, w, b) {
this.positionBuffer = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, this.positionBuffer);

this.positions = [
// Front face
-w / 2, -h / 2, b / 2,
w / 2, -h / 2, b / 2,
w / 2, h / 2, b / 2,
-w / 2, h / 2, b / 2,
//Back Face
-w / 2, -h / 2, -b / 2,
w / 2, -h / 2, -b / 2,
w / 2, h / 2, -b / 2,
-w / 2, h / 2, -b / 2,
//Top Face
-w / 2, h / 2, -b / 2,
w / 2, h / 2, -b / 2,
w / 2, h / 2, b / 2,
-w / 2, h / 2, b / 2,
//Bottom Face
-w / 2, -h / 2, -b / 2,
w / 2, -h / 2, -b / 2,
w / 2, -h / 2, b / 2,
-w / 2, -h / 2, b / 2,
//Left Face
-w / 2, -h / 2, -b / 2,
-w / 2, h / 2, -b / 2,
-w / 2, h / 2, b / 2,
-w / 2, -h / 2, b / 2,
//Right Face
w / 2, -h / 2, -b / 2,
w / 2, h / 2, -b / 2,
w / 2, h / 2, b / 2,
w / 2, -h / 2, b / 2,
];

this.rotation = 0.0;
this.pos = pos;
this.exist = true;

gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(this.positions), gl.STATIC_DRAW);

const indexBuffer = gl.createBuffer();
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, indexBuffer);
const indices = [
0, 1, 2, 0, 2, 3, // front
4, 5, 6, 4, 6, 7,
8, 9, 10, 8, 10, 11,
12, 13, 14, 12, 14, 15,
16, 17, 18, 16, 18, 19,
20, 21, 22, 20, 22, 23,
];

gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, new Uint16Array(indices), gl.STATIC_DRAW);

const textureCoordBuffer = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, textureCoordBuffer);
const textureCoordinates = [
// Front
0.0, 1.0,
1.0, 1.0,
1.0, 0.0,
0.0, 0.0,
// Back
1.0, 1.0,
1.0, 0.0,
0.0, 0.0,
0.0, 1.0,
// Top
0.0, 1.0,
1.0, 1.0,
1.0, 0.0,
0.0, 0.0,
// Bottom
0.0, 1.0,
1.0, 1.0,
1.0, 0.0,
0.0, 0.0,
// Right
1.0, 1.0,
1.0, 0.0,
0.0, 0.0,
0.0, 1.0,
// Left
0.0, 1.0,
1.0, 1.0,
1.0, 0.0,
0.0, 0.0,
];

gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(textureCoordinates), gl.STATIC_DRAW);

const normalBuffer = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, normalBuffer);
const vertexNormals = [
// Front
0.0, 0.0, 1.0,
0.0, 0.0, 1.0,
0.0, 0.0, 1.0,
0.0, 0.0, 1.0,
// Back
0.0, 0.0, -1.0,
0.0, 0.0, -1.0,
0.0, 0.0, -1.0,
0.0, 0.0, -1.0,
// Top
0.0, 1.0, 0.0,
0.0, 1.0, 0.0,
0.0, 1.0, 0.0,
0.0, 1.0, 0.0,
// Bottom
0.0, -1.0, 0.0,
0.0, -1.0, 0.0,
0.0, -1.0, 0.0,
0.0, -1.0, 0.0,
// Right
1.0, 0.0, 0.0,
1.0, 0.0, 0.0,
1.0, 0.0, 0.0,
1.0, 0.0, 0.0,
// Left
1.0, 0.0, 0.0,
1.0, 0.0, 0.0,
1.0, 0.0, 0.0,
1.0, 0.0, 0.0
];
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertexNormals), gl.STATIC_DRAW);

this.buffer = {
position: this.positionBuffer,
normal: normalBuffer,
textureCoord: textureCoordBuffer,
indices: indexBuffer,
}
}

drawCube(gl, projectionMatrix, programInfo, deltaTime) {
const modelViewMatrix = mat4.create();
mat4.translate(
modelViewMatrix,
modelViewMatrix,
this.pos
);

mat4.rotate(modelViewMatrix,
modelViewMatrix,
this.rotation,
[0, 1, 0]);

const normalMatrix = mat4.create();
mat4.invert(normalMatrix, modelViewMatrix);
mat4.transpose(normalMatrix, normalMatrix);

{
const numComponents = 3;
const type = gl.FLOAT;
const normalize = false;
const stride = 0;
const offset = 0;
gl.bindBuffer(gl.ARRAY_BUFFER, this.buffer.position);
gl.vertexAttribPointer(
programInfo.attribLocations.vertexPosition,
numComponents,
type,
normalize,
stride,
offset);
gl.enableVertexAttribArray(
programInfo.attribLocations.vertexPosition);
}

{
const numComponents = 2;
const type = gl.FLOAT;
const normalize = false;
const stride = 0;
const offset = 0;
gl.bindBuffer(gl.ARRAY_BUFFER, this.buffer.textureCoord);
gl.vertexAttribPointer(
programInfo.attribLocations.textureCoord,
numComponents,
type,
normalize,
stride,
offset);
gl.enableVertexAttribArray(
programInfo.attribLocations.textureCoord);
}

{
const numComponents = 3;
const type = gl.FLOAT;
const normalize = false;
const stride = 0;
const offset = 0;
gl.bindBuffer(gl.ARRAY_BUFFER, this.buffer.normal);
gl.vertexAttribPointer(
programInfo.attribLocations.vertexNormal,
numComponents,
type,
normalize,
stride,
offset);
gl.enableVertexAttribArray(
programInfo.attribLocations.vertexNormal);
}

gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this.buffer.indices);

gl.useProgram(programInfo.program);

gl.uniformMatrix4fv(
programInfo.uniformLocations.projectionMatrix,
false,
projectionMatrix);
gl.uniformMatrix4fv(
programInfo.uniformLocations.modelViewMatrix,
false,
modelViewMatrix);
gl.uniformMatrix4fv(
programInfo.uniformLocations.normalMatrix,
false,
normalMatrix);

gl.activeTexture(gl.TEXTURE0);
gl.bindTexture(gl.TEXTURE_2D, hoverboard_texture);
gl.uniform1i(programInfo.uniformLocations.uSampler, 0);

{
const vertexCount = 36;
const type = gl.UNSIGNED_SHORT;
const offset = 0;
gl.drawElements(gl.TRIANGLES, vertexCount, type, offset);
}

}
};
Loading

0 comments on commit f235c75

Please sign in to comment.