From d17882c90ec662b6f6a570662bc0ffeefe2c48fb Mon Sep 17 00:00:00 2001 From: Andrew4Coding Date: Fri, 11 Oct 2024 23:17:50 +0700 Subject: [PATCH] feat: index.js --- eventyog/settings.py | 3 ++ modules/authentication/templates/login.html | 5 ++- .../authentication/templates/register.html | 5 ++- static/js/index.js | 0 static/js/main.js | 1 + staticfiles/assets/eventyog-white.png | Bin 0 -> 2554 bytes staticfiles/js/main.js | 1 + staticfiles/styles/main.css | 41 ++++++++++++++++++ templates/base.html | 14 ++++-- templates/ds/navbar.html | 6 +-- 10 files changed, 65 insertions(+), 11 deletions(-) delete mode 100644 static/js/index.js create mode 100644 static/js/main.js create mode 100644 staticfiles/assets/eventyog-white.png create mode 100644 staticfiles/js/main.js diff --git a/eventyog/settings.py b/eventyog/settings.py index 0f9b688..c56f91e 100644 --- a/eventyog/settings.py +++ b/eventyog/settings.py @@ -86,6 +86,9 @@ load_dotenv() # Load environment variables from a .env file + +DATABASES = {} + if (os.getenv('PROD') != 'True'): DATABASES = { 'default': { diff --git a/modules/authentication/templates/login.html b/modules/authentication/templates/login.html index b6ff35a..1a589d0 100644 --- a/modules/authentication/templates/login.html +++ b/modules/authentication/templates/login.html @@ -30,8 +30,9 @@ diff --git a/modules/authentication/templates/register.html b/modules/authentication/templates/register.html index fcc4b1d..632240c 100644 --- a/modules/authentication/templates/register.html +++ b/modules/authentication/templates/register.html @@ -37,8 +37,9 @@ diff --git a/static/js/index.js b/static/js/index.js deleted file mode 100644 index e69de29..0000000 diff --git a/static/js/main.js b/static/js/main.js new file mode 100644 index 0000000..8c618f9 --- /dev/null +++ b/static/js/main.js @@ -0,0 +1 @@ +console.log("HELLO WORLDSSS"); \ No newline at end of file diff --git a/staticfiles/assets/eventyog-white.png b/staticfiles/assets/eventyog-white.png new file mode 100644 index 0000000000000000000000000000000000000000..4fd279657d646ade72e043529ca73c611fca7b32 GIT binary patch literal 2554 zcmVUMo^;%#RoV!n2>{-Rq-IGBj{BV5IjjXh!;H=L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F`4b6I~pK2wU<=7S7T)J#I6~5FnXT(Av-%->K7sNQK08yXMSe~D*jYK(2#f^BNUpJX3XB7TViprpT+f=7__u9>Dzh<%BzC3dLe{J?E{$I9=W3Ib?vGP&w=D|vuNhw^SElN&fY^ z%*Rx>MSR}oBKKWNz@El9QF@d}hbaNSM}A%>TZLquJ^8-s{Z!=VI-l${dX}5$S-AM`y#1)^m>m{!EVXfI zTi!oav2iIJSB{JG?w|xb2RWegHd1g278g#`*)e5*9!nQm6miZYdtO|db7ULUgoTtR z@n+S7HspDqEah@zFrs&jP5O?9O>eifOMkRzT$}OysODxg&S8O5z*!qo1RNP z2E*U3>j=q1?YO8wwT6ADLgrb8#MWVO5vAGbly-B-<{Bgpidy%X#L^X~u_exB@9 z$I$`Yx);w;*AUnMw_jKpkeeS_OU}sX1OxO-(75~nfNmjeMYhS&(bcVDe@E6Qo>`7BpVxU+XZ<#oBqlpQYf&z;>d0QW9e(suN7|}@ z1Ef)>WXSx;Svtje9SORb!c8a-wzX(`;VDX!pWsIxA+ze!qh!y@k)26L(@h~6BsA=B z)8ME>Jd?|>t3#h45xp10r*yjyivy}m?MA@8e&kO`y+F_Mt2p5G*}*h-^1Sy+B+F3` zv!HTcYr_x52}$*xc#f8RALL()Cfdo`l5Ghh?xf&M_`~CIcz_kx$=}ek95Y4yA4fXgsMK`c QQ2+n{07*qoM6N<$f>V&Vq5uE@ literal 0 HcmV?d00001 diff --git a/staticfiles/js/main.js b/staticfiles/js/main.js new file mode 100644 index 0000000..8c618f9 --- /dev/null +++ b/staticfiles/js/main.js @@ -0,0 +1 @@ +console.log("HELLO WORLDSSS"); \ No newline at end of file diff --git a/staticfiles/styles/main.css b/staticfiles/styles/main.css index 3f81942..1bdd882 100644 --- a/staticfiles/styles/main.css +++ b/staticfiles/styles/main.css @@ -1,3 +1,44 @@ * { font-family: "Poppins", sans-serif; +} + +div > input { + background-color: #F2F2F2; + padding-top: 0.75rem; /* py-3 */ + padding-bottom: 0.75rem; + padding-left: 2.5rem; /* px-10 */ + padding-right: 2.5rem; + color: black; + font-weight: 600; /* font-semibold */ + border-radius: 1.5rem; /* rounded-3xl */ + display: flex; + justify-content: center; + width: 100%; +} + +.form-style form input, form textarea, form select { + background-color: #F2F2F2; + padding-top: 0.75rem; /* py-3 */ + padding-bottom: 0.75rem; + padding-left: 2.5rem; /* px-10 */ + padding-right: 2.5rem; + color: black; + font-weight: 600; /* font-semibold */ + border-radius: 1.5rem; /* rounded-3xl */ + display: flex; + justify-content: center; +} +.form-style form input:focus, form textarea:focus, form select:focus { + outline: none; + border-color: #674ea7; + box-shadow: 0 0 0 3px #674ea7; +} +@keyframes shine { + 0% { background-position: -200% 0; } + 100% { background-position: 200% 0; } +} +.animate-shine { + background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3)); + background-size: 200% 100%; + animation: shine 3s infinite; } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 2441673..eaf89d0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,17 +5,20 @@ + - - - - + + + {% block meta %}{% endblock meta %} + Eventyog + +
@@ -29,6 +32,9 @@ {% if show_footer %} {% include "ds/footer.html" %} {% endif %} +
+ + {% block scripts %}{% endblock scripts %} \ No newline at end of file diff --git a/templates/ds/navbar.html b/templates/ds/navbar.html index db08f87..97735a4 100644 --- a/templates/ds/navbar.html +++ b/templates/ds/navbar.html @@ -8,9 +8,9 @@
-