-
Notifications
You must be signed in to change notification settings - Fork 62
Improving UIUX of a About page #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,44 @@ | ||
| const express = require('express'); | ||
| const mongoose = require('mongoose'); | ||
| const session = require('express-session'); | ||
| const passport = require('passport'); | ||
| const bodyParser = require('body-parser'); | ||
| require('dotenv').config(); | ||
| const cors = require('cors'); | ||
| const express = require("express"); | ||
| const mongoose = require("mongoose"); | ||
| const session = require("express-session"); | ||
| const passport = require("passport"); | ||
| const bodyParser = require("body-parser"); | ||
| require("dotenv").config(); | ||
| const cors = require("cors"); | ||
|
|
||
| // Passport configuration | ||
| require('./config/passportConfig'); | ||
| require("./config/passportConfig"); | ||
|
|
||
| const app = express(); | ||
|
|
||
| // CORS configuration | ||
| app.use(cors('*')); | ||
| app.use(cors("*")); | ||
|
|
||
| // Middleware | ||
| app.use(bodyParser.json()); | ||
| app.use(session({ | ||
| app.use( | ||
| session({ | ||
| secret: process.env.SESSION_SECRET, | ||
| resave: false, | ||
| saveUninitialized: false, | ||
| })); | ||
| }) | ||
| ); | ||
| app.use(passport.initialize()); | ||
| app.use(passport.session()); | ||
|
|
||
| // Routes | ||
| const authRoutes = require('./routes/auth'); | ||
| app.use('/api/auth', authRoutes); | ||
| const authRoutes = require("./routes/auth"); | ||
| app.use("/api/auth", authRoutes); | ||
|
|
||
| // Connect to MongoDB | ||
| mongoose.connect(process.env.MONGO_URI, {}).then(() => { | ||
| console.log('Connected to MongoDB'); | ||
| mongoose | ||
| .connect(process.env.MONGO_URI, {}) | ||
| .then(() => { | ||
| console.log("Connected to MongoDB"); | ||
| app.listen(process.env.PORT, () => { | ||
| console.log(`Server running on port ${process.env.PORT}`); | ||
| console.log(`Server running on port ${process.env.PORT}`); | ||
| }); | ||
| }).catch((err) => { | ||
| console.log('MongoDB connection error:', err); | ||
| }); | ||
| }) | ||
| .catch((err) => { | ||
| console.log("MongoDB connection error:", err); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,48 +1,61 @@ | ||||||||||||||||||||||||||||||||||||||||||
| const About = () => { | ||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||
| <div className="about-container"> | ||||||||||||||||||||||||||||||||||||||||||
| {/* Hero Section */} | ||||||||||||||||||||||||||||||||||||||||||
| <section className="hero bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 py-12 px-4"> | ||||||||||||||||||||||||||||||||||||||||||
| <h1 className="text-4xl font-bold text-center">About Us</h1> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="text-lg text-center mt-4"> | ||||||||||||||||||||||||||||||||||||||||||
| Welcome to GitHub Tracker! We simplify issue tracking for developers. | ||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||
| </section> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="about-container w-full bg-gradient-to-br from-indigo-100 to-slate-100 dark:from-blue-950 dark:to-gray-900"> | ||||||||||||||||||||||||||||||||||||||||||
| {/* Main Flex Wrapper */} | ||||||||||||||||||||||||||||||||||||||||||
| <div className="flex flex-col lg:flex-row mt-8 items-center justify-around gap-8 px-4"> | ||||||||||||||||||||||||||||||||||||||||||
| {/* Image Section */} | ||||||||||||||||||||||||||||||||||||||||||
| <div className="border p-10 sm:p-14 border-indigo-400 rounded-lg shadow-lg hover:scale-105 duration-300 transition-all"> | ||||||||||||||||||||||||||||||||||||||||||
| <img className="w-32 sm:w-64 max-w-full h-auto" src="/crl-icon.png" alt="Logo" /> | ||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainExcellent responsive design with proper image handling. The gradient background and responsive image section create a modern, professional appearance. The hover effects and proper responsive classes enhance user experience. 🏁 Script executed: #!/bin/bash
# Verify the logo image exists in the public directory
fd -t f "crl-icon.png" public/Length of output: 50 About Page UI Redesign Approved – Image Asset Verified The comprehensive UI overhaul aligns perfectly with our PR objectives. I’ve confirmed that • Enhance alt text • Add keyboard focus styles to hoverable container - className="border p-10 sm:p-14 border-indigo-400 rounded-lg shadow-lg hover:scale-105 duration-300 transition-all"
+ className="border p-10 sm:p-14 border-indigo-400 rounded-lg shadow-lg
hover:scale-105 focus:scale-105 focus:outline-none
focus:ring-2 focus:ring-indigo-400 duration-300 transition-all"These tweaks will improve screen-reader context and ensure keyboard users experience the same interactive feedback. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| {/* Mission Section */} | ||||||||||||||||||||||||||||||||||||||||||
| <section className="mission py-12 text-gray-800 dark:text-gray-100 px-4"> | ||||||||||||||||||||||||||||||||||||||||||
| <h2 className="text-3xl font-semibold text-center">Our Mission</h2> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="text-lg text-center mt-4 max-w-3xl mx-auto"> | ||||||||||||||||||||||||||||||||||||||||||
| We aim to provide an efficient and user-friendly way to track GitHub | ||||||||||||||||||||||||||||||||||||||||||
| issues and pull requests. Our goal is to make it easy for developers to | ||||||||||||||||||||||||||||||||||||||||||
| stay organized and focused on their projects without getting bogged down | ||||||||||||||||||||||||||||||||||||||||||
| by the details. | ||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||
| </section> | ||||||||||||||||||||||||||||||||||||||||||
| {/* About & Mission Sections */} | ||||||||||||||||||||||||||||||||||||||||||
| <div className="w-full lg:w-2/3"> | ||||||||||||||||||||||||||||||||||||||||||
| <section className="hero text-gray-900 dark:text-white py-10 sm:py-16 px-4 md:px-12 text-center"> | ||||||||||||||||||||||||||||||||||||||||||
| <h1 className="text-3xl sm:text-4xl md:text-5xl font-bold">About Us</h1> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="mt-6 max-w-3xl mx-auto text-base md:text-lg leading-relaxed border border-gray-300 dark:border-gray-600 px-6 py-4 rounded-lg hover:scale-105 transition-all duration-300 shadow-md dark:shadow-gray-800"> | ||||||||||||||||||||||||||||||||||||||||||
| Welcome to <span className="font-semibold text-indigo-600 dark:text-indigo-400">GitHub Tracker</span>! | ||||||||||||||||||||||||||||||||||||||||||
| We simplify issue tracking for developers with clean design and powerful tools. | ||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||
| </section> | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| <section className="mission py-10 sm:py-16 px-4 md:px-12 text-center text-gray-800 dark:text-white"> | ||||||||||||||||||||||||||||||||||||||||||
| <h2 className="text-2xl sm:text-3xl md:text-4xl font-bold">Our Mission</h2> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="mt-6 max-w-3xl mx-auto text-base md:text-lg leading-relaxed border border-gray-300 dark:border-gray-600 px-6 py-4 rounded-lg hover:scale-105 transition-all duration-300 shadow-md dark:shadow-gray-800"> | ||||||||||||||||||||||||||||||||||||||||||
| We aim to provide an efficient and user-friendly way to track GitHub issues and pull requests. | ||||||||||||||||||||||||||||||||||||||||||
| Our goal is to keep developers focused and organized without the hassle. | ||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||
| </section> | ||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| {/* Features Section */} | ||||||||||||||||||||||||||||||||||||||||||
| <section className="features bg-gray-100 dark:bg-gray-800 py-12 text-gray-800 dark:text-gray-100 px-4"> | ||||||||||||||||||||||||||||||||||||||||||
| <h2 className="text-3xl font-semibold text-center">What We Do</h2> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="flex justify-around mt-8 flex-wrap gap-8"> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-item text-center max-w-xs"> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-icon text-4xl">🔍</div> | ||||||||||||||||||||||||||||||||||||||||||
| <h3 className="font-semibold mt-4">Simple Issue Tracking</h3> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="text-lg mt-2 dark:text-gray-300"> | ||||||||||||||||||||||||||||||||||||||||||
| Track your GitHub issues seamlessly with intuitive filters and search options. | ||||||||||||||||||||||||||||||||||||||||||
| <section className="features py-10 sm:py-16 px-4 md:px-12"> | ||||||||||||||||||||||||||||||||||||||||||
| <h2 className="text-2xl sm:text-3xl md:text-4xl font-bold text-center text-gray-800 dark:text-white">What We Do</h2> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="mt-10 flex flex-col md:flex-row justify-center items-stretch gap-10"> | ||||||||||||||||||||||||||||||||||||||||||
| {/* Feature 1 */} | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-item flex-1 max-w-sm w-full mx-auto text-center border border-gray-300 dark:border-gray-700 rounded-xl p-6 hover:bg-gradient-to-br from-indigo-100 to-pink-100 dark:from-indigo-900 dark:to-pink-900 transition-all duration-300 shadow-md dark:shadow-lg"> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="text-5xl mb-4">🔍</div> | ||||||||||||||||||||||||||||||||||||||||||
| <h3 className="text-xl font-semibold dark:text-white">Simple Issue Tracking</h3> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="mt-3 text-sm text-gray-700 dark:text-gray-300"> | ||||||||||||||||||||||||||||||||||||||||||
| Track GitHub issues with intuitive filters and fast search tools. | ||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-item text-center max-w-xs"> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-icon text-4xl">👥</div> | ||||||||||||||||||||||||||||||||||||||||||
| <h3 className="font-semibold mt-4">Team Collaboration</h3> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="text-lg mt-2 dark:text-gray-300"> | ||||||||||||||||||||||||||||||||||||||||||
| Collaborate with your team in real-time, manage issues and pull requests effectively. | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| {/* Feature 2 */} | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-item flex-1 max-w-sm w-full mx-auto text-center border border-gray-300 dark:border-gray-700 rounded-xl p-6 hover:bg-gradient-to-br from-green-100 to-yellow-100 dark:from-green-900 dark:to-yellow-900 transition-all duration-300 shadow-md dark:shadow-lg"> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="text-5xl mb-4">👥</div> | ||||||||||||||||||||||||||||||||||||||||||
| <h3 className="text-xl font-semibold dark:text-white">Team Collaboration</h3> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="mt-3 text-sm text-gray-700 dark:text-gray-300"> | ||||||||||||||||||||||||||||||||||||||||||
| Collaborate in real-time with your team and manage pull requests effectively. | ||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-item text-center max-w-xs"> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-icon text-4xl">⚙️</div> | ||||||||||||||||||||||||||||||||||||||||||
| <h3 className="font-semibold mt-4">Customizable Settings</h3> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="text-lg mt-2 dark:text-gray-300"> | ||||||||||||||||||||||||||||||||||||||||||
| Customize your issue tracking workflow to match your team's needs. | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| {/* Feature 3 */} | ||||||||||||||||||||||||||||||||||||||||||
| <div className="feature-item flex-1 max-w-sm w-full mx-auto text-center border border-gray-300 dark:border-gray-700 rounded-xl p-6 hover:bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 transition-all duration-300 shadow-md dark:shadow-lg"> | ||||||||||||||||||||||||||||||||||||||||||
| <div className="text-5xl mb-4">⚙️</div> | ||||||||||||||||||||||||||||||||||||||||||
| <h3 className="text-xl font-semibold dark:text-white">Customizable Settings</h3> | ||||||||||||||||||||||||||||||||||||||||||
| <p className="mt-3 text-sm text-gray-700 dark:text-gray-300"> | ||||||||||||||||||||||||||||||||||||||||||
| Tailor your workflow and preferences to fit your team’s needs and goals. | ||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Code style standardization looks good, but verify environment setup documentation.
The conversion to consistent double quotes and improved multi-line formatting enhances readability. However, the AI summary mentions removal of
backend/.env.examplewhich could impact new developer onboarding.🏁 Script executed:
Length of output: 84
I’d like to confirm whether the README still documents the required environment variables now that
.env.examplewas removed:🏁 Script executed:
Length of output: 141
Add Documentation for Required Environment Variables
The style updates are fine, but removing
backend/.env.examplehas left no reference to the needed environment variables. SinceREADME.mddoesn’t list them, please add or restore documentation so new developers know which vars to set.Locations to update:
backend/README.md(or project rootREADME.mdif that’s the main doc)backend/.env.examplewith placeholder valuesSuggested
README.mdaddition:🤖 Prompt for AI Agents