Skip to content

Commit

Permalink
🚧 change font + about page style
Browse files Browse the repository at this point in the history
  • Loading branch information
thrzl committed Mar 21, 2023
1 parent c55c29c commit 2e33c39
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 20 deletions.
7 changes: 7 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@
animation-delay: var(--delay);
animation-fill-mode: forwards;
}

@font-face {
font-family: "Inter";
src: url("Inter.var.woff2") format("woff2 supports variations"),
url("Inter.var.woff2") format("woff2-variations");
font-weight: 100 1000;
}
12 changes: 12 additions & 0 deletions src/components/Rise.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script lang="ts">
export let text: string;
export let _class: string = "";
export let text_class: string = "";
</script>

<div class={`rise-wrapper whitespace-pre w-fit ${_class}`}>
{#each text.split(" ") as word, index}
<p class={`rise-anim md:inline-flex block text-xl mr-1 decoration-none duration-250 ${text_class}`} style={`--delay: ${index * 200 + 100}ms`}
>{`${word}`}</p>
{/each}
</div>
12 changes: 6 additions & 6 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<script>
import Background from "../components/Background.svelte";
import Rise from "../components/Rise.svelte";
let links = [
{ href: "/", text: "Home" },
{ href: "/about", text: "About" },
{ href: "/contact", text: "Contact" },
{ href: "/stats", text: "Stats" },
];
</script>
<Background/>

<div class="h-screen w-screen" style="font-family: Array-Wide">
<div class="h-screen w-screen" style="font-family: Inter">
<header class="mx-auto flex flex-col items-center justify-center text-white lg:max-w-screen-xl w-screen h-screen m-auto">
<div class="text-left w-2/3">
<h1 class="text-2xl my-0 cursor-emoji-magic">TEAM ILLUSION</h1>
<p class="text-7xl my-0 text-transparent bg-clip-text bg-gradient-to-r from-blue-500 to-purple-500 cursor-emoji-robotics">CMIT's official VEX and FIRST robotics team.</p>
<div class="rise-wrapper whitespace-pre w-fit">
<p class="text-neutral-400 hover:text-white duration-50 text-2xl my-0 font-800 -spacing-1">TEAM ILLUSION</p>
<p class="text-7xl my-0 text-transparent bg-clip-text bg-gradient-to-r from-blue-500 to-purple-500 font-800 -spacing-3">CMIT's official VEX and FIRST robotics team.</p>
<div class="rise-wrapper whitespace-pre w-fit font-800 -spacing-1">
{#each links as {href, text}, index}
<a href={href} class="rise-anim md:inline-flex block text-neutral-400 text-xl mr-5 decoration-none hover:text-white duration-250" style={`--delay: ${index * 200 + 100}ms; font-family: Array-Wide`}
<a href={href} class="rise-anim md:inline-flex block text-neutral-400 text-xl mr-5 decoration-none hover:text-white duration-250" style={`--delay: ${index * 200 + 100}ms`}
>{`${text}`}</a
>
{/each}
Expand Down
32 changes: 18 additions & 14 deletions src/routes/about/+page.mdx
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
---
title: Smoke and Mirrors
date: '2023-4-2'
image: /images/how-i-built-hero.webp
image: /about.webp
abstract: ''
---
<script>
import Background from "../../components/Background.svelte";
</script>

<Background text="ABOUTUS"/>
<div class="h-screen w-screen px-0 m-0" style="font-family: Array-Wide">
<header class="mx-auto flex flex-col items-center text-white lg:max-w-screen-xl w-screen h-screen">
<div class="h-screen w-screen px-0 m-0" style="font-family: Inter">
<header class="mx-auto flex flex-col items-center text-white lg:max-w-screen-xl w-screen" style={`background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), linear-gradient(rgba(2, 0, 36, 0) 0%, rgb(0, 0, 0) 100%), url(${image})`}>
<div class="text-left w-2/3 mt-20">
<h1 class="text-2xl my-0">{date}</h1>
<p class="text-7xl my-0 text-transparent bg-clip-text bg-gradient-to-r from-blue-500 to-purple-500">{title}</p>
<div class="rise-wrapper whitespace-pre w-fit font-800 -spacing-1 text-purple">
{#each title.split(" ") as word, index}
<p class="rise-anim md:inline-flex block text-7xl my-0 font-800 -spacing-3 mt-6" style={`--delay: ${index * 200 + 100}ms`}
>{`${word}`}{index !== title.length-1 ? " " : ""}</p>
{/each}
</div>
<hr class="my-10 border-neutral-700"/>
<div class="prose text-lg">
At Team Illusion, we believe in the power of innovation, collaboration, transparency, and creativity to achieve our goals. Our team is more than just a robotics club-- it is a community of like-minded individuals who share a passion for science, technology, engineering, and mathematics.

We are committed to pushing the boundaries of what is possible in the field of robotics. We believe that technology can be used to make the world a better place, and we strive to create robots that can solve real-world problems. Our focus is on developing robots that are not only functional but also aesthetically pleasing and inspiring.
</div>
</header>
<div class="prose text-xl text-white w-1/3 mx-auto">
At Team Illusion, we believe in the power of innovation, collaboration, transparency, and creativity to achieve our goals. Our team is more than just a robotics club-- it is a community of like-minded individuals who share a passion for science, technology, engineering, and mathematics.

As a team, we value teamwork, communication, and leadership. We believe that every member of our team has a unique set of skills and talents that can contribute to our success. We encourage our members to think creatively, to take risks, and to learn from their failures.
We are committed to pushing the boundaries of what is possible in the field of robotics. We believe that technology can be used to make the world a better place, and we strive to create robots that can solve real-world problems. Our focus is on developing robots that are not only functional but also aesthetically pleasing and inspiring.

We believe in the power of competition to drive innovation and excellence. We participate in competitions and events to test our skills and to learn from other teams. We also believe in giving back to our community by sharing our knowledge and expertise with others.
As a team, we value teamwork, communication, and leadership. We believe that every member of our team has a unique set of skills and talents that can contribute to our success. We encourage our members to think creatively, to take risks, and to learn from their failures.

We believe that robotics can be used to make a positive impact on the world. Whether it is through developing robots that can assist with disaster relief, improving the quality of life for people with disabilities, or exploring new frontiers in space, we are committed to using our skills and expertise to make a difference.
</div>
</div>
</header>
We believe in the power of competition to drive innovation and excellence. We participate in competitions and events to test our skills and to learn from other teams. We also believe in giving back to our community by sharing our knowledge and expertise with others.

We believe that robotics can be used to make a positive impact on the world. Whether it is through developing robots that can assist with disaster relief, improving the quality of life for people with disabilities, or exploring new frontiers in space, we are committed to using our skills and expertise to make a difference.
</div>
</div>
Binary file added static/Inter.var.woff2
Binary file not shown.
Binary file added static/about.webp
Binary file not shown.
Binary file added static/inter-v-webfont.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineConfig({
rules: [
// cursor
[/^cursor-emoji-(\w+)$/, ([, w]) => ({ cursor: `url('/emojis/${w}.webp') 64 64, auto` })],
[/^spacing-(\d)$/, ([, d]) => ({ 'letter-spacing': `${d}px` })]
]
})]
});

0 comments on commit 2e33c39

Please sign in to comment.