New changes.

main
nataly 1 year ago
parent bd2c077637
commit 3dabc36f2a

@ -1,316 +0,0 @@
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %} Osina {% endblock %}</title>
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body class="bg-gray-200">
<div class="w-full flex">
<!-- FIXED SIDE NAVBAR -->
<div class="fixed h-screen w-[300px] bg-osiblue pt-9 flex flex-col justify-between flex-grow overflow-y-auto fixedSideHeader"
id="fixedSideHeader">
<!-- Menu Items -->
<div>
<a href="{% url 'home' %}">
<div class="mb-10 w-full flex justify-center">
<img src="{% static 'images/osinaw.png' %}" class="w-[180px]">
</div>
</a>
<div class="w-full px-3 relative">
<input type="text"
class="w-full bg-transparent border border-white border-opacity-10 py-2 px-3 text-white outline-none rounded-md"
placeholder="Search...">
<div class="inset-y-0 absolute right-5 flex justify-center items-center text-white">
<i class="fa fa-search"></i>
</div>
</div>
<div
class="w-full flex flex-col items-center px-5 h-[400px] xxlg1:h-[500px] overflow-hidden overflow-y-auto mt-5">
<div class="w-full flex justify-start items-center gap-3 border-b border-slate-600 py-3">
<img src="{% static 'images/icons/projectswhite.svg' %}" class="w-[28px]">
<p class="text-white">My Projects</p>
</div>
<div class="w-full flex justify-start items-center gap-3 border-b border-slate-600 py-3">
<img src="{% static 'images/icons/ticket.svg' %}" src="" class="w-[30px]">
<p class="text-white">Tickets</p>
</div>
<div class="w-full flex justify-start items-center gap-3 border-b border-slate-600 py-3">
<img src="{% static 'images/icons/invoice.svg' %}" src="" class="w-[30px]">
<p class="text-white">Invoices</p>
</div>
<div class="w-full flex justify-start items-center gap-3 border-b border-slate-600 py-3">
<img src="{% static 'images/icons/products.svg' %}" class="w-[30px]">
<p class="text-white">Products</p>
</div>
<div class="w-full flex justify-start items-center gap-3 border-b border-slate-600 py-3">
<img src="{% static 'images/icons/about.svg' %}" class="w-[30px]">
<p class="text-white">Knowledgebase</p>
</div>
<div class="w-full flex justify-start items-center gap-3 py-3">
<img src="{% static 'images/icons/support.svg' %}" class="w-[30px]">
<p class="text-white">Contact Us</p>
</div>
</div>
</div>
<!-- Footer -->
<div
class="w-full xlg1:w-[300px] h-fit bg-secondosiblue flex flex-col items-center absolute xlg1:fixed justify-center gap-2 py-2 bottom-0 inset-x-0 mt-[100px]">
<div class="w-full flex flex-col justify-center gap-1 items-center">
<div class="flex justify-center items-center gap-1">
<img src="{% static 'images/banner-logo.png' %}" alt="Ositcom Logo" class="w-[30px] h-[25px]">
<p class="text-gray-200 font-light text-xs">Powered By OSITCOM</p>
</div>
<p class="text-gray-200 font-light text-xs">Copyrights © 2024 All Rights Reserved</p>
</div>
</div>
</div>
<!-- MOBILE FIXED SIDE BAR -->
<div class="w-full h-[100vh] absolute bg-black bg-opacity-40 z-50 mt-[80px] mobileFixedSideHeader hidden">
<div class="w-[70%] h-full bg-osiblue flex flex-col gap-3 relative">
<div class="w-full">
<!-- USER PROFILE -->
<div class="w-full flex justify-start items-center gap-2 cursor-pointer border border-white border-opacity-10 py-2 px-3 duration-300 bg-secondosiblue"
id="mobileUserProfile">
<div>
<div
class="w-[40px] h-[40px] border border-osiblue bg-osiblue text-white uppercase rounded-full flex justify-center items-center p-1 shadow-md">
{{ request.user.first_name.0 }}{{ request.user.last_name.0 }}
</div>
</div>
<div class="w-full flex justify-between items-center gap-2 text-white py-3">
<p>{{request.user.first_name}} {{request.user.last_name}}</p>
<i class="fa fa-angle-down"></i>
<i class="fa fa-angle-up" style="display: none;"></i>
</div>
</div>
<!-- USER PROFILE DROPDOWN -->
<div class="w-full h-fit bg-secondosiblue px-5 flex flex-col hidden" id="mobileUserProfileDropdown">
<a href="{% url 'signout' %}" class="w-full">
<div class="w-full py-3 flex items-center gap-2 text-white text-[16px]">
<img src="{% static 'images/icons/logout.png' %}" class="w-[22px]">
<p>Logout</p>
</div>
</a>
</div>
</div>
<!-- MOBILE MENU ITEMS -->
<div class="w-full flex flex-col items-center px-3 h-[400px] overflow-hidden overflow-y-auto">
<div class="w-full">
<div class="w-full flex justify-between items-center border-b border-slate-600 py-3">
<div class="w-full flex justify-start items-center gap-3">
<img src="" class="w-[30px]">
<p class="text-white">My Projects</p>
</div>
</div>
</div>
<div class="w-full">
<div class="w-full flex justify-between items-center border-b border-slate-600 py-3">
<div class="w-full flex justify-start items-center gap-3">
<img src="" class="w-[30px]">
<p class="text-white">Tickets</p>
</div>
</div>
</div>
<div class="w-full">
<div class="w-full flex justify-between items-center border-b border-slate-600 py-3">
<div class="w-full flex justify-start items-center gap-3">
<img src="" class="w-[30px]">
<p class="text-white">Invoices</p>
</div>
</div>
</div>
<div class="w-full">
<div class="w-full flex justify-between items-center border-b border-slate-600 py-3">
<div class="w-full flex justify-start items-center gap-3">
<img src="" class="w-[30px]">
<p class="text-white">Products</p>
</div>
</div>
</div>
<div class="w-full">
<div class="w-full flex justify-between items-center border-b border-slate-600 py-3">
<div class="w-full flex justify-start items-center gap-3">
<img src="" class="w-[30px]">
<p class="text-white">Knowledgebase</p>
</div>
</div>
</div>
<div class="w-full">
<div class="w-full flex justify-between items-center border-b border-slate-600 py-3">
<div class="w-full flex justify-start items-center gap-3">
<img src="" class="w-[30px]">
<p class="text-white">Contact Us</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- SCROLL PART -->
<div class="flex-1 ml-[300px] h-fit bg-gray-200" id="scrollPart">
<!-- TOP HEADER -->
<div
class="w-full h-[100px] bg-white shadow-md px-5 s:px-9 py-5 flex justify-between items-center topHeader">
<div class="w-fit flex justify-center items-center gap-10">
<div class="w-fit flex flex-col gap-2 cursor-pointer" id="burgerMenuButton">
<div class="burgerMenuLine w-[25px] h-[2px] bg-osiblue duration-300"></div>
<div class="burgerMenuLine w-[25px] h-[2px] bg-osiblue duration-300"></div>
<div class="burgerMenuLine w-[25px] h-[2px] bg-osiblue duration-300"></div>
</div>
</div>
<div class="relative">
<div class="w-fit flex justify-between items-center gap-2 cursor-pointer hover:bg-gray-50 rounded-md hover:p-2 duration-300"
id="userProfile">
<div
class="w-[40px] h-[40px] border border-osiblue bg-osiblue text-white uppercase rounded-full flex justify-center items-center p-1 shadow-md">
{{ request.user.first_name.0 }}{{ request.user.last_name.0 }}
</div>
<div class="flex justify-center items-center gap-2 text-gray-500">
<p>{{request.user.first_name}} {{request.user.last_name}}</p>
<i class="fa fa-angle-down" id="arrowDown"></i>
<i class="fa fa-angle-up" style="display: none;" id="arrowUp"></i>
</div>
</div>
<!-- USER PROFILE DROPDOWN -->
<div class="w-[250px] h-fit bg-osiblue bg-opacity-70 rounded-md shadow-md px-3 absolute right-0 mt-3 flex flex-col"
style="display: none;" id="userProfileDropdown">
<a href="{% url 'signout' %}" class="w-full">
<div
class="w-full py-3 flex items-center gap-2 text-white hover:text-osiblue duration-300 cursor-pointer">
<img src="{% static 'images/icons/logout.png' %}" class="w-[22px]">
<p>Logout</p>
</div>
</a>
</div>
</div>
</div>
<!-- MOBILE TOP HEADER -->
<div
class="w-full h-[80px] bg-osiblue shadow-md px-5 s:px-9 py-5 flex xlg1:hidden justify-between items-center mobileTopHeader">
<a href="{% url 'home' %}">
<img src="{% static 'images/osinaw.png' %}" class="w-[130px] h-auto">
</a>
<div class="w-fit flex flex-col gap-2 cursor-pointer" id="mobileBurgerMenuButton">
<div class="w-[25px] h-[2px] bg-white duration-300"></div>
<div class="w-[25px] h-[2px] bg-white duration-300"></div>
<div class="w-[25px] h-[2px] bg-white duration-300"></div>
</div>
<div class="w-fit cursor-pointer hidden" id="mobileCloseMenuButton">
<img src="{% static 'images/closeicon.png' %}" class="w-[25px]">
</div>
</div>
{% block modules_section %}
<!-- MODULES SECTION -->
<div class="w-full h-fit grid grid-cols-1 xxlg1:grid-cols-3 gap-5 px-5 s:px-9 py-5">
<div class="bg-white shadow-md rounded-md p-5">
<div class="w-full h-full flex flex-col justify-between items-center">
<div class="w-full flex justify-between items-center">
<p class="text-[22px] text-secondosiblue font-poppinsBold uppercase">Invoices</p>
<img src="{% static 'images/icons/tasks.png' %}" class="w-[50px]">
</div>
<div
class="w-[60px] h-[60px] bg-white border-2 rounded-full border-secondosiblue flex justify-center items-center">
<p class="text-secondosiblue text-xl font-semibold">2</p>
</div>
</div>
</div>
<div class="bg-white shadow-md rounded-md p-5">
<div class="w-full h-full flex flex-col justify-between items-center">
<div class="w-full flex justify-between items-center">
<p class="text-[22px] text-secondosiblue font-poppinsBold uppercase">Projects</p>
<img src="{% static 'images/icons/projects.png' %}" class="w-[50px]">
</div>
<div
class="w-[60px] h-[60px] bg-white border-2 rounded-full border-secondosiblue flex justify-center items-center">
<p class="text-secondosiblue text-xl font-semibold">2</p>
</div>
</div>
</div>
<div class="bg-white shadow-md rounded-md p-5">
<div class="w-full h-full flex flex-col justify-between items-center">
<div class="w-full flex justify-between items-center">
<p class="text-[22px] text-secondosiblue font-poppinsBold uppercase">Tickets</p>
<img src="{% static 'images/icons/tickets.png' %}" class="w-[50px]">
</div>
<div
class="w-[60px] h-[60px] bg-white border-2 rounded-full border-secondosiblue flex justify-center items-center">
<p class="text-secondosiblue text-xl font-semibold">2</p>
</div>
</div>
</div>
</div>
{% endblock modules_section %}
{% block content %}
replace me
{% endblock content %}
<!-- MOBILE FOOTER -->
<div class="bg-osiblue h-fit py-2 mobileFooter">
<div class="w-full flex flex-col justify-center items-center gap-1">
<div class="flex justify-center items-center gap-2">
<img src="{% static 'images/banner-logo.png' %}" alt="Ositcom Logo" class="w-[30px] h-[25px]">
<p class="text-gray-200 font-light text-xs">Powered By OSITCOM</p>
</div>
<p class="text-gray-200 font-light text-xs">Copyrights © 2024 All Rights Reserved</p>
</div>
</div>
</div>
</div>
<!---------------------- JS SCRIPTS -------------------->
<!-- SIDE BAR SCRIPT -->
<script type="text/javascript" src='{% static "js/side-bar.js" %}'></script>
</body>
</html>

@ -3,36 +3,14 @@
{% block content %} {% block content %}
<div class="w-full px-5 s:px-9 flex flex-col gap-3"> <div class="w-full px-5 s:px-9 flex flex-col gap-3">
<!-- <div
class="w-full py-4 px-3 bg-gray-200 rounded-md shadow-md mt-4 flex flex-col s:flex-row justify-between gap-3 items-center">
<div class="w-full s:w-fit flex justify-start items-center gap-5">
<div class="relative h-fit w-full s:w-fit flex items-center">
<input type="text" placeholder="Enter Business Type"
class="py-2 px-3 border border-gray-300 rounded-md outline-none w-full s:w-[300px] h-[40px] relative">
<button class="text-gray-500 text-xl outline-none border-none cursor-pointer absolute right-2 bg-white">
<i class="fa fa-search"></i>
</button>
</div>
</div>
<div class="w-full s:w-fit">
<button
class="w-full s:w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500 addBusinessTypeButton"
data-modal-url="{% url 'addbusinesstype' %}">Add
Business Type</button>
</div>
</div> -->
<!-- INVOICES --> <!-- INVOICES -->
<div class="w-full bg-white rounded-md h-fit shadow-md p-5"> <div class="w-full bg-white rounded-md h-fit shadow-md p-5">
<div class="overflow-x-auto border border-gray-300 rounded-md"> <h1 class="text-secondosiblue text-[30px] font-semibold">Invoices</h1>
<div class="overflow-x-auto border border-gray-300 rounded-md mt-4">
<table class="min-w-full divide-y"> <table class="min-w-full divide-y">
<!-- TABLE HEADER --> <!-- TABLE HEADER -->
<thead class="bg-gray-50"> <thead class="bg-gray-50">
<tr> <tr>
<th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
#
</th>
<th scope="col" <th scope="col"
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap"> class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Due Date Due Date
@ -49,19 +27,18 @@
class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap"> class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Status Status
</th> </th>
<th scope="col" class="px-6 py-3 text-sm font-medium text-gray-500 uppercase whitespace-nowrap"> <th scope="col" class="px-6 py-3 text-sm font-medium text-gray-500 uppercase border-r border-gray-300 whitespace-nowrap">
Amount Amount
</th> </th>
<th scope="col" class="px-6 py-3 text-sm font-medium text-gray-500 uppercase whitespace-nowrap">
Actions
</th>
</tr> </tr>
</thead> </thead>
<!-- TABLE BODY --> <!-- TABLE BODY -->
<tbody class="bg-white divide-y divide-gray-200"> <tbody class="bg-white divide-y divide-gray-200">
<tr> <tr>
<td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-slate-800">1</p>
</td>
<td class="px-6 py-4 text-center text-sm border-r border-gray-300"> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-slate-800">20-2-2024</p> <p class="text-slate-800">20-2-2024</p>
</td> </td>
@ -78,9 +55,17 @@
<p class="text-white">Pending</p> <p class="text-white">Pending</p>
</td> </td>
<td class="px-6 py-4 text-center text-sm"> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-slate-800">200</p> <p class="text-slate-800">200</p>
</td> </td>
<td class="px-6 py-4">
<div class="w-full flex justify-center items-center">
<button class="flex justify-center items-center gap-2 px-3 py-1 rounded-md bg-osiblue text-white border border-osiblue cursor-pointer hover:bg-white hover:text-osiblue duration-300">
Pay Now
</button>
</div>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

@ -0,0 +1,52 @@
{% extends "customer_main.html" %}
{%load static%}
{% block content %}
<div class="w-full px-5 s:px-9 flex flex-col gap-5">
<div class="w-full bg-white rounded-md h-fit shadow-md p-5">
<h1 class="text-secondosiblue text-[30px] font-semibold">Solutions</h1>
<div class="w-full mt-4 flex flex-wrap gap-5 items-center">
<div class="px-5 py-3 bg-osiblue rounded-md shadow-md">
<img src="{% static 'images/ositcom_logos/osimenuwhite.png' %}" class="w-[150px]">
</div>
<div class="px-5 py-3 bg-osiblue rounded-md shadow-md">
<img src="{% static 'images/ositcom_logos/osicardwhite.png' %}" class="w-[150px]">
</div>
</div>
</div>
<div class="w-full bg-white rounded-md h-fit shadow-md p-5">
<h1 class="text-secondosiblue text-[30px] font-semibold">Hosting Plans</h1>
<div class="w-full mt-4 flex flex-wrap gap-5 items-center">
<div class="w-[230px] border border-osiblue rounded-md flex justify-center items-center text-osiblue px-5 py-2">
<p>Shared Hosting</p>
</div>
<div class="w-[230px] border border-osiblue rounded-md flex justify-center items-center text-osiblue px-5 py-2">
<p>Cloud VPS Hosting</p>
</div>
<div class="w-[230px] border border-osiblue rounded-md flex justify-center items-center text-osiblue px-5 py-2">
<p>Dedicated CPU Servers</p>
</div>
</div>
</div>
<div class="w-full bg-white rounded-md h-fit shadow-md p-5">
<h1 class="text-secondosiblue text-[30px] font-semibold">Domain Name Registration</h1>
<div class="w-full bg-gray-100 rounded-md px-5 py-3 shadow-md mt-4">
<div class="w-fit relative">
<input type="text" class="px-3 py-2 bg-white border border-gray-200 rounded-md w-[300px]" placeholder="Search...">
<div class="absolute px-3 right-0 top-0 inset-y-0 text-secondosiblue flex justify-center items-center">
<i class="fa fa-search"></i>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

@ -7,21 +7,8 @@
{% block content %} {% block content %}
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
#paymentContent {
position: relative !important;
height: 100% !important;
overflow-y: auto !important;
max-height: 100% !important;
overflow: hidden !important;
}
</style>
<div class="w-full px-5 s:px-9 flex flex-col gap-5 mt-5"> <div class="w-full px-5 s:px-9 flex flex-col gap-5 mt-5">
<div class="w-full h-fit bg-white rounded-md shadow-md px-5 py-9 flex flex-col justify-center items-center"> <div class="w-full h-fit bg-white rounded-md shadow-md px-5 py-9 flex flex-col justify-center items-center">
@ -389,20 +376,20 @@
</div> </div>
</div> </div>
<!-- PAYMENT MODAL -->
<div class="w-full h-full fixed bg-black bg-opacity-50 flex justify-center items-center p-5 inset-0 hidden" <div class="w-full h-full fixed bg-black bg-opacity-50 flex justify-center items-center p-5 inset-0 hidden"
id="paymentModal"> id="paymentModal">
<div class="w-[550px] h-[90%] bg-white shadow-md rounded-md p-5 relative"> <div class="w-full s:w-[550px] h-[90%] max-h-[700px] bg-white shadow-md rounded-md p-5 relative flex flex-col">
<div class="absolute w-[30px] h-[30px] bg-gray-300 rounded-full shadow-md top-5 right-5 flex justify-center items-center p-1 text-secondosiblue cursor-pointer hover:scale-110 transition-transform duration-500" <div class="absolute w-[30px] h-[30px] bg-gray-300 rounded-full shadow-md top-5 right-5 flex justify-center items-center p-1 text-secondosiblue cursor-pointer hover:scale-110 transition-transform duration-500"
id="closePaymentModalButton" type="button"> id="closePaymentModalButton" type="button">
<i class="fa fa-close"></i> <i class="fa fa-close"></i>
</div> </div>
<div>
<h1 class="text-secondosiblue text-center text-2xl font-poppinsBold mt-8">Process Payment</h1> <h1 class="text-secondosiblue text-center text-2xl font-poppinsBold mt-8">Process Payment</h1>
<div id="paymentContent" class="h-[400px] mt-5 overflow-y-scroll"> <div id="paymentContent" class="flex-1 overflow-y-auto">
<!-- EMBEDDED CONTENT HERE -->
</div>
</div> </div>
</div> </div>
</div> </div>

Binary file not shown.

@ -5,17 +5,14 @@
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 5px; width: 5px;
/* Width of the entire scrollbar */
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: #7b88948b; background: #7b88948b;
/* Color of the scroll thumb */
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: #5a5a5a00; background: #5a5a5a00;
/* Color of the scrollbar track */
} }
@ -36,6 +33,21 @@
} }
/* TO SHOW AND HIDE MESSAGES SMOOTHLY */
/* Show the message with a fade-in animation */
.show-message {
opacity: 1;
transform: translateY(0);
transition: opacity 0.3s, transform 0.3s;
}
/* Hide the message with a fade-out animation */
.hide-message {
opacity: 0;
transform: translateY(-100%);
transition: opacity 0.5s, transform 0.5s;
}
/* FOR THE IFRAME TO TAKE 95% OF WIDTH ON SMALL SCREEN SIZES */ /* FOR THE IFRAME TO TAKE 95% OF WIDTH ON SMALL SCREEN SIZES */
@media screen and (max-width: 798px) { @media screen and (max-width: 798px) {
@ -209,3 +221,34 @@
.selectedEmojiCategory { .selectedEmojiCategory {
background-color: rgba(128, 128, 128, 0.265); background-color: rgba(128, 128, 128, 0.265);
} }
/* CUSTOMER DASHBOARD PAYMENT */
#paymentContent {
height: 100% !important;
position: relative !important;
max-height: 100% !important;
margin-top: 20px;
overflow-y: auto !important;
}
#paymentContent iframe {
position: relative !important;
height: 100% !important;
overflow-y: auto !important;
}
#paymentContent::-webkit-scrollbar {
width: 5px;
border-radius: 10px;
}
#paymentContent::-webkit-scrollbar-thumb {
background: rgba(208, 208, 208, 0.377);
border-radius: 10px;
}
#paymentContent::-webkit-scrollbar-track {
background: transparent;
}
/* CUSTOMER DASHBOARD PAYMENT CLOSURE */

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save