Skip to content

Commit

Permalink
Prototype: tabs adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
augustinhiebel committed Dec 13, 2023
1 parent 1b97828 commit 2871f9a
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets/styles/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@
flex
flex-row
md:max-w-[809px]
min-h-10
md:min-h-[146px]
;
> .card-image {
@apply
Expand Down
4 changes: 2 additions & 2 deletions pages/stryda/clanevents/[game_slug]/[leaderboard_id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ export default function Ladders() {
</div>
</section>

<nav>
<ul className="tabs tabs-tertiary">
<nav className="sticky z-40 mb-8 flex justify-start overflow-x-auto scrollbar-hidden px-4 md:px-0 bg-ui-900/95 border-b border-ui-700 top-12">
<ul className="tabs">
{TabsItems.map((item, itemIndex) => (
<li key={itemIndex}>
<Link
Expand Down
36 changes: 36 additions & 0 deletions pages/stryda/demo/demo-videomanager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React, { useContext, useState, useEffect } from "react";

import { usePrototypeData } from "@/contexts/prototype";
import { UiContext } from "@/contexts/ui.js";
import Structure from "../components/Structure";
import ModalLevelUp from "../modal-levelup";
import CardMission from "@/pages/stryda/components/CardMission";
import Battlepass from "@/components/BattlePass/BattlePass";

export default function DemoVideoManager() {
const prototype = usePrototypeData();
const uiContext = useContext(UiContext);
const selectedGame = prototype.getGameByID(prototype.defaultGameID);

const [loading, setLoading] = useState(true);

useEffect(() => {
if (loading) {
setTimeout(() => {
setLoading(false);
}, 1000);
}
}, [loading]);

return (
<>
<Structure title="Profile" hiddenUI={true}></Structure>

<section className="absolute inset-0 p-4 flex items-center justify-center">
<div className="w-full max-w-xl">

</div>
</section>
</>
);
}
4 changes: 2 additions & 2 deletions pages/stryda/ladders/[game_slug]/[ladder_id].js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export default function Home() {

{selectedLadder.status === "ongoing" && <LadderPlacements />}

<nav>
<ul className="tabs tabs-tertiary">
<nav className="sticky z-40 mb-8 flex justify-start overflow-x-auto scrollbar-hidden px-4 md:px-0 bg-ui-900/95 border-b border-ui-700 top-12">
<ul className="tabs">
{selectedLadder.clan ? (
<>
{TabsItems.map((item, itemIndex) => (
Expand Down
4 changes: 2 additions & 2 deletions pages/stryda/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export default function Search() {
/>
</div>
</div>
<nav className="">
<ul className="tabs tabs-tertiary">
<nav className="sticky z-40 mb-8 flex justify-start overflow-x-auto scrollbar-hidden px-4 md:px-0 bg-ui-900/95 border-b border-ui-700 top-12">
<ul className="tabs">
{TabsItems.map((item, itemIndex) => (
<li key={item}>
<Link
Expand Down
4 changes: 2 additions & 2 deletions pages/stryda/shop/[voucher_id]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export default function Home() {
</div>
)}

<nav>
<ul className="tabs tabs-tertiary">
<nav className="sticky z-40 mb-8 flex justify-start overflow-x-auto scrollbar-hidden px-4 md:px-0 bg-ui-900/95 border-b border-ui-700 top-12">
<ul className="tabs">
{selectedVoucher.sections?.map((section, sectionIndex) => (
<li key={sectionIndex}>
<button
Expand Down
4 changes: 2 additions & 2 deletions pages/stryda/wallet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export default function Home() {
<img src="https://res.cloudinary.com/gloot/image/upload/v1689683517/Stryda/illustrations/stryda_v2_pagebg_wallet.jpg" />
</div>
</section>
<nav>
<ul className="tabs tabs-tertiary">
<nav className="sticky z-40 mb-8 flex justify-start overflow-x-auto scrollbar-hidden px-4 md:px-0 bg-ui-900/95 border-b border-ui-700 top-12">
<ul className="tabs">
{TabsItems.map((item, itemIndex) => (
<li key={item}>
<Link
Expand Down

0 comments on commit 2871f9a

Please sign in to comment.