Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/components/QuickStartFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const IconWrapper = ({icon, bg}) => (
export default function QuickstartFilter({defaultLanguage = null}) {
const {colorMode} = useColorMode();
const isDark = colorMode === "dark";

// 👇 initialize with defaultLanguage if provided
const [language, setLanguage] = useState(defaultLanguage);
const [server, setServer] = useState(null);
Expand Down Expand Up @@ -181,8 +180,16 @@ export default function QuickstartFilter({defaultLanguage = null}) {
// ----- Render -----
return (
<div style={{marginTop: "2rem"}}>
<style>{`
@media (max-width: 480px) {
.responsive-heading {
margin-left: 0.75rem !important;
font-size: 1.2rem !important;
}
}
`}</style>
{/* Language Selection */}
<h2 style={headingStyle}>Choose your language</h2>
<h2 className="responsive-heading" style={headingStyle}>Choose your language</h2>
<div style={stepContainer}>
{languages.map((lang) => (
<button
Expand Down Expand Up @@ -222,7 +229,7 @@ export default function QuickstartFilter({defaultLanguage = null}) {
</div>

{/* Server Selection */}
<h2 style={{...headingStyle, marginTop: "2rem"}}>
<h2 className="responsive-heading" style={{...headingStyle, marginTop: "2rem"}}>
Where do you want to run the app server?
</h2>
<div style={serverContainer}>
Expand Down Expand Up @@ -264,7 +271,7 @@ export default function QuickstartFilter({defaultLanguage = null}) {
{/* Quickstarts */}
{language && server && (
<>
<h2 style={{...headingStyle, marginTop: "2rem"}}>
<h2 className="responsive-heading" style={{...headingStyle, marginTop: "2rem"}}>
✨ AI Suggested Sample Apps
</h2>
<div style={gridContainer}>
Expand Down
Loading