-
Notifications
You must be signed in to change notification settings - Fork 1.4k
style(fountain): new content and layout for the landing page #13056
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
rjan90
merged 3 commits into
filecoin-project:master
from
barbaraperic:bp/content-enhacement
Apr 30, 2025
Merged
Changes from all commits
Commits
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
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 |
|---|---|---|
| @@ -1,82 +1,152 @@ | ||
| :root { | ||
| --color-primary: #3f51b5; | ||
| --color-primary-dark: #283593; | ||
| --color-primary-darker: #1a237e; | ||
| --color-text: #64748b; | ||
| --color-background: #f8fafc; | ||
| --color-border: #e2e8f0; | ||
| --color-white: white; | ||
| } | ||
|
|
||
| /* Base styles */ | ||
| body { | ||
| font-family: 'Helvetica Neue', sans-serif; | ||
| background-color: #f0f0f0; | ||
| font-family: 'Inter', system-ui, -apple-system, sans-serif; | ||
| background-color: var(--color-background); | ||
| padding: 0; | ||
| margin: 0; | ||
| line-height: 1.6; | ||
| } | ||
|
|
||
| .Index { | ||
| width: 100vw; | ||
| height: 100vh; | ||
| background-color: #f0f0f0; | ||
| color: #333; | ||
| font-family: 'Helvetica Neue', sans-serif; | ||
| *, *::before, *::after { | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| display: grid; | ||
| grid-template-columns: auto 40vw auto; | ||
| grid-template-rows: auto auto auto 3em; | ||
| grid-template-areas: | ||
| ". . . ." | ||
| ". main main ." | ||
| ". . . ." | ||
| "footer footer footer footer"; | ||
| p { | ||
| color: var(--color-text); | ||
| } | ||
|
|
||
| .Index-footer { | ||
| background-color: #333; | ||
| grid-area: footer; | ||
| a { | ||
| color: var(--color-primary); | ||
| text-decoration: none; | ||
| transition: color 0.2s; | ||
| } | ||
|
|
||
| .Index-footer > div { | ||
| padding-left: 0.7em; | ||
| padding-top: 0.7em; | ||
| a:hover { | ||
| color: var(--color-primary-dark); | ||
| } | ||
|
|
||
| .Index-nodes { | ||
| grid-area: main; | ||
| /* Layout */ | ||
| .page-wrapper { | ||
| container-type: inline-size; | ||
| max-width: 900px; | ||
| margin: 0 auto; | ||
| padding: 40px 20px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 4rem; | ||
| } | ||
|
|
||
| .Index-node { | ||
| margin: 5px; | ||
| padding: 15px; | ||
| background-color: #fff; | ||
| box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); | ||
| /* Header */ | ||
| header { | ||
| text-align: center; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 1.5rem; | ||
| } | ||
|
|
||
| span { | ||
| display: block; | ||
| margin-bottom: 5px; | ||
| header h1 { | ||
| color: var(--color-primary-darker); | ||
| font-size: 2.5rem; | ||
| } | ||
|
|
||
| input[type="text"] { | ||
| width: 100%; | ||
| padding: 10px; | ||
| border-radius: 5px; | ||
| border: 1px solid #ccc; | ||
| margin-bottom: 10px; | ||
| header p { | ||
| max-width: 600px; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| button { | ||
| background-color: #4c9aff; | ||
| color: #fff; | ||
| border: none; | ||
| border-radius: 5px; | ||
| padding: 10px 20px; | ||
| font-size: 1.2em; | ||
| /* Cards */ | ||
| .cards { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 24px; | ||
| } | ||
|
|
||
| button:hover { | ||
| background-color: #4c7eff; | ||
| .card { | ||
| background-color: var(--color-white); | ||
| border-radius: 16px; | ||
| padding: 40px; | ||
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);; | ||
| display: grid; | ||
| grid-template-columns: 2fr 1fr; | ||
| gap: 32px; | ||
| align-items: center; | ||
| } | ||
|
|
||
| a:link { | ||
| color: #333; | ||
| .card-content { | ||
| order: 1; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 1.5rem; | ||
| } | ||
|
|
||
| a:visited { | ||
| color: #333; | ||
| .card h2 { | ||
| color: var(--color-primary-darker); | ||
| font-size: 1.75rem; | ||
| text-align: left; | ||
| } | ||
|
|
||
| a:hover { | ||
| color: #555; | ||
|
|
||
| /* Buttons */ | ||
| .button-container { | ||
| order: 2; | ||
| text-align: center; | ||
| display: flex; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .button { | ||
| background-color: var(--color-primary); | ||
| color: var(--color-white); | ||
| text-decoration: none; | ||
| padding: 16px 32px; | ||
| border-radius: 12px; | ||
| font-weight: 600; | ||
| transition: all 0.2s ease; | ||
| max-width: 200px; | ||
| width: 80%; | ||
| flex-grow: 1; | ||
| } | ||
|
|
||
| .button:hover { | ||
| background-color: var(--color-primary-dark); | ||
| color: var(--color-white); | ||
| } | ||
|
|
||
| .divider { | ||
| height: 1px; | ||
| background-color: var(--color-border); | ||
| } | ||
|
|
||
| /* Footer */ | ||
| footer { | ||
| text-align: center; | ||
| } | ||
|
|
||
| /* Responsive styles */ | ||
| @container (max-width: 700px) { | ||
| .card { | ||
| grid-template-columns: 1fr; | ||
| } | ||
|
|
||
| .card h2 { | ||
| font-size: 1.5rem; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .button { | ||
| width: 100%; | ||
| } | ||
| } | ||
|
|
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.