diff --git a/frontend/frontend/src/pages/Home/Home.js b/frontend/frontend/src/pages/Home/Home.js index e65ea74f..ca422745 100644 --- a/frontend/frontend/src/pages/Home/Home.js +++ b/frontend/frontend/src/pages/Home/Home.js @@ -255,15 +255,40 @@ const HomeScreen = () => { }
- { + {stage === 0 && isAuthenticated ? ( +
+

+ You are logged in as{' '} + + {userId} + + . +

+

+ Access Level:{' '} + + {privateAccess ? 'Private Access' : 'Public Access'} + +

+

+ {privateAccess + ? 'You have granted access to both public and private repositories.' + : 'You have granted access to public repositories.'} +

+
+ ) : ( [ - 'Login or continue as guest.', + '', 'You will be able to customize your card in future steps.', 'Change the date range, include private commits, and more!', 'Choose from one of our predefined themes (more coming soon!)', 'Display your card on GitHub, Twitter, or Linkedin', ][stage] - } + )}
{stage === 0 && } diff --git a/frontend/frontend/src/pages/Home/stages/Login.js b/frontend/frontend/src/pages/Home/stages/Login.js index 19a6576e..8268c758 100644 --- a/frontend/frontend/src/pages/Home/stages/Login.js +++ b/frontend/frontend/src/pages/Home/stages/Login.js @@ -29,23 +29,23 @@ const LoginStage = ({ setCurrItem }) => { const cards = [ { imageSrc: '/pin?repo=anuraghazra/github-readme-stats', - demoCustomization: '', + demoCustomization: '&disable_animations=true', }, { imageSrc: '/top-langs?username=anuraghazra', - demoCustomization: '&langs_count=4', + demoCustomization: '&langs_count=4&disable_animations=true', }, { imageSrc: '?username=anuraghazra', - demoCustomization: '&include_all_commits=true', + demoCustomization: '&include_all_commits=true&disable_animations=true', }, { imageSrc: '/wakatime?username=ffflabs', - demoCustomization: '&langs_count=6&card_width=450', + demoCustomization: '&langs_count=6&card_width=450&disable_animations=true', }, { imageSrc: '/gist?id=bbfce31e0217a3689c8d961a356cb10d', - demoCustomization: '', + demoCustomization: '&disable_animations=true', }, ]; @@ -139,15 +139,6 @@ const LoginStage = ({ setCurrItem }) => { ) : ( <> {/* User is not logged in - show login options */} -
-

- You are not logged in. -

-

- Please choose an option below to continue. -

-
-
-
{cards.map((card, index) => { - // Calculate arch position - // Arch center is far to the right (1500px to the right) - // Radius of the arch - const radius = 40; - const centerX = 50; - const centerY = 50; + const radius = 60; + const centerX = 70; + const startAngle = Math.PI * 0.75; // 135 degrees + const endAngle = Math.PI * 1.25; // 225 degrees - // Angle for each card (spreading them in an arch) - // Cards arranged from top-left to bottom-left - const startAngle = Math.PI * 0.75; // ~135 degrees - const endAngle = Math.PI * 1.25; // ~225 degrees const angle = startAngle + (endAngle - startAngle) * (index / (cards.length - 1)); - - // Calculate position on the arch const x = centerX + radius * Math.cos(angle); - const y = centerY + radius * Math.sin(angle); return (
- {/* -
-*/} - {/* -
-*/}
); })}