Skip to content

Commit

Permalink
fix(nx-dev): improve styles
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Jan 8, 2024
1 parent 8bd78ca commit 48bcb53
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
28 changes: 14 additions & 14 deletions nx-dev/nx-dev/pages/tips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">What is Nx?</h3>
<p className="pt-5 text-sm">January 8th</p>
<p className="pt-1 text-sm dark:text-blue-300">January 8th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://www.youtube.com/watch?v=-_4WMl-Fn0w"
Expand Down Expand Up @@ -56,7 +56,7 @@ const tips: NewYearTip[] = [
<h3 className="text-xl font-semibold">
Which Style of Workspace is Right for You?
</h3>
<p className="pt-5 text-sm">January 9th</p>
<p className="pt-1 text-sm dark:text-blue-300">January 9th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://www.youtube.com/watch?v=ArmERpNvC8Y"
Expand Down Expand Up @@ -87,7 +87,7 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">What is Nx Cloud?</h3>
<p className="pt-5 text-sm">January 10th</p>
<p className="pt-1 text-sm dark:text-blue-300">January 10th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://www.youtube.com/watch?v=NZF0ZJpgaJM"
Expand Down Expand Up @@ -127,7 +127,7 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">Add Nx to an Existing Project</h3>
<p className="pt-5 text-sm">January 11th</p>
<p className="pt-1 text-sm dark:text-blue-300">January 11th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://youtu.be/VmGCZ77ao_I"
Expand Down Expand Up @@ -158,7 +158,7 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">Micro Frontends with Nx</h3>
<p className="pt-5 text-sm">January 12th</p>
<p className="pt-1 text-sm dark:text-blue-300">January 12th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://www.youtube.com/watch?v=dotA6ZSmNL4"
Expand Down Expand Up @@ -190,27 +190,27 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">Explore Example Repos</h3>
<p className="pt-5 text-sm">January 15th</p>
<p className="pt-1 text-sm dark:text-blue-300">January 15th</p>
<p className="my-4">
Nx can work with any technology stack and we have created examples for
many of them.
</p>
<div className="flex justify-center items-center">
<Link
href="/getting-started/tutorials/react-standalone-tutorial"
className="w-20 h-20 m-4"
className="w-20 m-4"
>
{frameworkIcons.react.image}
</Link>
<Link
href="/getting-started/tutorials/angular-standalone-tutorial"
className="w-20 h-20 m-4"
className="w-20 m-4"
>
{frameworkIcons.angular.image}
</Link>
<Link
href="/getting-started/tutorials/vue-standalone-tutorial"
className="w-20 h-20 m-4"
className="w-20 m-4"
>
{frameworkIcons.vue.image}
</Link>
Expand All @@ -233,7 +233,7 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">Let's Build a CLI</h3>
<p className="pt-5 text-sm">January 16th</p>
<p className="pt-1 text-sm dark:text-blue-300">January 16th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://youtu.be/ocllb5KEXZk"
Expand Down Expand Up @@ -267,7 +267,7 @@ const tips: NewYearTip[] = [
<h3 className="text-xl font-semibold">
Nx Agents: The Next Leap in Distributed Task Execution
</h3>
<p className="pt-5 text-sm">January 17th</p>
<p className="pt-1 text-sm">January 17th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://youtu.be/XLOUFZeqRpM"
Expand Down Expand Up @@ -310,7 +310,7 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">Graduating to a Monorepo</h3>
<p className="pt-5 text-sm">January 18th</p>
<p className="pt-1 text-sm">January 18th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://www.youtube.com/watch?v=ztNpLf2Zl-c"
Expand Down Expand Up @@ -343,7 +343,7 @@ const tips: NewYearTip[] = [
cardBack: (
<FlipCardBack>
<h3 className="text-xl font-semibold">Keep Your Tooling Up to Date</h3>
<p className="pt-5 text-sm">January 19th</p>
<p className="pt-1 text-sm">January 19th</p>
<div className="mx-auto my-4 max-w-3xl">
<YouTube
src="https://youtu.be/Ss6MfcXi0jE"
Expand Down Expand Up @@ -449,7 +449,7 @@ export default function NewYear(): JSX.Element {
</article>
</div>
</div>
<div className="w-full bg-gradient-to-r from-cyan-500 to-blue-500">
<div className="w-full bg-gradient-to-r from-cyan-500 to-blue-500 dark:from-cyan-800 dark:to-blue-800">
<div
id="new-year"
className="py-18 mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"
Expand Down
8 changes: 3 additions & 5 deletions nx-dev/ui-common/src/lib/flip-card.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { ChevronDoubleDownIcon } from '@heroicons/react/24/outline';
import cx from 'classnames';
import { ReactNode, createContext, useState } from 'react';
import { computeEmbedURL } from './youtube.component';

const FlipCardContext = createContext<{
fullDate: string;
Expand Down Expand Up @@ -53,8 +51,8 @@ export function FlipCard({
flipped ? 'my-rotate-y-180 bg-white dark:bg-slate-800' : '',
isFlippable
? flipped
? 'border-slate-300 dark:border-slate-800'
: 'border-slate-300 dark:border-slate-800 hover:[transform:rotateY(10deg)]'
? 'border-blue-400 dark:border-slate-800'
: 'border-blue-400 dark:border-slate-800 hover:[transform:rotateY(10deg)]'
: 'border-1 border-slate-300 dark:border-slate-800'
)}
>
Expand All @@ -77,7 +75,7 @@ export function FlipCardFront({ children }: { children: ReactNode }) {
export function FlipCardBack({ children }: { children: ReactNode }) {
return (
<FlipCardContext.Consumer>
{({ fullDate }) => (
{() => (
<div className="my-rotate-y-180 backface-hidden w-full h-full overflow-hidden rounded-md dark:text-slate-100 text-slate-900 text-3xl dark:bg-slate-800 bg-white">
<div className="p-4 text-sm sm:text-sm md:text-sm lg:text-lg">
{children}
Expand Down

0 comments on commit 48bcb53

Please sign in to comment.