Skip to content

Commit

Permalink
arbitrary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cheddZy committed Mar 5, 2024
1 parent 1e91dfb commit c52604a
Show file tree
Hide file tree
Showing 6 changed files with 164 additions and 28 deletions.
30 changes: 17 additions & 13 deletions src/components/Content.astro
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,24 @@ import CardSubmit from "./ui/cardSubmit.astro";
</svg>
<span id="newsAmount"></span>
</button>
<button class='filterButton' id="community" aria-label='News'><a>Community</a>

<button class='filterButton' id="community" aria-label='News'><a>Communities</a>
<svg data-slot="icon" aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M8.25 6.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM15.75 9.75a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM2.25 9.75a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM6.31 15.117A6.745 6.745 0 0 1 12 12a6.745 6.745 0 0 1 6.709 7.498.75.75 0 0 1-.372.568A12.696 12.696 0 0 1 12 21.75c-2.305 0-4.47-.612-6.337-1.684a.75.75 0 0 1-.372-.568 6.787 6.787 0 0 1 1.019-4.38Z" fill-rule="evenodd"></path>
<path d="M5.082 14.254a8.287 8.287 0 0 0-1.308 5.135 9.687 9.687 0 0 1-1.764-.44l-.115-.04a.563.563 0 0 1-.373-.487l-.01-.121a3.75 3.75 0 0 1 3.57-4.047ZM20.226 19.389a8.287 8.287 0 0 0-1.308-5.135 3.75 3.75 0 0 1 3.57 4.047l-.01.121a.563.563 0 0 1-.373.486l-.115.04c-.567.2-1.156.349-1.764.441Z"></path>
</svg>
<span id="communityAmount">0</span>
</button>

<button class='filterButton' id="studies" aria-label='News'><a>Studies</a>
<svg data-slot="icon" aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M11.7 2.805a.75.75 0 0 1 .6 0A60.65 60.65 0 0 1 22.83 8.72a.75.75 0 0 1-.231 1.337 49.948 49.948 0 0 0-9.902 3.912l-.003.002c-.114.06-.227.119-.34.18a.75.75 0 0 1-.707 0A50.88 50.88 0 0 0 7.5 12.173v-.224c0-.131.067-.248.172-.311a54.615 54.615 0 0 1 4.653-2.52.75.75 0 0 0-.65-1.352 56.123 56.123 0 0 0-4.78 2.589 1.858 1.858 0 0 0-.859 1.228 49.803 49.803 0 0 0-4.634-1.527.75.75 0 0 1-.231-1.337A60.653 60.653 0 0 1 11.7 2.805Z"></path>
<path d="M13.06 15.473a48.45 48.45 0 0 1 7.666-3.282c.134 1.414.22 2.843.255 4.284a.75.75 0 0 1-.46.711 47.87 47.87 0 0 0-8.105 4.342.75.75 0 0 1-.832 0 47.87 47.87 0 0 0-8.104-4.342.75.75 0 0 1-.461-.71c.035-1.442.121-2.87.255-4.286.921.304 1.83.634 2.726.99v1.27a1.5 1.5 0 0 0-.14 2.508c-.09.38-.222.753-.397 1.11.452.213.901.434 1.346.66a6.727 6.727 0 0 0 .551-1.607 1.5 1.5 0 0 0 .14-2.67v-.645a48.549 48.549 0 0 1 3.44 1.667 2.25 2.25 0 0 0 2.12 0Z"></path>
<path d="M4.462 19.462c.42-.419.753-.89 1-1.395.453.214.902.435 1.347.662a6.742 6.742 0 0 1-1.286 1.794.75.75 0 0 1-1.06-1.06Z"></path>
</svg>
<span id="studiesAmount">0</span>
</button>

<button class='filterButton' id="tool" aria-label='Design Tools'><a>Tools</a>
<svg data-slot="icon" aria-hidden="true" fill="currentColor" viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg">
Expand All @@ -138,9 +148,8 @@ import CardSubmit from "./ui/cardSubmit.astro";
id="toolAmount"></span></button>

<button class='filterButton' id="icons" aria-label='Icon Resources'><a>Icons</a>
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.67129 3.14634C4.47603 3.34161 4.47603 3.65819 4.67129 3.85345L7.14616 6.32833C7.34142 6.52359 7.65801 6.52359 7.85327 6.32833L10.3281 3.85345C10.5234 3.65819 10.5234 3.34161 10.3281 3.14634L7.85327 0.671471C7.65801 0.476209 7.34142 0.476209 7.14616 0.671471L4.67129 3.14634ZM7.49971 5.26766L5.73195 3.4999L7.49971 1.73213L9.26748 3.4999L7.49971 5.26766ZM8.67129 7.14634C8.47603 7.34161 8.47603 7.65819 8.67129 7.85345L11.1462 10.3283C11.3414 10.5236 11.658 10.5236 11.8533 10.3283L14.3281 7.85345C14.5234 7.65819 14.5234 7.34161 14.3281 7.14634L11.8533 4.67147C11.658 4.47621 11.3414 4.47621 11.1462 4.67147L8.67129 7.14634ZM11.4997 9.26766L9.73195 7.4999L11.4997 5.73213L13.2675 7.4999L11.4997 9.26766ZM4.67129 11.8535C4.47603 11.6582 4.47603 11.3416 4.67129 11.1463L7.14616 8.67147C7.34142 8.47621 7.65801 8.47621 7.85327 8.67147L10.3281 11.1463C10.5234 11.3416 10.5234 11.6582 10.3281 11.8535L7.85327 14.3283C7.65801 14.5236 7.34142 14.5236 7.14616 14.3283L4.67129 11.8535ZM5.73195 11.4999L7.49971 13.2677L9.26748 11.4999L7.49971 9.73213L5.73195 11.4999ZM0.671288 7.14649C0.476026 7.34175 0.476026 7.65834 0.671288 7.8536L3.14616 10.3285C3.34142 10.5237 3.65801 10.5237 3.85327 10.3285L6.32814 7.8536C6.5234 7.65834 6.5234 7.34175 6.32814 7.14649L3.85327 4.67162C3.65801 4.47636 3.34142 4.47636 3.14616 4.67162L0.671288 7.14649ZM3.49972 9.26781L1.73195 7.50005L3.49972 5.73228L5.26748 7.50005L3.49972 9.26781Z"
fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path>
<svg data-slot="icon" aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M12.963 2.286a.75.75 0 0 0-1.071-.136 9.742 9.742 0 0 0-3.539 6.176 7.547 7.547 0 0 1-1.705-1.715.75.75 0 0 0-1.152-.082A9 9 0 1 0 15.68 4.534a7.46 7.46 0 0 1-2.717-2.248ZM15.75 14.25a3.75 3.75 0 1 1-7.313-1.172c.628.465 1.35.81 2.133 1a5.99 5.99 0 0 1 1.925-3.546 3.75 3.75 0 0 1 3.255 3.718Z" fill-rule="evenodd"></path>
</svg>
<span
id="iconAmount"></span></button>
Expand Down Expand Up @@ -174,7 +183,8 @@ import CardSubmit from "./ui/cardSubmit.astro";
fill-rule="evenodd"></path>
</svg>
<span
id="freeAmount"></span></button>
id="freeAmount"></span>
</button>

<button class='filterButton' id="other" aria-label='Paid Resources'><a>Other</a>
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand Down Expand Up @@ -273,12 +283,6 @@ import CardSubmit from "./ui/cardSubmit.astro";
src={AstroDev}
href="https://astro.build/?ref=repo.cheddzy.com"/>
</div>
<div class="item show webdev">
<p class="labelText">WEB</p>
<CardContent label="WEB" title="Wireframe.cc" func="Simple wireframing tool"
src={Figma}
href="https://astro.build/?ref=repo.cheddzy.com"/>
</div>
<!--Design System-->
<div class="item show designSys">
<p class="labelText">DESIGN SYSTEM</p>
Expand Down Expand Up @@ -387,7 +391,7 @@ import CardSubmit from "./ui/cardSubmit.astro";
border: #3574F0 1px solid;
*/
padding: 1rem;
max-width: 1400px;
max-width: 1000px;
}


Expand Down Expand Up @@ -433,7 +437,7 @@ import CardSubmit from "./ui/cardSubmit.astro";
}

#filterList {

position: static;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/HeaderAlert.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import '../styles/globals.scss'
d="M9 4.5a.75.75 0 0 1 .721.544l.813 2.846a3.75 3.75 0 0 0 2.576 2.576l2.846.813a.75.75 0 0 1 0 1.442l-2.846.813a3.75 3.75 0 0 0-2.576 2.576l-.813 2.846a.75.75 0 0 1-1.442 0l-.813-2.846a3.75 3.75 0 0 0-2.576-2.576l-2.846-.813a.75.75 0 0 1 0-1.442l2.846-.813A3.75 3.75 0 0 0 7.466 7.89l.813-2.846A.75.75 0 0 1 9 4.5ZM18 1.5a.75.75 0 0 1 .728.568l.258 1.036c.236.94.97 1.674 1.91 1.91l1.036.258a.75.75 0 0 1 0 1.456l-1.036.258c-.94.236-1.674.97-1.91 1.91l-.258 1.036a.75.75 0 0 1-1.456 0l-.258-1.036a2.625 2.625 0 0 0-1.91-1.91l-1.036-.258a.75.75 0 0 1 0-1.456l1.036-.258a2.625 2.625 0 0 0 1.91-1.91l.258-1.036A.75.75 0 0 1 18 1.5ZM16.5 15a.75.75 0 0 1 .712.513l.394 1.183c.15.447.5.799.948.948l1.183.395a.75.75 0 0 1 0 1.422l-1.183.395c-.447.15-.799.5-.948.948l-.395 1.183a.75.75 0 0 1-1.422 0l-.395-1.183a1.5 1.5 0 0 0-.948-.948l-1.183-.395a.75.75 0 0 1 0-1.422l1.183-.395c.447-.15.799-.5.948-.948l.395-1.183A.75.75 0 0 1 16.5 15Z"
fill-rule="evenodd"></path>
</svg>
Website version 0.9 🎉
Website version 0.2.
<span><a href="https://github.com/cheddZy/design-repository" target="_blank">Github Page</a></span>
</p>
<button id="alertDismiss">
Expand Down
30 changes: 17 additions & 13 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import '../styles/styles.scss';
import '../styles/globals.scss';
import SignUpButton from "./buttons/SignUpButton.astro";
import LogInButton from "./buttons/LogInButton.astro";
import CopyButton from "./buttons/CopyButton.astro";
import SubmitButtonSm from './buttons/SubmitButtonSm.astro'
---
<!--TODO:
1. Header & Subheader
Expand All @@ -14,25 +16,20 @@ import LogInButton from "./buttons/LogInButton.astro";
the design repo
</h1>
<h4>End-all-be-all bookmark repository for designers</h4>
<!--TODO: Implement auth-->
<!--<div id="signIn">-->
<!-- <SignUpButton-->
<!-- href="/"-->
<!-- target="_blank"-->
<!-- label='Sign up button'-->
<!-- />-->
<!-- <LogInButton-->
<!-- href="/"-->
<!-- target="_blank"-->
<!-- label='Log in Button'-->
<!-- />-->
<!--</div>-->
<SubmitButtonSm />
<div class="hide">
<CopyButton />
</div>

</section>


<style>

.hide {
display: none;
}

section {
top: 1rem;
position: relative;
Expand All @@ -44,6 +41,13 @@ import LogInButton from "./buttons/LogInButton.astro";
justify-content: center;
align-items: center;
}
div {
display: flex;
flex-direction: row;
gap: 1rem;
align-items: center;
justify-content: center;
}
#IconWrap {
aspect-ratio: 1;
@apply rounded-full;
Expand Down
2 changes: 1 addition & 1 deletion src/components/MainFooter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


<small>
Developed by <a href="https://cheddzy.com/">Shachar MW</a> © 2024
<a href="https://cheddzy.com/">Shachar MW</a> © 2024
</small>


Expand Down
69 changes: 69 additions & 0 deletions src/components/buttons/CopyButton.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
import '../../styles/styles.scss'
import '../../styles/globals.scss'
const { label } = Astro.props;
---


<button onclick="CopyLink()" id="genericButton">
<a id="linkButton">
<span id="textContents">Share this site</span>
<svg data-slot="icon" aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" d="M17.663 3.118c.225.015.45.032.673.05C19.876 3.298 21 4.604 21 6.109v9.642a3 3 0 0 1-3 3V16.5c0-5.922-4.576-10.775-10.384-11.217.324-1.132 1.3-2.01 2.548-2.114.224-.019.448-.036.673-.051A3 3 0 0 1 13.5 1.5H15a3 3 0 0 1 2.663 1.618ZM12 4.5A1.5 1.5 0 0 1 13.5 3H15a1.5 1.5 0 0 1 1.5 1.5H12Z" fill-rule="evenodd"></path>
<path d="M3 8.625c0-1.036.84-1.875 1.875-1.875h.375A3.75 3.75 0 0 1 9 10.5v1.875c0 1.036.84 1.875 1.875 1.875h1.875A3.75 3.75 0 0 1 16.5 18v2.625c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625v-12Z"></path>
<path d="M10.5 10.5a5.23 5.23 0 0 0-1.279-3.434 9.768 9.768 0 0 1 6.963 6.963 5.23 5.23 0 0 0-3.434-1.279h-1.875a.375.375 0 0 1-.375-.375V10.5Z"></path>
</svg>
</a>
</button>

<script>
export default function CopyLink() {
navigator.clipboard.writeText('https://repo.cheddzy.com/');
}
</script>

<style>

button {
display: flex;
}

a {
@apply px-4;
@apply py-2;
@apply rounded-full;
@apply transition-all;
@apply duration-100;
color: #F0F1F2;
font-size: 1rem;
border: 2px #F0F1F2 solid;
background: #1E1F22;
outline: 2px transparent solid;
font-weight: 600;
display: flex;
flex-direction: row;
gap: 0.5rem;
}
svg {
width: 1rem;
}
@keyframes border-anim {
0% {outline: 4px rgba(150, 174, 224, 0.25) dotted;}
100% {outline: 2px #96aee0 solid;}
}

a:hover {
background: #3574F0;
outline: 2px #96aee0 solid;
animation: border-anim 0.2s 1 ease-out;
}
a:active {
background: #3574F0;
outline: 2px #3574F0 solid;
}

</style>
59 changes: 59 additions & 0 deletions src/components/buttons/SubmitButtonSm.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
import '../../styles/styles.scss'
import '../../styles/globals.scss'
const { target, label } = Astro.props;
---

<script>
const button = document.getElementById('genericButton')

button.addEventListener('click', () => {

})
</script>

<button id="genericButton" type="button" aria-label={label}>
<a href='/' target={target}>

Submit / request resources
</a>
</button>


<style>

button {
display: flex;
}

a {
@apply px-4;
@apply py-2;
@apply rounded-full;
@apply transition-all;
@apply duration-100;
color: #F0F1F2;
font-size: 1rem;
border: 2px #F0F1F2 solid;
background: #1E1F22;
outline: 2px transparent solid;
font-weight: 600;

}
@keyframes border-anim {
0% {outline: 4px rgba(150, 174, 224, 0.25) dotted;}
100% {outline: 2px #96aee0 solid;}
}

a:hover {
background: #3574F0;
outline: 2px #96aee0 solid;
animation: border-anim 0.2s 1 ease-out;
}
a:active {
background: #3574F0;
outline: 2px #3574F0 solid;
}

</style>

0 comments on commit c52604a

Please sign in to comment.