-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
begin projects page. basic layout and mapping is set up. just needs s…
…tyling magic
- Loading branch information
Showing
2 changed files
with
107 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
import '../styles/reset.css' | ||
import '../styles/index.css' | ||
import '../styles/App.css' | ||
import BaseLayout from '../layouts/base.astro' | ||
import Join from '../components/join.astro' | ||
import { competitiveTeams, combatTeams } from '../data' | ||
--- | ||
|
||
<BaseLayout title="Projects"> | ||
<div | ||
class="main-container" | ||
style="padding-top: 200px; display: flex; background: linear-gradient(#230508 70%, var(--text-dark));" | ||
> | ||
<div | ||
class="projects-container" | ||
style="margin: auto; max-width: 50em; width: 100%; display: flex; flex-direction: column; gap: 2em; padding: 0 2em;" | ||
> | ||
<div class="projects-header" style="margin: auto; justify-content:center"> | ||
<h1>Projects</h1> | ||
<h2>Subtitle here</h2> | ||
</div> | ||
<div class="comp-robotics"> | ||
<h2>Competitive Robotics</h2> | ||
<div | ||
class="grid-container" | ||
style="display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 20px;" | ||
> | ||
{ | ||
competitiveTeams.map((team) => ( | ||
<div | ||
class="project-card" | ||
style="background-image: url('image-url-1'); background-size: cover; background-position: center;" | ||
> | ||
<p>{team.name}</p> | ||
<a href={team.href}>Click me!</a> | ||
</div> | ||
)) | ||
} | ||
</div> | ||
</div> | ||
|
||
<div class="comb-robotics"> | ||
<h2>Combat Robotics</h2> | ||
<div | ||
class="grid-container" | ||
style="display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 20px;" | ||
> | ||
{ | ||
combatTeams.map((team) => ( | ||
<div | ||
class="project-card" | ||
style="background-image: url('image-url-1'); background-size: cover; background-position: center;" | ||
> | ||
<p>{team.name}</p> | ||
<a href={team.href}>Click me!</a> | ||
</div> | ||
)) | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
<div></div> | ||
</div> | ||
<Join theme="light" /> | ||
</BaseLayout> |