Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanBonsignori committed Jun 15, 2024
1 parent 9e8f190 commit a3316d5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
20 changes: 17 additions & 3 deletions client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ body {
padding: 0;
}

.caution-tape {
.wip-warning {
position: relative;
color: #fff;
background-color: crimson;
display: flex;
justify-content: center;
align-items: center;
}

.caution-tape a {
.wip-warning div {
padding: 10px;
font-size: 1.2rem;
}

.wip-warning a {
text-decoration: underline;
}

Expand All @@ -30,11 +37,18 @@ body {
gap: 40px;
}

.hero-section img {
.hero-image-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 500px;
}

.typed {
color: #f27d42;
}

.hero-text h2 {
font-size: 2.5rem;
font-weight: 700;
Expand Down
6 changes: 3 additions & 3 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ ReactDOM.createRoot(document.getElementById("root")!).render(
<QueryClientProvider client={queryClient}>
<ThemeProvider theme={theme}>
<CssBaseline />
<div className="caution-tape">
⚠️ This site is a work in progress and many features may not work yet!
&nbsp;
<div className="wip-warning">
<div>⚠️</div>&nbsp;This site is a work in progress. Many features may
not work yet! &nbsp;
<a target="_blank" href="https://github.com/EthanBonsignori/uservote">
View it on GitHub.
</a>
Expand Down
6 changes: 4 additions & 2 deletions client/src/routes/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ const Root: FC = () => {
return (
<Layout>
<div className="hero-section">
<img src={feedbackImg} alt="UserVote" className="hero-image" />
<div className="hero-image-container">
<img src={feedbackImg} alt="UserVote" className="hero-image" />
</div>
<div className="hero-text">
<Typography variant="h2">Collect feedback.</Typography>
<Typography variant="h2">
Engage your <span className="" ref={typedRef} />
Engage your <span className="typed" ref={typedRef} />
</Typography>
<Typography>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
Expand Down

0 comments on commit a3316d5

Please sign in to comment.