Skip to content

Commit

Permalink
Optimized the Loading Page
Browse files Browse the repository at this point in the history
  • Loading branch information
RajeshTechForge committed Jun 18, 2024
1 parent 78d9012 commit 2385b06
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const createLoadingWindow = () => {
x: windowX,
y: 20,
autoHideMenuBar: true,
// frame: false,
// resizable: false,
frame: false,
resizable: false,
show: false,
});
loadingWindow.loadFile("loading.html");
Expand Down
1 change: 0 additions & 1 deletion frontend/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const HomePage: React.FC<HomePageProps> = ({

addMessageToChatHistory(
<ShowHumanMessage
key={`human-message-${chatHistory.length}`}
response={text}
/>
);
Expand Down
6 changes: 2 additions & 4 deletions frontend/pages/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const SettingsPage: React.FC = () => {
const [Cyber_Tech_01, setCyber_Tech_01] = useState<boolean>(false);
const [Aesthetics_Unbound, setAesthetics_Unbound] = useState<boolean>(false);


//
const changeToDawn_n_Dusk = () => {
setDawn_n_Dusk(!Dawn_n_Dusk);
Expand Down Expand Up @@ -45,7 +44,6 @@ export const SettingsPage: React.FC = () => {
}
};


//
useEffect(() => {
const preferredThemePair = localStorage.getItem("preferred-theme-pair");
Expand Down Expand Up @@ -117,8 +115,8 @@ export const SettingsPage: React.FC = () => {
onChangeFunc={changeToCyber_Tech_01}
/>

{/* Theme 3 */}
<Card
{/* Theme 3 */}
<Card
title="Aesthetics Unbound"
cardImage={Aesthetics_Unbound_darkPreview}
checkedFunc={Aesthetics_Unbound}
Expand Down
18 changes: 15 additions & 3 deletions loading.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

.logo {
font-family: "Nasalization", Arial, sans-serif;
font-size: 9em;
font-size: 25vw;
animation: zoomIn 2s ease-in-out forwards;
}

.slogan {
font-size: 2.2em;
font-size: 7vw;
color: #555;
opacity: 0;
animation: fadeIn 1s ease-in-out forwards;
Expand All @@ -44,6 +44,7 @@
transform: scale(0.5);
opacity: 0;
}

to {
transform: scale(1);
opacity: 1;
Expand All @@ -54,17 +55,28 @@
from {
opacity: 0;
}

to {
opacity: 1;
}
}

@media (min-width: 768px) {
.logo {
font-size: 15vw;
}

.slogan {
font-size: 3vw;
}
}
</style>
</head>

<body>
<div class="container">
<div class="logo">PINAC</div>
<div class="slogan">Automate Your Workflow</div>
</div>
</body>
</html>

0 comments on commit 2385b06

Please sign in to comment.