-
Notifications
You must be signed in to change notification settings - Fork 182
Added a portfolio app example #107
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| *.db | ||
| *.py[cod] | ||
| *.web | ||
| .web | ||
| __pycache__/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| import nextpy as xt | ||
|
|
||
|
|
||
| def contact(): | ||
| return xt.box( | ||
| xt.box( | ||
| xt.text( | ||
| "Lets work together", | ||
| class_name="md:mb-8 mb-4 font-bold text-base md:text-2xl lg:text-3xl", | ||
| ), | ||
| xt.text( | ||
| "This is a template Figma file, turned into code using Anima. Learn more at AnimaApp.com This is a template Figma file, turned into code using Anima. Learn more at AnimaApp.com", | ||
| class_name="md:mb-8 mb-4 text-sm lg:text-base max-w-lg", | ||
| ), | ||
| xt.box( | ||
| xt.image( | ||
| src="/discord.svg", | ||
| class_name="w-7 h-7 object-cover md:w-9 md:h-9", | ||
| ), | ||
| xt.image( | ||
| src="/facebook.svg", | ||
| class_name="w-7 h-7 object-cover md:w-9 md:h-9", | ||
| ), | ||
| xt.image( | ||
| src="/dribbble.svg", | ||
| class_name="w-7 h-7 object-cover md:w-9 md:h-9", | ||
| ), | ||
| xt.image( | ||
| src="/instagram.svg", | ||
| class_name="w-7 h-7 object-cover md:w-9 md:h-9", | ||
| ), | ||
| xt.image( | ||
| src="/behance.svg", | ||
| class_name="w-7 h-7 object-cover md:w-9 md:h-9", | ||
| ), | ||
| class_name="flex items-center gap-4 ", | ||
| ), | ||
| ), | ||
| xt.box( | ||
| xt.input( | ||
| placeholder="Name", | ||
| class_name="mb-2", | ||
| ), | ||
| xt.input( | ||
| placeholder="Email", | ||
| ), | ||
| xt.button( | ||
| "Submit", | ||
| class_name="mt-6 py-8 text-base md:text-lg", | ||
| ), | ||
| variant="unstyled", | ||
| spacing="0.5em", | ||
| align_items="left", | ||
| font_size="2em", | ||
| ), | ||
| class_name="flex flex-col md:flex-row items-center justify-evenly gap-4 md:gap-8 mx-5 md:mx-8 pt-2 md:pt-12 lg:pt-14 pb-12 md:pb-20", | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import nextpy as xt | ||
|
|
||
|
|
||
| def hero(): | ||
| return xt.fragment( | ||
| # xt.color_mode_button(xt.color_mode_icon(), float="right"), | ||
|
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. Consider removing the commented-out line if it's not intended for future use to keep the code clean. |
||
| xt.box( | ||
| xt.box( | ||
| xt.text( | ||
| "Branding | Image making ", | ||
| class_name="md:mb-8 mb-4 font-bold text-base md:text-lg", | ||
| ), | ||
| xt.text( | ||
| "Visual Designer", | ||
| class_name="md:text-7xl font-bold text-3xl", | ||
| ), | ||
| xt.text( | ||
| "This is a template Figma file, turned into code using Anima. Learn more at AnimaApp.com", | ||
| class_name="pt-2 md:text-sm max-w-md text-xs", | ||
| ), | ||
| xt.button( | ||
| "Contact", | ||
| class_name="py-8 mt-6 text-base md:text-lg", | ||
| ), | ||
| variant="unstyled", | ||
| spacing="0.5em", | ||
| align_items="left", | ||
| font_size="2em", | ||
| ), | ||
| xt.box( | ||
| xt.image( | ||
| src="/image.png", | ||
| class_name="w-4/6", | ||
| ), | ||
| font_size="15.25px", | ||
| color="#E3E3E3", | ||
| class_name="flex justify-center items-center", | ||
| ), | ||
| class_name="flex flex-col md:flex-row items-center justify-evenly mx-5 md:mx-8 mt-16 md:mt-24 ", | ||
| ), | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import nextpy as xt | ||
|
|
||
| def navbar(): | ||
| return xt.box( | ||
| xt.text( | ||
| "Logo", | ||
| ), | ||
| xt.box( | ||
| xt.text("About", cursor="pointer"), | ||
| xt.text("Work", cursor="pointer"), | ||
| xt.text("Contact", cursor="pointer"), | ||
| class_name="flex items-center gap-5 ", | ||
| ), | ||
| class_name="flex items-center justify-between mt-5 mx-5 md:mx-10", | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The verification script has confirmed the existence of the
discord.svg,facebook.svg,dribbble.svg, andbehance.svgfiles within theapp-examples/portfolio/assetsdirectory. However, theinstagram.svgfile was not found, which could potentially lead to a broken image link in the portfolio app.Given this information, it seems there is an issue with the
instagram.svgfile not being present in the expected directory.Analysis chain
The
contactfunction defines a contact section with text, social media icons, and a form with input fields and a submit button. Here are some observations and suggestions:nameattributes, which are typically required for form data submission. Consider addingnameattributes to the inputs.class_namevalues contain responsive design classes, which is good for ensuring the component is visually appealing across different devices.variant,spacing,align_items, andfont_sizeproperties (lines 51-54) are applied to the secondxt.boxbut are not part of thext.imageorxt.inputcomponents. This could be an error if these properties are meant to be applied to the images or inputs. If they are intended for thext.box, ensure that they are correctly affecting the layout as expected.class_namein line 56 suggests that the component is designed to be responsive, but it's important to test this across different screen sizes to ensure the layout works as intended.Scripts Executed
The following scripts were executed for the analysis:
Script:
Length of output: 316