generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(styles): favicons and mobile header (#349)
- Loading branch information
1 parent
a34b72f
commit 3e07b0f
Showing
7 changed files
with
23 additions
and
31 deletions.
There are no files selected for viewing
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
Binary file not shown.
File renamed without changes
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.
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,41 +1,30 @@ | ||
--- | ||
import type { Props } from '@astrojs/starlight/props'; | ||
import SiteTitle from '@astrojs/starlight/components/SiteTitle.astro'; | ||
import LanguageSelect from '@astrojs/starlight/components/LanguageSelect.astro'; | ||
import Search from '@astrojs/starlight/components/Search.astro'; | ||
import SocialIcons from '@astrojs/starlight/components/SocialIcons.astro'; | ||
import FCCThemeSelect from './FCCThemeSelect.astro'; | ||
--- | ||
|
||
<nav class='fixed top-0 left-0 right-0 shadow-md z-50'> | ||
<div class='mx-auto px-4 h-16 flex items-center justify-between'> | ||
{/* Left: Search */} | ||
<div class='flex-shrink-0 w-64'> | ||
<Search {...Astro.props} /> | ||
</div> | ||
|
||
{/* Center: Logo */} | ||
<div class='flex-grow flex justify-center'> | ||
<a href='/intro/' class='flex items-center'> | ||
<img | ||
src='https://cdn.freecodecamp.org/platform/universal/fcc_secondary.svg' | ||
alt='freeCodeCamp.org' | ||
class='h-8 dark:hidden' | ||
/> | ||
<img | ||
src='https://cdn.freecodecamp.org/platform/universal/fcc_primary.svg' | ||
alt='freeCodeCamp.org' | ||
class='h-8 hidden dark:block' | ||
/> | ||
</a> | ||
<div class='flex justify-between items-center'> | ||
<div class='flex md:w-64'> | ||
<Search {...Astro.props} /> | ||
</div> | ||
<div class='flex-1 flex justify-center'> | ||
<div class='overflow-hidden max-w-[240px]'> | ||
<SiteTitle {...Astro.props} /> | ||
</div> | ||
|
||
{/* Right: Icons */} | ||
<div class='flex-shrink-0 flex items-center space-x-4'> | ||
</div> | ||
<div class='hidden md:flex items-center space-x-4'> | ||
<div | ||
class="flex items-center space-x-4 after:content-[''] after:h-8 after:border-r after:border-gray-300 dark:after:border-gray-700" | ||
> | ||
<SocialIcons {...Astro.props} /> | ||
<div class='h-6 w-px bg-gray-300 dark:bg-gray-700'></div> | ||
<FCCThemeSelect {...Astro.props} /> | ||
<LanguageSelect {...Astro.props} /> | ||
</div> | ||
<FCCThemeSelect {...Astro.props} /> | ||
<LanguageSelect {...Astro.props} /> | ||
</div> | ||
</nav> | ||
</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