Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP]: Refactor team page #94
[WIP]: Refactor team page #94
Changes from 11 commits
0004bc3
1996780
725994a
6151da8
0ae6958
c88b29f
d948b0f
f7a5150
3be1717
4605522
17f2167
b173c39
666e2cc
bb20108
c165a85
bd94805
13a889d
ed76e4b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this image come from and what is its purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On further investigation, this image belonged to team member Lorenzo Bugli, and now it's broken:
I would check out what has happened over there =]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a possible idea to manage members without photos (ie. a placeholder), and accelerate the insertion of members profile into the website, just a propose, if we want to handle these cases differently, I'll align the page :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this idea! You can set it as default when on the component if no
src
is passed to theimg
.I'm still seeing the Lorenzo Bugli image broken though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some confusion on how the UnoCSS rules are declared and utilized in this PR: for example, we have rules like:
px-15px
,py-5px
,w-128px
,mx-2em
,text-1rem
utilized in this component which mix all the possible types of units that we can utilize in CSS. This plays against the flexibility of UnoCSS and their already baked in values inrem
units.w-128px
shouldn't be utilized like this, because you could've already declared it likew-32
which if you multiply32 * 4 = 128
it will give you your desired result! You can also check this specific documentation of TailwindCSS width which allows you to see how all this type of frameworks have an approach of 4 point grid in their design.py-5px
should be avoided because it doesn't fit into the4pt grid
, you could easily usepy-1
to obtain4px
.px-15px
should be avoided as well, you could utilizepx-4
which would equal to16px
and and by doing that avoiding to use px on an UnoCSS rule.mx-2em
the use ofem
is discouraged as it doesn't fit well with the4pt grid
. You should stick torem
values.text-1rem
could also be rewritten astext-base
. See explicit font size documentation of Tailwind here. Even with the documentation read, you shouldn't be applying this rule because the global font value is already16px
(which equals to1rem
) check it out on your own App.vue file!You can check out this recent component that has been updated to utilize UnoCSS so you can see how there's no need to implement all different types of unit values on the utility rules if we already stand by a system =]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix(components): align unocss classes to project, manage light-dark m…
fixed
(also big thanks for all the docs linked! <3 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to declare
text-#fff
this is simplytext-white
see Text Color on Tailwind docs.This rule is complicated:
hover:bg-#2e3440
what happens if one day we want to change this element into a component but we want to have different colours on hover? We would have to go to each component and modify it. Better to declare a global SCSS class that allows you to declare in the<style scoped lang="scss">
and their respective classes to apply it.Also, this colours have already been declared on the
nord.scss
file which is then imported globally so you could easily add them on a specific SCSS class:Also, does this component implement the change between light/dark theme properly?
Remember, refactoring to UnoCSS doesn't mean SCSS shouldn't be used at all!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chore(config): add brand color to unocss config
What do you think about this solution, and moving project variables into unocss config?
Let's take full advantage of this cool tool! @Readpato
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unify classes without utilizing
px
and hex colours in line. See feedback left on other commentsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix(components): align unocss classes to project, manage light-dark m…
fixed