-
Notifications
You must be signed in to change notification settings - Fork 4
Issue 16 create feature box component #19
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
12 commits
Select commit
Hold shift + click to select a range
df992cf
Added Feature Box Component
Games4Doritos a526b0e
Update featureBox.tsx
Games4Doritos 83d3ae7
Added custom dark colour + revisions
Games4Doritos f6e6c6c
formatting :(
Games4Doritos a2d27e6
Reworked the shape, added responsiveness, and made requested changes
Games4Doritos d203ea2
Update dark-alt color value in globals.css
Games4Doritos 66b4b06
Merge pull request #28 from codersforcauses/change-dark-alt-colour
samjjacko 688872a
Merge branch 'main' into issue-16-Create_feature_box_component
Games4Doritos 05bc3cc
Changed some styling + removed hOffset +
Games4Doritos 342cf6b
formatting
Games4Doritos a7318b4
Removed old dark color (was replaced in new colours)
Games4Doritos 79b3789
Updated a colour to now draw from the updated tailwind config file
Games4Doritos 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,36 @@ | ||
| import * as React from "react"; | ||
|
|
||
| interface contents { | ||
| title: string; | ||
| text: string; | ||
| } | ||
|
|
||
| function FeatureBox({ title, text }: contents): React.JSX.Element { | ||
| return ( | ||
| <> | ||
| <div | ||
| style={{ | ||
| boxSizing: "border-box", | ||
| clipPath: | ||
| "polygon(0% 0%, 27% 0%, 31% 1rem, 100% 1rem, 100% calc(100% - 1rem), 97% 100%, 70% 100%, 67% calc(100% - 1rem), 0% calc(100% - 1rem))", | ||
| }} | ||
| //Each pair of percentages is a 2d point, and polygon() joins them all together to form a polygon | ||
| className="m-0 mx-auto max-w-[60%] bg-secondary pt-[0.15rem]" | ||
| > | ||
| <div | ||
| style={{ | ||
| width: "calc(100% - 0.3rem)", | ||
| clipPath: "inherit", | ||
| boxSizing: "inherit", | ||
| }} | ||
| className="mb-[0.15rem] ml-[0.15rem] bg-dark_alt p-10" | ||
| > | ||
| <h3 className="mb-4 font-jersey10 text-4xl">{title}</h3> | ||
| <p className="font-sans">{text}</p> | ||
| </div> | ||
| </div> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| export default FeatureBox; | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.