Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dormcon sticker logo to front page :) #432

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type * as Preset from "@docusaurus/preset-classic";

const config: Config = {
title: "DormCon",
tagline: "MIT's Dormitory Council",
tagline: "Welcome to MIT's Dormitory Council!",
url: "https://dormcon.mit.edu",
baseUrl: "/",
onBrokenLinks: "throw",
Expand Down
51 changes: 33 additions & 18 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,24 +159,39 @@ export default function Home() {
description={siteConfig.tagline}
>
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container">
{/* <span className="badge badge--secondary">
Happening Now
</span> */}
<Heading as="h1" className="hero__title">
{header.title}
</Heading>
<p className="hero__subtitle">{header.subtitle}</p>
<div className={styles.buttons}>
<Link
className={clsx(
"button button--secondary button--lg",
styles.getStarted,
)}
to={header.buttonLink}
>
{header.button}
</Link>
<div className="container padding-top--lg padding-bottom--lg">
<div className="row">
<div className={clsx(styles.leftHero, "col")}>
<Heading as="h1" className="hero__title">
{header.title}
</Heading>
<p
className={clsx(
"hero__subtitle",
styles.heroSubtitle,
)}
>
{header.subtitle}
</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to={header.buttonLink}
>
{header.button}
</Link>
</div>
</div>

<div className="col">
<img
className={styles.featureSvg}
alt="DormCon!"
src={"img/dormcon-sticker.svg"}
height="80%"
style={{ paddingTop: "20px" }}
/>
</div>
</div>
</div>
</header>
Expand Down
35 changes: 24 additions & 11 deletions src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
*/

.heroBanner {
padding: 4rem 0;
padding: 4rem 12rem 0rem 12rem;
text-align: center;
position: relative;
overflow: hidden;
display: flex;
}

@media screen and (max-width: 966px) {
Expand All @@ -18,6 +19,28 @@
}
}

.heroSubtitle {
text-align: left;
}
@media screen and (max-width: 966px) {
.heroSubtitle {
text-align: center;
}
}

.leftHero {
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-direction: column;
}
@media screen and (max-width: 966px) {
.leftHero {
text-align: center;
align-items: center;
}
}

.buttons {
display: flex;
align-items: center;
Expand All @@ -35,13 +58,3 @@
height: 200px;
width: 200px;
}

.heroButton {
background-position: 0%;
background-size: 200% 100%;
}

.heroButton:hover {
background-position-x: 100%;
transform: scale(1.1);
}
Loading