Skip to content

Commit ba5a702

Browse files
committed
added temp footer
1 parent 05aec8b commit ba5a702

File tree

9 files changed

+232
-69
lines changed

9 files changed

+232
-69
lines changed

src/components/Content.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Card from "./ui/Card.astro";
1616
import Figma from '../assets/figma.png';
1717
1818
import CardContent from "./ui/cardContent.astro";
19+
import CardSubmit from "./ui/cardSubmit.astro";
1920
---
2021
<!--TODO: FIGURE OUT BETTER WAY TO DO THE IMAGES!-->
2122
<script>
@@ -193,7 +194,7 @@ import CardContent from "./ui/cardContent.astro";
193194
<!--News-->
194195
<div class="item show news">
195196
<p class="labelText">NEWS</p>
196-
<CardContent label="NEWSLETTER" title="Webflow Blog" func="Web Design Blog"
197+
<CardContent label="NEWS" title="Webflow Blog" func="Web Design Blog"
197198
src={WebflowBlog}
198199
href="https://webflow.com/blog/?ref=repo.cheddzy.com"/>
199200
</div>
@@ -257,6 +258,10 @@ import CardContent from "./ui/cardContent.astro";
257258
src={ui8}
258259
href="https://ui8.net/?ref=repo.cheddzy.com"/>
259260
</div>
261+
262+
</div>
263+
<div class="show other">
264+
<CardSubmit />
260265
</div>
261266

262267
</section>

src/components/Hero.astro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,10 @@ import LogInButton from "./buttons/LogInButton.astro";
7070
color: #6F737A;
7171
}
7272

73+
@media screen and (max-width: 768px) {
74+
h1 {
75+
font-size: 3rem !important;
76+
}
77+
}
78+
7379
</style>

src/components/MainFooter.astro

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,27 @@
66
<footer>
77

88

9+
<small>
10+
Developed by <a href="https://cheddzy.com/">Shachar MW</a> © 2024
11+
</small>
912

1013

14+
</footer>
1115

12-
</footer>
16+
17+
<style>
18+
19+
footer {
20+
display: flex;
21+
align-items: center;
22+
justify-content: center;
23+
height: 8rem;
24+
background-color: #1E1F22;
25+
color: #96aee0;
26+
}
27+
a {
28+
text-decoration: underline;
29+
text-decoration-color: #3574F0;
30+
}
31+
32+
</style>

src/components/MainHeader.astro

Lines changed: 75 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,128 @@
11
---
2-
32
import ActionButton from "./buttons/ActionButton.astro";
43
import GenericButton from "./buttons/GenericButton.astro";
54
import HeaderAlert from "./HeaderAlert.astro";
5+
import SubmitButton from "./buttons/SubmitButton.astro";
66
---
77

8+
<script>
9+
const markEmpty = document.getElementById('bookmarkEmpty');
10+
const markFilled = document.getElementById('bookmarkFilled');
11+
12+
switch (localStorage.getItem('bookmark')) {
13+
case 'empty':
14+
makeEmpty();
15+
break;
16+
case 'filled':
17+
setTimeout(function() {
18+
makeFilled();
19+
}, 100)
20+
break;
21+
default:
22+
makeEmpty();
23+
localStorage.setItem('bookmark', 'empty')
24+
break;
25+
}
26+
27+
28+
function makeEmpty() {
29+
markEmpty.style.display = 'block';
30+
markFilled.style.display = 'none';
31+
}
32+
33+
function makeFilled() {
34+
markFilled.style.display = 'block';
35+
markEmpty.style.display = 'none';
36+
}
37+
38+
markEmpty.addEventListener('click', () => {
39+
makeFilled()
40+
localStorage.setItem('bookmark', 'filled')
41+
})
42+
markFilled.addEventListener('click', () => {
43+
makeEmpty()
44+
localStorage.setItem('bookmark', 'empty')
45+
})
46+
47+
</script>
848

949
<header>
1050
<div>
1151
<h1>
12-
<svg data-slot="icon" aria-hidden="true" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
13-
<path d="M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z" stroke-linecap="round" stroke-linejoin="round"></path>
52+
<svg id="bookmarkEmpty" data-slot="icon" aria-hidden="true" fill="none" stroke-width="1.5"
53+
stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
54+
<path d="M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"
55+
stroke-linecap="round" stroke-linejoin="round"></path>
56+
</svg>
57+
<svg id="bookmarkFilled" class="hide" data-slot="icon" aria-hidden="true" fill="#3574F0" viewBox="0 0 24 24"
58+
xmlns="http://www.w3.org/2000/svg">
59+
<path clip-rule="evenodd"
60+
d="M6.32 2.577a49.255 49.255 0 0 1 11.36 0c1.497.174 2.57 1.46 2.57 2.93V21a.75.75 0 0 1-1.085.67L12 18.089l-7.165 3.583A.75.75 0 0 1 3.75 21V5.507c0-1.47 1.073-2.756 2.57-2.93Z"
61+
fill-rule="evenodd"></path>
1462
</svg>
1563
the design repo
1664
</h1>
1765
<div class="menu">
1866

1967
<ActionButton
20-
buttonText='Submit your own!'
21-
href="/"
22-
target="_blank"
23-
label='Aria Label2'
68+
buttonText='Submit resources'
69+
href="/"
70+
label='Aria Label2'
71+
target="_blank"
2472
/>
2573

2674
</div>
2775
</div>
2876
</header>
29-
<HeaderAlert />
77+
<HeaderAlert/>
3078

3179

3280
<style>
3381

3482
.headerWrap {
3583
display: flex;
3684
}
85+
3786
.menu {
3887
display: flex;
3988
flex-direction: row;
4089
align-items: center;
4190
gap: 0.5rem;
4291
}
4392

93+
.hide {
94+
display: none;
95+
}
96+
4497
header :has(h1) {
4598
display: flex;
4699
flex-direction: row;
47100
justify-content: space-between;
48101
align-items: center;
49102
padding: 1.5rem 0 0 0;
50103
}
104+
51105
h1 {
52-
font-size: 1rem !important;
53106
display: flex;
54107
flex-direction: row;
55108
gap: 0.5rem;
56109
align-items: center;
110+
font-size: 1rem !important;
111+
}
112+
113+
#bookmarkFilled {
114+
animation: filledBookmark 200ms 1 ease-in-out;
57115
}
116+
@keyframes filledBookmark {
117+
0% {scale: 0.5;}
118+
80% {scale: 1.2;}
119+
100% {scale: 1;}
120+
}
121+
58122
svg {
59123
height: 1.2rem;
124+
color: #3574F0;
125+
cursor: pointer;
60126
}
61127

62128
header {

src/components/SubmitPreFooter.astro

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/components/buttons/ActionButton.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ const { buttonText, href, target, label } = Astro.props;
2727
@apply transition-colors;
2828
@apply duration-100;
2929

30+
font-weight: 500;
3031
font-size: 0.9rem;
31-
border: 1px rgba(87, 90, 102, 0.2) solid;
32+
border: 1px rgba(53, 115, 240, 0.25) solid;
3233
}
3334
a:hover {
34-
35+
background-color: #3574F0;
36+
border: #3574F0 1px solid;
37+
color: #f0f1f2;
3538
}
3639

3740
</style>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
3+
import '../../styles/styles.scss'
4+
import '../../styles/globals.scss'
5+
const { target, label } = Astro.props;
6+
---
7+
8+
<script>
9+
const button = document.getElementById('genericButton')
10+
11+
button.addEventListener('click', () => {
12+
13+
})
14+
</script>
15+
16+
<button id="genericButton" type="button" aria-label={label}>
17+
<a href='/' target={target}>
18+
19+
Submit or Request Resources
20+
</a>
21+
</button>
22+
23+
24+
<style>
25+
26+
button {
27+
display: flex;
28+
}
29+
30+
a {
31+
@apply px-6;
32+
@apply py-3;
33+
@apply rounded-full;
34+
@apply transition-all;
35+
@apply duration-100;
36+
color: #F0F1F2;
37+
font-size: 1rem;
38+
border: 2px #F0F1F2 solid;
39+
background: #1E1F22;
40+
outline: 2px transparent solid;
41+
font-weight: 600;
42+
43+
}
44+
@keyframes border-anim {
45+
0% {outline: 4px rgba(150, 174, 224, 0.25) dotted;}
46+
100% {outline: 2px #96aee0 solid;}
47+
}
48+
49+
a:hover {
50+
background: #3574F0;
51+
outline: 2px #96aee0 solid;
52+
animation: border-anim 0.2s 1 ease-out;
53+
}
54+
a:active {
55+
background: #3574F0;
56+
outline: 2px #3574F0 solid;
57+
}
58+
59+
</style>

0 commit comments

Comments
 (0)