Skip to content

Commit a701bf6

Browse files
committed
style: emphasize 'Back to Home' buttons with new btn-brutal component
1 parent 825894b commit a701bf6

2 files changed

Lines changed: 45 additions & 7 deletions

File tree

src/App.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ const ProjectsView = () => {
154154
>
155155
<button
156156
onClick={() => navigate('/')}
157-
className="pill"
158-
style={{ marginBottom: '2rem', cursor: 'pointer', display: 'flex', alignItems: 'center', gap: '0.5rem' }}
157+
className="btn-brutal"
158+
style={{ marginBottom: '2rem' }}
159159
>
160-
<ArrowLeft size={18} /> BACK HOME
160+
<ArrowLeft size={18} /> BACK TO HOME
161161
</button>
162162

163163
<h1 style={{ fontSize: '3.5rem', fontWeight: 900, marginBottom: '2rem' }}>PROJECTS</h1>
@@ -229,8 +229,7 @@ const ProjectDetailView = () => {
229229
<div className="brutal-action-bar">
230230
<button
231231
onClick={() => navigate('/projects')}
232-
className="pill"
233-
style={{ cursor: 'pointer', display: 'flex', alignItems: 'center', gap: '0.5rem', margin: 0 }}
232+
className="btn-brutal"
234233
>
235234
<ArrowLeft size={18} /> BACK TO PROJECTS
236235
</button>
@@ -548,8 +547,7 @@ const PostView = () => {
548547
<div className="brutal-action-bar">
549548
<button
550549
onClick={() => navigate('/')}
551-
className="pill"
552-
style={{ cursor: 'pointer', display: 'flex', alignItems: 'center', gap: '0.5rem', margin: 0 }}
550+
className="btn-brutal primary"
553551
>
554552
<ArrowLeft size={18} /> BACK TO HOME
555553
</button>

src/index.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,46 @@ body {
210210
color: var(--bg);
211211
}
212212

213+
.btn-brutal {
214+
display: inline-flex;
215+
align-items: center;
216+
gap: 0.75rem;
217+
padding: 0.8rem 1.5rem;
218+
border: 4px solid var(--border);
219+
background: var(--card-bg);
220+
color: var(--fg);
221+
font-family: var(--font-main);
222+
font-weight: 900;
223+
text-transform: uppercase;
224+
letter-spacing: 0.05em;
225+
cursor: pointer;
226+
box-shadow: 4px 4px 0 var(--shadow);
227+
transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
228+
position: relative;
229+
font-size: 0.9rem;
230+
}
231+
232+
.btn-brutal:hover {
233+
transform: translate(-2px, -2px);
234+
box-shadow: 6px 6px 0 var(--shadow);
235+
background: var(--accent-1);
236+
color: #000;
237+
}
238+
239+
.btn-brutal:active {
240+
transform: translate(2px, 2px);
241+
box-shadow: 0px 0px 0 var(--shadow);
242+
}
243+
244+
.btn-brutal.primary {
245+
background: var(--accent-1);
246+
color: #000;
247+
}
248+
249+
.btn-brutal.primary:hover {
250+
background: var(--accent-2);
251+
}
252+
213253
/* Tag cloud */
214254
.tag-cloud {
215255
display: flex;

0 commit comments

Comments
 (0)