Skip to content

Commit

Permalink
fix day-of-weeks.component.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
acayseth committed Aug 18, 2023
1 parent 69ac26f commit 0213c84
Show file tree
Hide file tree
Showing 8 changed files with 229 additions and 50 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"clean": "rimraf .next node_modules && yarn cache clean && yarn install"
},
"dependencies": {
"axios": "^1.4.0",
Expand All @@ -25,6 +26,7 @@
"@types/react-dom": "18.2.7",
"autoprefixer": "10.4.14",
"postcss": "8.4.25",
"rimraf": "^5.0.1",
"sharp": "^0.32.4",
"tailwindcss": "3.3.2",
"typescript": "5.1.6"
Expand Down
3 changes: 2 additions & 1 deletion src/_libs/clients/friday.hook.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use client';

import { EDaysOfWeek } from '@/types/enums/days-of-week';
import moment from 'moment';
import { useEffect, useState } from 'react';

import { EDaysOfWeek } from '@/types/enums/days-of-week';

export function useTimeLeft() {
const [leftTime, setLeftTime] = useState<number>(0);

Expand Down
1 change: 0 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import '@/app/globals.css';

import NavbarComponent from '@/components/ui/navbar/navbar.component';
import StandWithUkraineComponent from '@/components/ui/stand-with-ukraine/stand-with-ukraine.component';
import Ga4Component from '@/components/ui/ga4/ga4.component';

const inter = Inter({ subsets: ['latin'] });

Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/day-of-week/day-of-week.component.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use client';

import { useFriday } from '@/_libs/clients/friday.hook';
import clsx from 'clsx';
import React from 'react';

import { useFriday } from '@/_libs/clients/friday.hook';

export default function DayOfWeekComponent() {
const { daysOfWeek, isFriday } = useFriday();
return (
Expand Down
5 changes: 3 additions & 2 deletions src/components/ui/day-of-week/day-of-weeks.component.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use client';

import { useFriday } from '@/_libs/clients/friday.hook';
import clsx from 'clsx';
import React, { Fragment } from 'react';

import { useFriday } from '@/_libs/clients/friday.hook';

export default function DayOfWeeksComponent() {
const { daysOfWeekNum } = useFriday();
const dayOfWeeks = [
Expand All @@ -18,7 +19,7 @@ export default function DayOfWeeksComponent() {

return (
<section className="flex justify-center align-middle items-center py-0.5 my-2">
<div className="w-1/2 px-5">
<div className="w-2/4 px-5">
<div className="grid grid-rows-7 grid-flow-col gap-4">
{dayOfWeeks.map((v) => (
<Fragment key={v.id}>
Expand Down
20 changes: 0 additions & 20 deletions src/components/ui/ga4/ga4.component.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,6 @@ module.exports = {
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
keyframes: {
wave: {
'0%': {transform: 'rotate(0.0deg)'},
'10%': {transform: 'rotate(14deg)'},
'20%': {transform: 'rotate(-8deg)'},
'30%': {transform: 'rotate(14deg)'},
'40%': {transform: 'rotate(-4deg)'},
'50%': {transform: 'rotate(10.0deg)'},
'60%': {transform: 'rotate(0.0deg)'},
'100%': {transform: 'rotate(0.0deg)'},
},
fadeOut: {
'0%': {transition: 'visibility 0s 2s, opacity 2s linear'},
'100%': {transform: 'linear'},
},
},
animation: {
fade: 'fadeOut 5s ease-in-out',
'waving-hand': 'wave 2s linear infinite',
},
},
},
plugins: [
require('autoprefixer'),
require('tailwindcss'),
Expand Down

0 comments on commit 0213c84

Please sign in to comment.