Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
refactor(layout): make "default-max" the default
Browse files Browse the repository at this point in the history
  • Loading branch information
eddybrando committed Jul 28, 2023
1 parent 1f1cb67 commit 4942d2d
Show file tree
Hide file tree
Showing 30 changed files with 11 additions and 74 deletions.
35 changes: 0 additions & 35 deletions layouts/default-max.vue

This file was deleted.

18 changes: 11 additions & 7 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
<template>
<div>
<qiskit-ui-shell variant="hide-account" @on-click="onClick" />
<div class="main-container">
<header>
<qiskit-ui-shell v-if="isALearningPage" @on-click="onClick" />
<qiskit-ui-shell v-else variant="hide-account" @on-click="onClick" />
</header>
<main class="main">
<slot />
</div>
<LayoutFooter old-container theme="light" />
</main>
<LayoutFooter />
</div>
</template>

<script setup lang="ts">
// import "@qiskit/web-components/ui-shell";
const route = useRoute();
const { trackClickEvent } = useSegment();
function onClick(e: CustomEvent) {
trackClickEvent(`${e.detail?.label?.toLowerCase()}`, "menu");
}
const isALearningPage = computed(() => route.path.includes("/learn"));
</script>

<style lang="scss" scoped>
.main-container {
.main {
margin-top: 3.25rem;
}
Expand Down
1 change: 0 additions & 1 deletion pages/advocates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

<script setup lang="ts">
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Advocates",
routeName: "advocates",
});
Expand Down
1 change: 0 additions & 1 deletion pages/ecosystem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ const joinAction: TextLink = {
};
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Ecosystem",
routeName: "ecosystem",
});
Expand Down
2 changes: 0 additions & 2 deletions pages/events/fall-fest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,13 @@
</template>

<script setup lang="ts">
// import "@carbon/web-components/es/components/tabs/index.js";
import {
header,
agenda,
helpfulResources,
} from "~/constants/fallFest2022Content";
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Fall Fest 2022",
routeName: "fall-fest",
});
Expand Down
4 changes: 0 additions & 4 deletions pages/events/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@
</template>

<script setup lang="ts">
// import "@carbon/web-components/es/components/checkbox/index.js";
// import "@carbon/web-components/es/components/code-snippet/index.js";
// import "@carbon/web-components/es/components/tabs/index.js";
import {
CommunityEvent,
WORLD_REGION_OPTIONS,
Expand All @@ -128,7 +125,6 @@ import rawUpcomingEvents from "~/content/events/upcoming-community-events.json";
type TabActiveSet = "calendar" | "past" | "upcoming";
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Events",
routeName: "events",
});
Expand Down
1 change: 0 additions & 1 deletion pages/events/seminar-series.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ import { TextLink } from "~/types/links";
import { DescriptionCard, MosaicElement } from "~/types/uiComponents";
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Seminar Series",
routeName: "seminar-series",
});
Expand Down
1 change: 0 additions & 1 deletion pages/events/summer-school-2022.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ import {
} from "~/constants/summerSchool2022Content";
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Global Summer School 2022",
routeName: "summer-school-2022",
});
Expand Down
1 change: 0 additions & 1 deletion pages/events/summer-school-2023.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ import {
} from "~/constants/summerSchool2023Content";
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Global Summer School 2023",
routeName: "/events/summer-school-2023",
});
Expand Down
1 change: 0 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ interface PackageInfo {
}
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit",
routeName: "qiskit-landing-page",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/algorithm-design.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { RecommendedReading } from "~/types/learn";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle: "Variational Algorithm Design",
routeName: "algorithm-design",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/basics-quantum-information.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { RecommendedReading } from "~/types/learn";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle: "Basics of quantum information",
routeName: "basics-quantum-information-course",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/fundamentals-quantum-algorithms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { RecommendedReading } from "~/types/learn";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle: "Fundamentals of quantum algorithms",
routeName: "fundamentals-quantum-algorithms-course",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/games-and-demos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ enum GamesAndDemosUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Games and demos",
routeName: "games-and-demos",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/introduction-course.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { RecommendedReading } from "~/types/learn";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle: "Introduction course",
routeName: "introduction-course",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/legacy-content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ enum LegacyContentUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Legacy content",
routeName: "legacy-content",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/machine-learning-course.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { LearnStartLearningUrl } from "~/constants/links";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle: "Quantum machine learning course",
routeName: "machine-learning-course",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/multiple-qubits-and-entanglement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ enum MultipleQubitsAndEntanglementUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Multiple Qubits and Entanglement",
routeName: "multiple-qubits-and-entanglement",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/prerequisites.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ enum PrerequisitesUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Prerequisites",
routeName: "prerequisites",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/quantum-algorithms-for-applications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ enum QuantumAlgorithmsForApplicationsUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Quantum Algorithms for Applications",
routeName: "quantum-algorithms-for-applications",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/quantum-computing-labs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ enum QuantumComputingLabsUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Quantum Computing Labs",
routeName: "quantum-computing-labs",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/quantum-hardware-circuits.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ enum QuantumHardwareCircuitsUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Investigating Quantum Hardware Using Quantum Circuits",
routeName: "quantum-hardware-circuits",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/quantum-hardware-pulses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ enum QuantumHardwarePulsesUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Investigating Quantum Hardware Using Microwave Pulses",
routeName: "quantum-hardware-pulses",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ enum QuantumProtocolsAndQuantumAlgorithmsUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Quantum Protocols and Quantum Algorithms",
routeName: "quantum-protocols-and-quantum-algorithms",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/course/quantum-states-and-qubits.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ enum QuantumStatesAndQubitsUrl {
}
definePageMeta({
layout: "default-max",
pageTitle: "Quantum States and Qubits",
routeName: "quantum-states-and-qubits",
});
Expand Down
1 change: 0 additions & 1 deletion pages/learn/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { SocialMedia } from "~/constants/links";
import { DescriptionCard } from "~/types/uiComponents";
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Textbook",
routeName: "learn",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { LearnStartLearningUrl } from "~/constants/links";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle:
"2020 Qiskit global summer school on quantum computing and quantum hardware",
routeName: "introduction-to-quantum-computing-and-quantum-hardware-2020",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { RecommendedReading } from "~/types/learn";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle: "2021 Qiskit Global Summer School on Quantum Machine Learning",
routeName: "quantum-computing-and-quantum-learning-2021",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { LearnStartLearningUrl } from "~/constants/links";
import { TextLink } from "~/types/links";
definePageMeta({
layout: "default-max",
pageTitle: "2022 Qiskit global summer school on quantum simulation",
routeName: "quantum-simulation-summer-school-2022",
});
Expand Down
1 change: 0 additions & 1 deletion pages/providers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import {
} from "~/types/providers";
definePageMeta({
layout: "default-max",
pageTitle: "Qiskit Providers",
routeName: "providers",
});
Expand Down

0 comments on commit 4942d2d

Please sign in to comment.