refactor/ RREADME updated, About Us updated, unused route removed

This commit is contained in:
nicoagostini committed 2025-05-23 02:29:59 -07:00
1 parent ed8b2b47b6
commit b11d5ceca3
5 files changed
+93 -59

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ const factSubmitButton = document.getElementById("factSubmitButton");
var path = window.location.pathname;
var page = path.split("/").pop();
if(page !== "login" && page !== "signup" && page !== "forgotPassword" && page !== "") {
if(page !== "login" && page !== "signup" && page !== "forgotPassword" && page !== "aboutUs" && page !== "") {
factButton.classList.remove("hidden");
}
-14
View File
@@ -189,20 +189,6 @@ module.exports = (middleware, users, plans, assets) => {
}
});
// router.get('/newPlan', (req, res) => {
// if (!req.session.user.financialData || !req.session.user) {
// req.session.errMessage = "Please complete your financial data before creating a plan.";
// return res.status(status.Unauthorized).redirect('/questionnaire');
// }
// const errMessage = req.session.errMessage;
// req.session.errMessage = "";
// res.render('newPlan', {
// user: req.session.user,
// errMessage: errMessage,
// geoData: req.session.geoData
// });
// });
router.post('/newPlan', async (req, res) => {
if (!req.session.user.financialData || !req.session.user) {
+1 -1
View File
@@ -13,7 +13,7 @@ async function generateFact(factInput) {
async function generateSuggestions() {
const response = await ai.models.generateContent({
model: "gemini-2.0-flash",
contents: "Return a mock investment suggestion 3-5 lines only",
contents: "Return a mock investment suggestion 3-5 lines only, please do not include any extra text or explanation.",
});
return response.text;
}
+48 -16
View File
@@ -10,27 +10,59 @@
<section class="bg-gray-900 py-12 md:py-20">
<div class="max-w-screen-lg mx-auto px-4 text-center">
<h1 class="mb-4 text-4xl font-extrabold tracking-tight leading-none md:text-5xl lg:text-6xl text-white">About RCalculator</h1>
<p class="mb-12 text-lg font-normal lg:text-xl sm:px-16 text-gray-400">Welcome to RCalculator, your partner in building a secure and fulfilling financial future.</p>
<p class="mb-12 text-lg font-normal lg:text-xl sm:px-16 text-gray-400">Welcome to RCalculator, your partner in navigating the path to a secure and fulfilling financial future. We simplify financial planning, making it accessible and actionable for everyone.</p>
</div>
<div class="max-w-screen-md mx-auto px-4">
<h2 class="mb-4 text-3xl font-bold tracking-tight text-white text-center">Our Mission</h2>
<p class="mb-6 font-normal text-gray-400 text-lg text-center">
Our mission is to empower you with the tools and insights needed to take control of your long-term financial goals.
</p>
<div class="prose lg:prose-lg mx-auto text-gray-400">
<p class="mb-4">
We believe that planning for your desired future, especially retirement, shouldn't be daunting. It doesn't matter what your current age or career status is starting now is what counts.
</p>
<p class="mb-4">
At RCalculator, we help you trace a personalized plan that suits your unique aspirations. We provide clear, actionable advice and projections to guide you on how to get there, whether you're just starting your career, mid-way through, or nearing retirement.
</p>
<p>
Let us help you navigate the path to financial independence and achieve the retirement lifestyle you envision.
</p>
<!-- What RCalculator Offers Section -->
<div class="max-w-screen-md mx-auto px-4 mb-16">
<h2 class="mb-8 text-3xl font-bold tracking-tight text-white text-center">What RCalculator Offers</h2>
<div class="space-y-8 text-gray-400 text-lg">
<div class="p-6 border border-gray-700 rounded-lg bg-gray-800/30 shadow-lg">
<h3 class="font-semibold text-xl text-white mb-2">Personalized Financial Insights</h3>
<p>Start by completing our comprehensive questionnaire. Your answers help us tailor financial guidance and projections specifically to your situation and goals.</p>
</div>
<div class="p-6 border border-gray-700 rounded-lg bg-gray-800/30 shadow-lg">
<h3 class="font-semibold text-xl text-white mb-2">Comprehensive Asset Tracking</h3>
<p>Easily add and monitor various types of assets, from savings accounts and stocks to real estate and other investments. Get a clear overview of your net worth in one place.</p>
</div>
<div class="p-6 border border-gray-700 rounded-lg bg-gray-800/30 shadow-lg">
<h3 class="font-semibold text-xl text-white mb-2">Strategic Goal Planning</h3>
<p>Define your long-term financial objectives, such as retirement, buying a home, or funding education. Create detailed plans and see how you can achieve them.</p>
</div>
<div class="p-6 border border-gray-700 rounded-lg bg-gray-800/30 shadow-lg">
<h3 class="font-semibold text-xl text-white mb-2">Clear Financial Projections</h3>
<p>Understand the potential growth of your investments and the feasibility of your financial plans with our easy-to-understand projections and visual tools.</p>
</div>
</div>
</div>
<!-- Getting Started Section -->
<div class="max-w-screen-md mx-auto px-4 mb-16">
<h2 class="mb-8 text-3xl font-bold tracking-tight text-white text-center">Getting Started with RCalculator</h2>
<ol class="list-decimal list-inside space-y-6 text-gray-400 text-lg">
<li class="p-4 border border-gray-700 rounded-lg bg-gray-800 shadow-md">
<span class="font-semibold text-white">Sign Up & Build Your Profile:</span> Create your account and fill out our initial questionnaire. This provides the foundation for personalized advice.
</li>
<li class="p-4 border border-gray-700 rounded-lg bg-gray-800 shadow-md">
<span class="font-semibold text-white">Log Your Assets:</span> Navigate to the 'Assets' section to add details about your current savings, investments, and other valuable possessions.
</li>
<li class="p-4 border border-gray-700 rounded-lg bg-gray-800 shadow-md">
<span class="font-semibold text-white">Create Financial Plans:</span> Head to the 'Plans' section to outline your financial goals. Set targets, timelines, and see projected outcomes.
</li>
<li class="p-4 border border-gray-700 rounded-lg bg-gray-800 shadow-md">
<span class="font-semibold text-white">Monitor & Adjust:</span> Regularly review your dashboard to track your progress. Adjust your plans and asset information as your circumstances change.
</li>
</ol>
</div>
<!-- Our Commitment Section -->
<div class="max-w-screen-md mx-auto px-4">
<h2 class="mb-6 text-3xl font-bold tracking-tight text-white text-center">Our Commitment</h2>
<p class="text-gray-400 text-lg text-center">
Our mission is to empower you with clarity and confidence in your financial decisions. We believe that with the right tools and guidance, anyone can achieve their financial aspirations. Let RCalculator be your guide to financial independence.
</p>
</div>
<% if (!geoData) { %>
<div class="flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0">
<a href="/signup" class="inline-flex justify-center items-center mt-4 py-3 px-5 text-base font-medium text-center text-white rounded-lg bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-900">