To get the current node by url, the CurrentNodeContextAccessor will help you to resolve it.
⚠️ To get this working, the root node must have been a type name "Home". By now it's really static and does not support multi site environment. This will be provided in later versions.
@inject CurrentNodeContextAccessor CurrentNodeContextAccessor
@{
var currentNode = CurrentNodeContextAccessor.GetCurrentNode();
}