-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: phone and table rendering for main DevPortal page (#71)
# Description Render responsive design for phone & tablet. - Closes #33 ## Screenshot(s) <img width="378" alt="image" src="https://github.com/user-attachments/assets/0535423c-2327-42fb-9d10-a9d4517a7125"> <img width="378" alt="image" src="https://github.com/user-attachments/assets/36297975-8722-47a1-9da6-3b66b253f196"> <img width="378" alt="image" src="https://github.com/user-attachments/assets/7c371658-3718-4272-a358-304585d4fbeb"> - [x] New Feature # How to Test? 1. Pull and run locally 2. Go to "Developer Portal" page 3. See that the design at different sizes responds appropriately # Checklist: - [x] I have performed a self-review of my code - [x] I have commented my code & PR, particularly in hard-to-understand areas - [x] I have checked at all the breakpoints to make sure it works on all screen sizes
- Loading branch information
1 parent
52173c9
commit bf6ddce
Showing
8 changed files
with
126 additions
and
76 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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,12 +1,26 @@ | ||
<script lang="ts"> | ||
import { type Snippet } from 'svelte'; | ||
import Header from '../components/Header/Header.svelte'; | ||
import { Footer } from '@frequency-chain/style-guide'; | ||
let { children } = $props(); | ||
const debugScreens = false; // set to true to enable debugging CSS size breaks | ||
</script> | ||
|
||
<Header /> | ||
<div class="w-full"> | ||
<slot /> | ||
</div> | ||
<div class="w-full bg-navy px-[5%] lg:px-[20%]"> | ||
<Footer type="dark" class="w-full border-grayBorder border-opacity-25 vertical-lg:w-[100%]" /> | ||
</div> | ||
{#snippet mainPage(content: Snippet)} | ||
<Header /> | ||
<div class="w-full"> | ||
{@render content()} | ||
</div> | ||
<div class="w-full bg-navy px-[5%] lg:px-[20%]"> | ||
<Footer type="dark" class="w-full border-grayBorder vertical-lg:w-[100%]" /> | ||
</div> | ||
{/snippet} | ||
|
||
{#if debugScreens} | ||
<div class="debug-screens"> | ||
{@render mainPage(children)} | ||
</div> | ||
{:else} | ||
{@render mainPage(children)} | ||
{/if} |
This file contains 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 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,4 +1,5 @@ | ||
<!-- Desktop --> | ||
<div | ||
class="relative w-full bg-[url(/src/lib/assets/dev-portal.svg)] bg-cover bg-center bg-no-repeat sm:h-[300px] lg:h-full" | ||
class="relative min-h-[300px] w-full bg-[url(/src/lib/assets/dev-portal.svg)] bg-cover bg-center bg-no-repeat md:mt-0 md:min-h-[600px] | ||
lg:h-full" | ||
></div> |
This file contains 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 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