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

Create description component #934

Merged
merged 3 commits into from
Oct 18, 2023
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
67 changes: 67 additions & 0 deletions src/routes/(site)/6/desc.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<section class="desc-container">
<div class="desc-inner-container">
<img src="/assets/png/chip-holding-laptop.png" alt="Chip the Capybara holding a laptop" />
<div class="desc-text">
<h1 class="brand-header size-xl">Bringing you the true Computer Science Experience</h1>
<p>
We are a chapter club of the Association for Computing Machinery organization. Our goal is
to expose passionate people of all levels to grow their skills in a collaborative community.
</p>
</div>
</div>
</section>

<style>
section {
display: grid;
}

section .desc-inner-container {
display: grid;
grid-template-columns: 1fr;
align-items: center;
gap: 1em;
}

section .desc-inner-container .desc-text {
display: grid;
align-items: center;
text-align: center;
}

section .desc-inner-container .desc-text p {
margin: 1em;
font-size: var(--size-md);
}

section .desc-inner-container img {
max-width: clamp(20rem, 17.342rem + 10.13vw, 30rem);
justify-self: center;
}

@media screen and (min-width: 768px) {
section {
display: grid;
place-items: center;
align-items: center;
max-width: 1280px;
margin: 0 auto;
}

section .desc-inner-container {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 4em;
}

section .desc-inner-container .desc-text {
text-align: start;
}

section .desc-inner-container .desc-text p {
font-size: var(--size-lg);
margin: 0;
}
}
</style>
1 change: 0 additions & 1 deletion src/routes/(site)/6/hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
var(--acm-purple),
var(--acm-pink)
);
-webkit-background-clip: text;
color: transparent;
}

Expand Down
Binary file added static/assets/png/chip-holding-laptop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading