Skip to content

Commit

Permalink
feature: ZotHacks Title SVG animation (#80)
Browse files Browse the repository at this point in the history
* feat: svg animation rough draft

* update: increase stroke width

* update: new svg

* update: added timing to opacity

* update: switched to animate to create stagger

* fix: adjusted timings

* fix: timing

* fix: more timing adjustments

* fix: type issues with initial variant

* fix: responsive svg

* fix: removed old title svg

* fix: added useEffect dep

* fix: remove unused imports

* fix: adjusted clamp

* update: refactored animated title

fix: visually hidden title

update: refactored animated title

Use lined paper vector and remove unnecessary nav (#62)

* fix: use lined paper vector and remove unnecessary nav

* fix: stick nav bar to top of screen

* fix: remove sticky navbar for mobile

---------

Co-authored-by: Sam Der <sder@uci.edu>

fix: change resources PNGs to SVGs

hotfix: heart and star sticker positioning

Add ZotHacks Open Graph Properties (#71)

* feat: add OG image

* fix: use opengraph-image for OG generation

Create Sanity resources schema (#91)

* feat: resource schema

* feat: icon, preview, and color field description

update: TikTok logo and improved alt text (#83)

* update: TikTok logo and improved alt text

* fix: switch to svg version

fix: use container spacing for resource page (#79)

* fix: use container spacing for resource page

* temp: fix row/col setup

* remove col div

update: remove apply links and mentor section (#89)

* update: remove apply links and mentor section

* fix: restore apply button, adjust wording

* fix: disabled mentor apply button

* update: zothacks 2023

* fix: removed extra import

* fix: added variant type

* fix: changed import path

* fix: added ease and moved component

* Feature: SVG ZotHacks Title animation

* update: created getSchedule file

* update: synced sanity data with schedule component

* feat: update event schema

* feat: group events by day

* feat: format date ranges

* fix: group events by America/Los_Angeles day

* fix: event order asc

* fix: remove resources from nav

---------

Co-authored-by: Tyler Yu <tyleryy@uci.edu>

Fix frontend issues on resources page (#103)

* fix: backend description text overflow

* feat: new ResourceCard component

removed unused assets

* fix: key prop error

* fix: remove unused components

* fix: references to unused images

* refactor: short-circuit and color fixes

* Fix transformed filter glitches for webkit

- Include `translateZ(0)` when applying transform to drop shadow filter

---------

Co-authored-by: Taesung Hwang <taesungh@uci.edu>

fix: title and location mobile alignment (#109)

feat: frontend resources section

feat: starter packs section

removed placeholder config files

feat: add day of week to schedule (#110)

* feat: add day of week to schedule

* fix: replace weekday list with date format

* fix: long month and date format

update: restore resources link in navbar

fix: timezone inconsistencies (#119)

* fix: timezone inconsistencies

* fix: timezone inconsistencies

fix: backend resources grid issue

feature: clipboard paper animation (#116)

undefined

Feature/clipboard animation update (#123)

* feature: clipboard paper animation

* fix: padding adjustment on date

* fix: border radius and page animation update

feat: incident response form

fix: remove open in new window icon

Setup animated countdown on schedule page (#93)

* setup: basic framer countdown

* fix: removed useRef, changed animation exit value

* update: temporarily disabled slide up animation

* fix: conditional day render

* fix: precompute time

* fix: margin for the countdown

* update: added loading bar

* fix: rename to Loader

* feat: time until hacking countdown timer

* fix: clipboard styling

---------

Co-authored-by: Tyler Yu <tyleryy@uci.edu>
Co-authored-by: Alexander Liu <a@alexanderliu.com>

fix: match time zones on server and client

fix: missing date-fns-tz import (#126)

fix: disable page scroll x (#125)

refactor: move homepage from views folder to app folder

refactor: convert components to arrow functions and reexport

feat: devpost

fix: changed import path

fix: added ease and moved component

* fix: unused asset

---------

Co-authored-by: Alexander Liu <a@alexanderliu.com>
  • Loading branch information
tyleryy and alexanderl19 committed Nov 3, 2023
1 parent 624e458 commit 8cfc6af
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/site/src/app/(home)/sections/Landing/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use client";

import ApplyButton from "./ApplyButton";

import Title from "@/app/(home)/sections/Landing/Title";
import styles from "./Landing.module.scss";

const Landing = () => {
return (
<div className={styles.landing}>
<h1>ZotHacks 2023</h1>
<Title />
<h1 className="visually-hidden">ZotHacks 2023</h1>
<p className="fs-2">November 4&ndash;5</p>
<ApplyButton />
</div>
Expand Down
4 changes: 4 additions & 0 deletions apps/site/src/app/(home)/sections/Landing/Title.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.title {
width: clamp(18rem, 50vw, 40rem);
height: clamp(5rem, 10vw, 10rem);
}
59 changes: 59 additions & 0 deletions apps/site/src/app/(home)/sections/Landing/Title.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { cubicBezier, motion, Variants } from "framer-motion";
import styles from "./Title.module.scss";

export default function Title() {
const container: Variants = {
hidden: { pathLength: 0, strokeOpacity: 0 },
show: {
pathLength: 1,
strokeOpacity: 1,

transition: {
staggerChildren: 0.2,
pathLength: {
duration: 0.6,
ease: cubicBezier(0.5, 1, 0.89, 1),
},
strokeOpacity: {
duration: 0.05,
},
},
},
};

const pathArray = [
"M13.2626 24.6289C13.2626 24.6289 65.0386 15.3905 61.8594 21.7115C58.6801 28.0325 2.72028 74.2626 7.26204 82.0423C11.8038 89.8221 55.525 82.0423 55.525 82.0423",
"M88.3203 71.316C85.3762 46.469 103.532 37.6689 109.911 36.1162C116.29 34.5635 142.787 34.0457 145.731 58.8924C148.675 83.7392 126.594 91.504 121.687 92.0214C116.781 92.5388 91.2644 96.1629 88.3203 71.316Z",
"M189.964 17.5C187.248 47.9206 189.065 61.7944 189.964 94.5M170 40.6429C187.656 37.7709 197.377 36.5329 213 37.8878",
"M248 15.5C248.793 47.0834 247.924 64.6007 244 95.5M301.5 17.1C296.996 46.2811 296.295 62.1766 296.5 90.1667M237 56.0333C264.503 54.3299 279.647 54.2127 306 56.0333",
"M381.53 36.5C380.715 47.7638 379.827 56.9323 380.061 65.3365M383 92.1132C381.676 81.6267 380.3 73.8676 380.061 65.3365M380.061 65.3365C380.061 65.3365 380.261 61.4231 379.41 56.5825M379.41 56.5825C379.41 44.2241 373.405 37.2588 359.475 38.5597C337.419 40.6195 331.536 71.5157 332.028 76.6651C333.01 96.2327 350.164 96.7476 354.575 94.6879C368.592 88.3883 374.23 80.4431 379.41 56.5825Z",
"M451.38 39.3C451.38 39.3 419.067 21.6177 413.447 62.5396C407.828 103.461 457 83.7583 457 83.7583",
"M490.982 7C490.891 24.5109 491.906 42.0631 490.982 55.814M486.5 92.5C487.849 79.7653 490.31 65.8211 490.982 55.814M490.982 55.814C506.922 51.8494 517.958 46.6541 530.5 40M490.982 55.814C507.621 70.3065 523.27 79.05 539.5 90.5",
"M597.132 43.2929C591.005 37.6958 569.126 36.7629 569.126 51.2233C569.126 65.6837 605 65 599 83.5C593 102 571.752 96.4701 563 81.5432",
"M659.154 33.5719C659.154 33.5719 682.655 9.5722 696.154 27.572C709.652 45.5718 687.445 61.0731 679.654 66.572C671.863 72.071 660.654 84.5718 658.154 91.571C655.654 98.5702 684.155 85.5718 704.655 91.571",
"M732.154 63.0719C732.154 63.0719 736.654 25.572 770.154 24.572C803.654 23.572 802.655 60.5719 802.655 60.5719C802.655 60.5719 802.654 95.5724 767.154 97.5719C731.654 99.5714 732.154 63.0719 732.154 63.0719Z",
"M831.308 33.766C831.308 33.766 854.809 9.7663 868.308 27.7661C881.806 45.7659 859.599 61.2672 851.808 66.7661C844.016 72.2651 832.808 84.7659 830.308 91.7651C827.808 98.7643 856.309 85.7659 876.809 91.7651",
"M908.654 26.5731C908.654 26.5731 933.654 6.07214 948.154 25.0721C957.654 47.072 925.154 51.5736 925.654 53.5731C926.154 55.5726 958.654 53.5731 951.654 81.572C934.654 109.572 903.654 90.5731 903.654 90.5731",
];

return (
<motion.svg
xmlns="http://www.w3.org/2000/svg"
width="960"
height="105"
viewBox="0 0 960 105"
fill="none"
strokeWidth="14"
stroke="black"
strokeLinecap="round"
variants={container}
initial="hidden"
animate="show"
className={styles.title}
>
{pathArray.map((path: string) => (
<motion.path key={path} variants={container} d={path} />
))}
</motion.svg>
);
}
14 changes: 14 additions & 0 deletions apps/site/src/assets/images/ZotHacks 2023.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8cfc6af

Please sign in to comment.