Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ venv/
env/
instance/
__pycache__/

venv/
Binary file added frontend/__pycache__/app.cpython-312.pyc
Binary file not shown.
Binary file added frontend/__pycache__/route.cpython-312.pyc
Binary file not shown.
43 changes: 43 additions & 0 deletions frontend/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ input {
}

input[type="submit"] {
background-color: #D77B2691;
font-size: 16px;
padding: 12px 32px;
border: none;
color: white;
border-radius: 10px;
padding: var(--pad-tiny) 1em;
color: var(--faded-white-glass);
font-size: var(--font-big);
Expand Down Expand Up @@ -355,6 +361,43 @@ input[type="submit"] {
/* Punch Card */

#punches {
font-size: 30px;
width: 90%;
border-spacing: 0px 10px;
}

#punches tr {
margin: 16px;
background-color: #D77B2691;
border-radius: 20px;
}

#punches td {
padding: 16px;
}

.punch {
width: 48px;
}

.punch img {
width: 48px;
border-radius: 50%;
}

.punch-spacer {
width: 4px;
}

.punch-rounded-start {
border-top-left-radius: 10px; /* Set your desired border radius for the top-left corner */
border-bottom-left-radius: 10px; /* Set your desired border radius for the bottom-left corner */
}

.punch-rounded-end {
border-top-right-radius: 10px; /* Set your desired border radius for the top-right corner */
border-bottom-right-radius: 10px; /* Set your desired border radius for the bottom-right corner */
}
width: 90%;
margin: 0 auto;
padding-top: var(--pad-medium);
Expand Down
17 changes: 17 additions & 0 deletions frontend/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% set pageTitle = "HackMerced IX" %}{% include "includes/header.html" %}

<body class="no-graphic">
<body class="auth">

<div id="login-form" class="window absolute-center">
<div class="article">
Expand All @@ -17,6 +18,22 @@ <h1>User Login</h1>
</form>
</center>
</div>
<div id="login-form" class="absolute-center">

<center>

<img src="{{ url_for('static', filename='png/hmix-bg-300.png') }}" alt="HackMerced IX" style="width: 70%;">

<h1>User Login</h1>

<form action="/login" method="POST">
<input type="text" id="code" name="code" placeholder="Badge Code" />
<br><br>
<input type="submit" value="Log In" />
</form>

</center>

</div>

</body>
Expand Down
17 changes: 16 additions & 1 deletion frontend/templates/password.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@

{% set pageTitle = "HackMerced IX" %}{% include "includes/header.html" %}

<body class="no-graphic">
<body class="auth">

<div id="login-form" class="absolute-center">

<center>
<img src="{{ url_for('static', filename='png/hmix-bg-300.png') }}" alt="HackMerced IX" style="width: 70%;">

<h1>This Badge is protected.</h1>

<form action="/login" method="POST">
<input type="text" id="password" name="password" placeholder="Password" />
<br><br>
<input type="submit" value="Log In" />
</form>

</center>

<div id="login-form" class="window absolute-center">
<div class="article">
Expand Down
30 changes: 15 additions & 15 deletions frontend/templates/punches.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ <h1>Punch Card</h1>
<div class="window">
<table id="punches" class="rounded-table no-color">
<tr>
<td class="title">Breakfast</td>
<td><div class="punch true"></div></td>
<td><div class="punch false"></td>
<td><div class="punch false"></td>
<td class="spacer"></td>
<td class="punch-title punch-rounded-start">Breakfast</td>
<td class="punch"><img src="/static/png/punch-false.png" /></td>
<td class="punch"><img src="/static/png/punch-true.png" /></td>
<td class="punch"><img src="/static/png/punch-true.png" /></td>
<td class="punch-spacer punch-rounded-end"></td>
</tr>
<tr>
<td class="title">Lunch</td>
<td><div class="punch true"></div></td>
<td><div class="punch true"></div></td>
<td><div class="punch false"></td>
<td class="spacer"></td>
<td class="punch-title punch-rounded-start">Lunch</td>
<td class="punch"><img src="/static/png/punch-false.png" /></td>
<td class="punch"><img src="/static/png/punch-false.png" /></td>
<td class="punch"><img src="/static/png/punch-true.png" /></td>
<td class="punch-spacer punch-rounded-end"></td>
</tr>
<tr>
<td class="title">Dinner</td>
<td><div class="punch true"></div></td>
<td><div class="punch true"></div></td>
<td><div class="punch false"></td>
<td class="spacer"></td>
<td class="punch-title punch-rounded-start">Dinner</td>
<td class="punch"><img src="/static/png/punch-false.png" /></td>
<td class="punch"><img src="/static/png/punch-true.png" /></td>
<td class="punch"><img src="/static/png/punch-true.png" /></td>
<td class="punch-spacer punch-rounded-end"></td>
</tr>
</table>
<center>
Expand Down
164 changes: 164 additions & 0 deletions venv/Include/site/python3.12/greenlet/greenlet.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */

/* Greenlet object interface */

#ifndef Py_GREENLETOBJECT_H
#define Py_GREENLETOBJECT_H


#include <Python.h>

#ifdef __cplusplus
extern "C" {
#endif

/* This is deprecated and undocumented. It does not change. */
#define GREENLET_VERSION "1.0.0"

#ifndef GREENLET_MODULE
#define implementation_ptr_t void*
#endif

typedef struct _greenlet {
PyObject_HEAD
PyObject* weakreflist;
PyObject* dict;
implementation_ptr_t pimpl;
} PyGreenlet;

#define PyGreenlet_Check(op) (op && PyObject_TypeCheck(op, &PyGreenlet_Type))


/* C API functions */

/* Total number of symbols that are exported */
#define PyGreenlet_API_pointers 12

#define PyGreenlet_Type_NUM 0
#define PyExc_GreenletError_NUM 1
#define PyExc_GreenletExit_NUM 2

#define PyGreenlet_New_NUM 3
#define PyGreenlet_GetCurrent_NUM 4
#define PyGreenlet_Throw_NUM 5
#define PyGreenlet_Switch_NUM 6
#define PyGreenlet_SetParent_NUM 7

#define PyGreenlet_MAIN_NUM 8
#define PyGreenlet_STARTED_NUM 9
#define PyGreenlet_ACTIVE_NUM 10
#define PyGreenlet_GET_PARENT_NUM 11

#ifndef GREENLET_MODULE
/* This section is used by modules that uses the greenlet C API */
static void** _PyGreenlet_API = NULL;

# define PyGreenlet_Type \
(*(PyTypeObject*)_PyGreenlet_API[PyGreenlet_Type_NUM])

# define PyExc_GreenletError \
((PyObject*)_PyGreenlet_API[PyExc_GreenletError_NUM])

# define PyExc_GreenletExit \
((PyObject*)_PyGreenlet_API[PyExc_GreenletExit_NUM])

/*
* PyGreenlet_New(PyObject *args)
*
* greenlet.greenlet(run, parent=None)
*/
# define PyGreenlet_New \
(*(PyGreenlet * (*)(PyObject * run, PyGreenlet * parent)) \
_PyGreenlet_API[PyGreenlet_New_NUM])

/*
* PyGreenlet_GetCurrent(void)
*
* greenlet.getcurrent()
*/
# define PyGreenlet_GetCurrent \
(*(PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM])

/*
* PyGreenlet_Throw(
* PyGreenlet *greenlet,
* PyObject *typ,
* PyObject *val,
* PyObject *tb)
*
* g.throw(...)
*/
# define PyGreenlet_Throw \
(*(PyObject * (*)(PyGreenlet * self, \
PyObject * typ, \
PyObject * val, \
PyObject * tb)) \
_PyGreenlet_API[PyGreenlet_Throw_NUM])

/*
* PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args)
*
* g.switch(*args, **kwargs)
*/
# define PyGreenlet_Switch \
(*(PyObject * \
(*)(PyGreenlet * greenlet, PyObject * args, PyObject * kwargs)) \
_PyGreenlet_API[PyGreenlet_Switch_NUM])

/*
* PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent)
*
* g.parent = new_parent
*/
# define PyGreenlet_SetParent \
(*(int (*)(PyGreenlet * greenlet, PyGreenlet * nparent)) \
_PyGreenlet_API[PyGreenlet_SetParent_NUM])

/*
* PyGreenlet_GetParent(PyObject* greenlet)
*
* return greenlet.parent;
*
* This could return NULL even if there is no exception active.
* If it does not return NULL, you are responsible for decrementing the
* reference count.
*/
# define PyGreenlet_GetParent \
(*(PyGreenlet* (*)(PyGreenlet*)) \
_PyGreenlet_API[PyGreenlet_GET_PARENT_NUM])

/*
* deprecated, undocumented alias.
*/
# define PyGreenlet_GET_PARENT PyGreenlet_GetParent

# define PyGreenlet_MAIN \
(*(int (*)(PyGreenlet*)) \
_PyGreenlet_API[PyGreenlet_MAIN_NUM])

# define PyGreenlet_STARTED \
(*(int (*)(PyGreenlet*)) \
_PyGreenlet_API[PyGreenlet_STARTED_NUM])

# define PyGreenlet_ACTIVE \
(*(int (*)(PyGreenlet*)) \
_PyGreenlet_API[PyGreenlet_ACTIVE_NUM])




/* Macro that imports greenlet and initializes C API */
/* NOTE: This has actually moved to ``greenlet._greenlet._C_API``, but we
keep the older definition to be sure older code that might have a copy of
the header still works. */
# define PyGreenlet_Import() \
{ \
_PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \
}

#endif /* GREENLET_MODULE */

#ifdef __cplusplus
}
#endif
#endif /* !Py_GREENLETOBJECT_H */
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip
22 changes: 22 additions & 0 deletions venv/Lib/site-packages/Flask_Login-0.6.3.dist-info/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2011 Matthew Frazier

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Loading