From 3562c155e25825111fade524ca16cbb43305ea71 Mon Sep 17 00:00:00 2001 From: Hidayatullah Wildan Ghaly Buchary <16521502@std.stei.itb.ac.id> Date: Thu, 16 Nov 2023 20:44:52 +0700 Subject: [PATCH] feat: add dummy code to user profile --- api/profile/get_code.php | 4 ++++ app/views/user-profile/index.php | 3 +++ public/css/user-profile.css | 7 ++++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 api/profile/get_code.php diff --git a/api/profile/get_code.php b/api/profile/get_code.php new file mode 100644 index 0000000..c3a27b2 --- /dev/null +++ b/api/profile/get_code.php @@ -0,0 +1,4 @@ +<?php +include_once __DIR__."/../session.php"; + +echo "$2y$10\$K8myfCnDsol3w0zQ5vVq9OXf/Q/TclfBMUDMLl42o8pGZg6qdkfOG"; \ No newline at end of file diff --git a/app/views/user-profile/index.php b/app/views/user-profile/index.php index 9a0543a..4a2f2b3 100644 --- a/app/views/user-profile/index.php +++ b/app/views/user-profile/index.php @@ -46,6 +46,9 @@ if (!isset($_SESSION['username'])) { <h1 title="Username"> <?php include "../../../api/profile/get_username.php"?> </h1> + <h1 class="code" title="Code"> + <?php include "../../../api/profile/get_code.php"?> + </h1> </div> <div class="button"> <button type="submit" class="btn" onclick="window.location.href='../edit-profile'">Edit</button> diff --git a/public/css/user-profile.css b/public/css/user-profile.css index bfe19c2..f7faaa5 100644 --- a/public/css/user-profile.css +++ b/public/css/user-profile.css @@ -102,9 +102,14 @@ body { font-size: 16px; } +.card .name .code { + font-size: 12px; + word-wrap: break-word; +} + .card .button { /* position: absolute; */ - margin: 20px 0; + margin: 60px 0 10px 0; padding: 20px 40px; width: 100%; height: 60px; -- GitLab